Actually now that i think about it. That code isn't going to work xD


See when you use the call "Globaleventset" It will only trigger the moment that event is set.

If you have a query under it like the var one you have. it will activate if the event is set and then check the query. If the query doesnt come back as positive it won't follow through and it will not activate. even when the var is set to 1. Because that globaleventset has already been set.


Heres what you need. And keep in mind i dont know what it is you're trying to accomplish lol.

What i think you're trying to accomplish is there's a dialog between characters. The dialog leads to the flag being set. When the flag is set and the door is opened, the second dialog triggers.

Code
IF GlobalEventSet("Help")
THEN
CharacterSetVarInteger(CHARACTER_Main, "whatever", 1);

IF ItemOpened("door")
AND
CharacterGetVarInteger(Character_Main, "whatever", 1)
THEN
DialogStartTwoSpeakerDialog("thedialog", Character_prisoner1, Character_main);

Keep in mind to change the names of everything to fit your game.

And what that does is turn that event "help" into a variable that is 1.

Then i think you're trying to get this to trigger when the a certain door is opened and the flag is set. So that checks to see when the door is opened if that integer is 1.


Database entries can be hard for noobies and aren't necessary in most cases. Especially in this case. Not to say you shouldnt practice it. But a lot of the time it isn't required.

Last edited by Demonata08; 21/08/14 11:09 PM.