Garrulous Glaahk Abu Dhabi Posted June 28, 2004 Share Posted June 28, 2004 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 More sharing options...
Garrulous Glaahk Eldiran Posted June 28, 2004 Share Posted June 28, 2004 As long as the flag (0,1) is 0, they will both be visible. Once you choose one of the two, it sets flag (1,0) to 1. I think you may have intended to set (0,1) to 1 instead. Link to comment Share on other sites More sharing options...
Garrulous Glaahk Abu Dhabi Posted June 28, 2004 Author Share Posted June 28, 2004 I am a moron. Thank you for enlightening me. Link to comment Share on other sites More sharing options...
Garrulous Glaahk Abu Dhabi Posted June 28, 2004 Author Share Posted June 28, 2004 Wait one moment. Now it doesn't show the second option at all. We're making progress but I'm still confused. EDIT: I am even a bigger moron, forgot to undo my previous ideas and it didin't show because of them. Link to comment Share on other sites More sharing options...
Tenderfoot Thahd Nerubian_Lord Posted July 17, 2004 Share Posted July 17, 2004 make them go to different states, e.g a state that has an action = END_TALK , this will end the dialog immediately. Link to comment Share on other sites More sharing options...
Recommended Posts