Kilarin / simple_dialogs

simple dialogs for Minetest entities
MIT License
5 stars 3 forks source link

No variable evaluation bevore =Start #4

Open mowgli opened 1 year ago

mowgli commented 1 year ago

When I try to set variables (like myname) before the first topic, that variable will not been set (at least, it cannot be printed, see my other bug)

Kilarin commented 1 year ago

Little overloaded at work, but I'll check into this soon. Thank you!

Kilarin commented 1 year ago

Very sorry for how long it took me to get back to this. Working through all the issues now. Everything before the =Start topic is ignored. This is by design, because it leaves a section where you can easily place comments, notes, etc. If you need variables set before the first dialog, set them in the =Start topic, then end the =Start topic with :goto begin (or whatever you want to name the actual beginning of your dialog.

So, for example

=Start this dialog will never show anything because of the goto :set var1=SuperDuper :set var2=WhimpyDimpy :goto begin

=Begin This is the first dialog that will appear