I've placed an EventTrigger in the region I want it to be, and I want to detect if the whole party is currently standing in it to fire an event (in GM mode).
Here is some code I wrote for this scenario:
IF CharacterEnteredTrigger(_Char,TRIGGERGUID_EventTrigger_000_eb3fe411-faec-4b7f-a1e1-641bfe3f2cb0)
AND
CharacterIsPlayer(_Char,1)
THEN
UserSetFlag(_Char,"IN_EVENT_TRIGGER",1);
IF CharacterLeftTrigger(_Char,TRIGGERGUID_EventTrigger_000_eb3fe411-faec-4b7f-a1e1-641bfe3f2cb0)
AND
CharacterIsPlayer(_Char,1)
THEN
UserSetFlag(_Char,"IN_EVENT_TRIGGER",0);
IF CharacterEnteredTrigger(_Char,TRIGGERGUID_EventTrigger_000_eb3fe411-faec-4b7f-a1e1-641bfe3f2cb0)
AND
UserGetFlag(<CHAR1_GUID>,"IN_EVENT_TRIGGER",1)
AND
UserGetFlag(<CHAR2_GUID>,"IN_EVENT_TRIGGER",1)
AND
UserGetFlag(<CHAR3_GUID>,"IN_EVENT_TRIGGER",1)
AND
UserGetFlag(<CHAR4_GUID>,"IN_EVENT_TRIGGER",1)
THEN
//Do the event
But there are a couple of issues with this:
1) I don't know how to get the GUIDs for all the characters in GM mode, since in the editor when I start the game, there is only one character creation dummy there so I can't right click the other players to get their guids.
2) This would not work in general if the game started with fewer than 4 players
Anyone know how I can fix this, or if there is another approach that would work better?