nodebox / seed

Procedural Content Generator
https://seed.emrg.be/
MIT License
22 stars 8 forks source link

Remember picked values using name:hero #2

Closed fdb closed 6 years ago

fdb commented 6 years ago

I want to be able to pick a certain value and re-use it throughout the script, e.g. the name of the hero:

root:
- {{ intro }} {{ main }} {{ ending }}

intro:
- {{ name:hero }} woke up. It had been a long night...

main:
- As {{ name:hero }} set on a quest,...

ending:
- At last {{ name:hero }} was back home.