This script provides a set of methods for conditional branch checking involving parties. You can use it to determine whether another party is at a specific position on a map.
In the script editor, place this script below Party Manager and above Main
The following methods are available:
party_here?(party_id, x, y)
Returns true if the specified party is at (x,y)
parties_here?(party_ids, x, y)
Same as above, except it takes an array of party IDs. If none is specified, then it checks if any party is at (x,y)
If you don’t specify an (x, y) position, then it is assumed to be the current
event’s position. This is useful if you want the check to be relative to
an event’s position rather than absolute map position.
To check if party 2 is at (3, 5), you would use the script call
party_here?(2, 3, 5)
Assuming an event at (3, 3) wants to know if party 2 is standing on it, have
that event use the script call
To check if either party 1 or party 2 is at (5,6),
parties_here?([1,2], 5, 6)