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
3 stars 0 forks source link

Turn `rand` into an instruction (in Wyrd) #38

Closed nsensfel closed 2 years ago

nsensfel commented 2 years ago

As implementing the interpreter in Elm pointed out, rand requires a state update. Since it's simpler to use, Fate should keep it as a computation, but Wyrd needs it to be an instruction.

nsensfel commented 2 years ago

Done in https://github.com/nsensfel/tonkadur/commit/48659c28bf6a6fbcff2c8e67247680afaa023de9.