Hello,
I'm trying to create a situation where any enemy (an event with move route) that touches a city (a static event) triggers an event.
I've achieved this by creating a conditional branch in the city event with the script:
(City is event #9 and enemy event #5)
In order for my system to work with all enemies, I'd need to create a new branch for each enemy event Id.
For the sake of efficiency and sanity, is there a way of making this script look for any event that touches $gameMap.event(9)?
In other words, can I replace $gameMap.event(5) with something that would include all events and not only event 5? That would save me a whole lot of work!
Thanks
I'm trying to create a situation where any enemy (an event with move route) that touches a city (a static event) triggers an event.
I've achieved this by creating a conditional branch in the city event with the script:
Code:
$gameMap.event(9).x == $gameMap.event(5).x && $gameMap.event(9).y == $gameMap.event(5).y;
(City is event #9 and enemy event #5)
In order for my system to work with all enemies, I'd need to create a new branch for each enemy event Id.
For the sake of efficiency and sanity, is there a way of making this script look for any event that touches $gameMap.event(9)?
In other words, can I replace $gameMap.event(5) with something that would include all events and not only event 5? That would save me a whole lot of work!
Thanks