Option on

Started by fiaschetta, Sat 29/04/2006 03:26:36

Previous topic - Next topic

fiaschetta

I want that a dialogoption intially invisible become visible after i look at object
How i do?

Ashen

SetDialogOption(...) function. Call this with the state parameter as eOptionOn when you look at the object, e.g.:
Code: ags

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.
I know what you're thinking ... Don't think that.

fiaschetta

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?

Wretched

In the editor, Help -> Help contents -> Index, type dialog, select dialog.SetOptionState() or SetDialogOption().

strazer

#4
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

Ashen

Agreed. Topics merged, since the answer is the same.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk