- Joined
- Oct 30, 2018
- Messages
- 4
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
I'm using the following script call in a conditional branch,
I would then fill in the "event(id)" and "triggering distance" manually. This would be used in the running event that would then trigger a response. Like say, chase the player, run from the player, do something goofy etc etc.
In Ace, there was a way to self-reference a running event to itself. (I forget off the top of my head; something like @thisevent maybe.)
My question is how could I change this script call so it references itself, making it much more easy to copy/paste dozens of them at a time?
Something like,
But has correct syntax?
Code:
Math.abs($gamePlayer.x - $gameMap.event(id)._x) + Math.abs($gamePlayer.y-$gameMap.event(id)._y) <= distance trigger;
In Ace, there was a way to self-reference a running event to itself. (I forget off the top of my head; something like @thisevent maybe.)
My question is how could I change this script call so it references itself, making it much more easy to copy/paste dozens of them at a time?
Something like,
Code:
Math.abs($gamePlayer.x - $gameMap.event(this._eventid)._x) + Math.abs($gamePlayer.y-$gameMap.event(this._eventid)._y) <= 3;


