Add more than one statement in scripts?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Add more than one statement in scripts?

Post 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?
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Add more than one statement in scripts?

Post 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
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Re: Add more than one statement in scripts?

Post by thehazard »

I'm so stupid. Thank you.
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Add more than one statement in scripts?

Post by Tony Li »

No worries! Glad to help!
Post Reply