RPG Maker Forums

I'm using the following script call in a conditional branch,

Code:
Math.abs($gamePlayer.x - $gameMap.event(id)._x) + Math.abs($gamePlayer.y-$gameMap.event(id)._y) <= distance trigger;
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,

Code:
Math.abs($gamePlayer.x - $gameMap.event(this._eventid)._x) + Math.abs($gamePlayer.y-$gameMap.event(this._eventid)._y) <= 3;
But has correct syntax?

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,035
Messages
1,018,459
Members
137,821
Latest member
Capterson
Top