Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ------ on Tue 22/07/2008 23:06:37

Title: ------
Post by: ------ on Tue 22/07/2008 23:06:37
-------
Title: Re: Activate Options in other Topics (Dialogs)
Post by: Matti on Tue 22/07/2008 23:44:10
You have to use the run-script x command within the dialog. There's a dialog request-section in the main script where you can put every code you need.


Do it like this:

In dialog 1 put: run-script 1

In the dialog-request section of the main script put:

  if (script == 1) {
    dialog[2].SetOptionState(4, eOptionOn);
  }

..which will turn on option 4 in dialog 2.
Title: ---
Post by: ------ on Wed 23/07/2008 00:00:50
------
Title: Re: Activate Options in other Topics (Dialogs)
Post by: Matti on Wed 23/07/2008 00:07:39
Change "parameter" to "script", then it should work.

But if you post the run-script command in the dialog, the dialog_request-section should appear automatically.
Title: ----
Post by: ------ on Wed 23/07/2008 00:17:50
-----
Title: Re: Activate Options in other Topics (Dialogs)
Post by: Matti on Wed 23/07/2008 00:44:33
I'd prefer a drink..  ;)