Hey Guys,

quick question!

Is it possible to check two things in a Story 'IF' statement?

For example, i'm trying to check if i'm in a trigger before a global flag is active so at the moment i'm doing this...

IF
CharacterEnteredTrigger(CHARACTER_Player_01,TRIGGER_LakeTrigger)
AND
GlobalEventCleared("LakeVisited")
THEN
...

But it compiles with the following error:



----------------COMPILE ERROR---------------------------
'GlobalEventCleared': DIV event allowed only as the first condition of a rule
-----------------------------------------------------------


However if I then swap the two checks around...like so..

IF
GlobalEventCleared("LakeVisited")
AND
CharacterEnteredTrigger(CHARACTER_Player_01,TRIGGER_LakeTrigger)
THEN
....

Then it fails to compile once again, this time telling me it will only allow 'CharacterEntered' rule to be checked first.



---------------COMPILE ERROR--------------------------------
'CharacterEnteredTrigger': DIV event allowed only as the first condition of a rule
-------------------------------------------------------------



So...how can you check two things?
Im guessing its not done that way! :p

Last edited by FreddyK83; 28/10/14 08:58 PM.