Jump to content

Dialogue node problem - both options available


Recommended Posts

Here is my code:

 

begintalknode 4;

state = 2;

personality = 1;

nextstate = -1;

condition = get_flag(0,1) == 0;

question = "Ok.";

text1 = "Stuff1";

code =

set_flag(1,0,1);

toggle_quest(0,1);

change_coins(50);

break;

 

begintalknode 5;

state = 2;

personality = 1;

nextstate = -1;

condition = get_flag(0,1) == 0;

question = "No.";

text1 = "Stuff2";

code =

set_flag(1,0,1);

toggle_quest(0,1);

change_coins(20);

break;

 

I wish to make a dialogue with the choice to accept a quest or not. If you dissagree, you still get the quest, but with a lower budget. The problem is that when testing I could click both options, one after other.

Simulation:

 

Ok.->Stuff1->No.->Stuff2->End

 

I wanted it to be:

 

Ok.->Stuff1->End

 

or

 

No.->Stuff2->End

 

What's wrong with this picture? What am I doing wrong?

Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...