Page 1 of 1
Add more than one statement in scripts?
Posted: Sat Feb 24, 2018 10:40 am
by thehazard
Hi, I looked everywhere in the manual, but I couldn't find a way to add more than one statement in the script section of a single dialogue. I'm trying to ShowAlert("") and change a variable all at once. How would I be able to do this?
Re: Add more than one statement in scripts?
Posted: Sat Feb 24, 2018 12:59 pm
by Tony Li
Hi,
If you're using the wizard ("..."), click the "+" button again to add another line.
If you're typing it manually, or adding to a Script field that you set using the wizard, just put new statements on separate lines, or separate them with semicolons, or both:
Code: Select all
ShowAlert("This is an alert.");
Variable["Foo"] = 42
Re: Add more than one statement in scripts?
Posted: Sat Feb 24, 2018 1:14 pm
by thehazard
I'm so stupid. Thank you.
Re: Add more than one statement in scripts?
Posted: Sat Feb 24, 2018 2:09 pm
by Tony Li
No worries! Glad to help!