I channeled my momentary Mars obsession into a Troika! hack, despite not having nearly enough experience with Troika! to justify it. Thanks to the amazing power of Typst, I was able to slap together a procedural layout for my half-baked ideas really quickly. Troika!'s core building blocks are its character backgrounds and monsters, both of which follow a simple formula. Structured text that is repeated many times is a case where Typst really shines, because you can automate the layout rather than adjusting by hand for each of 36 backgrounds or whatever. Previously, I shared simple .csv import code to populate a bestiary. For this project, I opted to store monsters and backgrounds in a .yaml file. The advantage to .yaml is that it feels much more natural to read & write, and handles line breaks and large blocks of text much better. The bestiary yaml was structured as follows: - Name: Banth Skill: 10 Stamina: 17 Init: 5 Armor: 0 Damage: as Large Beast Mien: - Playful - Territorial -…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.