I haven't done any scripting in ages. Do you need to predefine variables in the story editor?
Could you use a simple integer to loop the IF CharacterCanSeeCharacter check until true?
My code isn't correctly written, it's simply to show my idea.
Int_EscapeValue = 0;
IF
ItemOpened(ITEM_DOOR_DungeonPrison_A_000, 1)
THEN
Int_EscapeValue = 1;
WHILE(Int_EscapeValue == 1)
IF
CharacterCanSeeCharacter(CHARACTER_LUCS_NPC_M_N_ImmaculatePrisonPatrolGuardBase_000, CHARACTER_Player2, 1)
THEN
DialogStartTwoSpeakerDialog("guardcatchkey", CHARACTER_LUCS_NPC_M_N_ImmaculatePrisonPatrolGuardBase_000, CHARACTER_Player2);
Int_EscapeValue = 3;
IF
LeftArea(DungeonPrison_A_000)
THEN
Int_EscapeValue = 4;
Last edited by iru; 06/08/14 08:44 AM.