Calling a Dialog Option in a script

Started by Dr Snark, Sat 16/08/2003 02:05:26

Previous topic - Next topic

Dr Snark


Can  This be done:

I have a Dialog and want to call it From a Script:

Like :

function dialog_request(int blah) {
 if (blah==0) {
   }
 else if (blah==1) {
   AddInventory(1);
if (GetGlobalinit(4)==1) {
 (TURN DIALOLG OPTION ON 1);
}   <----- How can i do that?
With a Script


   }
 else if (blah==2) {
   AddInventory(24);
   }
   else if (blah==3) {
     if (GetGlobalInt(2)==0)
     
     
     }
 
   }
 }

Wolfgang Abenteuer

function dialog_request(int blah) {
if (blah==0) {
}
else if (blah==1) {
AddInventory(1);
if (GetGlobalinit(4)==1) {
SetDialogOption(4,5,1);
}

That will turn on dialogue option 5 on topic 4.  The "1" at the end turns it on.  Pass a "0" instead if you want to turn an option off and a "2" to turn an option off forever (even a "1" won't turn it back on).

~Wolfgang

SMF spam blocked by CleanTalk