how to set option-on of another dialog?

Started by Minimi, Tue 23/09/2003 10:07:16

Previous topic - Next topic

Minimi

I want to make that when you've talked to someone in dialog2, a line of option in dialog 1 must be set on, so it's visible. But how do I do that. I can only set the option-on command for the dialog im in. Please help me!!

Ishmael

Allthough this was allready solved (:P), I'll post the solution here for others to see:

In dialog:

run-script x

where x is a free dialog_request param number. If you haven't used dialog_request yet, then it would be 1

In global Script:

function dialog_request (int drval) { // the int's name can be anything, as long as it isn't a duplicate of anohter existing int
if (drval == 1) { // if run-script 1 is executed
SetDialogOption(1,2,1); // will set option 1 in dialog 2 to 'on'
}
}

Ther ya go! ;)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk