nsensfel / tonkadur

Narrative scripting/programming tool. Write stories in your favorite editor using a feature-rich language, compile them into a very small and simple language to easily integrate them into your game.
https://tonkadur.of.tacticians.online
Apache License 2.0
2 stars 0 forks source link
narrative-programming scripting-language tonkadur video-game-development

Tonkadur

Narrative scripting/programming language.

Tonkadur provides a compiler from Fate to Wyrd, letting you freely describe your stories using a feature rich language without having to worry about the implications when it comes time to add support for it to your engine.

Sample:

     (define_sequence in_your_room ()
        (if_else (set:is_member visited_your_room progress)
           (text_effect narrator
              You room is still a mess. You don't have time to clean things up,
              though.
           )
           (text_effect narrator
              You room is a mess. You recall having been through every drawer while
              preparing your bag yesterday. While still unclear on how you are
              supposed to pack all the necessary things for what promises to be at
              least a year-long journey inside a small backpack, you cannot avoid
              but wasting more time contemplating the piles of items that didn't
              make the cut.
           )
        )
        (set:add visited_your_room progress)
        (player_choice
           (option
              ( Look for healing items )
              (jump_to look_for_healing_items)
           )
           (option
              ( No time! Let's go adventuring! )
              (jump_to leave_your_room)
           )
        )
     )

Known alternatives