Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: fiaschetta on Sat 29/04/2006 03:26:36

Title: Option on
Post by: fiaschetta on Sat 29/04/2006 03:26:36
I want that a dialogoption intially invisible become visible after i look at object
How i do?
Title: Re: Dialogoption is on when...
Post by: Ashen on Sat 29/04/2006 13:56:23
SetDialogOption(...) (http://www.adventuregamestudio.co.uk/manual/SetDialogOption.htm) function. Call this with the state parameter as eOptionOn when you look at the object, e.g.:

function object1_a() {
  // script for Object 1: Look at object
  cEgo.Say("What an odd vase.");
  SetDialogOption (2,5,eOptionOn); // Turn on Topic 2, Option5
}


Please, take some time to read the manual, and familiarise yourself with the functions. it'll save you from having to wait hours for an answer you could've got yourself in seconds.
Title: Option on
Post by: fiaschetta on Sun 30/04/2006 03:49:33
I have a dialogue whit 5 option..
Option 4 is OFF but i want that if i look a hotspost in a room, the option 4 become ON..
How i do?
Title: Re: Option on
Post by: Wretched on Sun 30/04/2006 08:48:04
In the editor, Help -> Help contents -> Index, type dialog, select dialog.SetOptionState() or SetDialogOption().
Title: Re: Option on
Post by: strazer on Sun 30/04/2006 11:24:28
Why do you post almost the same question twice? Just ask for further explanation if you don't understand an answer.

EDIT: Link deleted, as it no longer exists
Title: Re: Option on
Post by: Ashen on Sun 30/04/2006 13:25:21
Agreed. Topics merged, since the answer is the same.