- Joined
- Nov 6, 2019
- Messages
- 28
- Reaction score
- 7
- First Language
- Eng/Ro
- Primarily Uses
- RMMV
So, essentially what I want to do in my game is an Active Battle System built from the ground up using Events as enemies. So far, it's not going too bad, but there is a small problem.
My game uses both melee and ranged combat, and I can't figure out a script that tells the event/player: "If player is in coordinate (0, +1) relative to this event, then melee attacks are allowed." or "If player is in coordinate (-5. 0) relative to this event, then melee attacks are not allowed."
Essentially, I need a way to put the "$gamePlayer.pos(x,y)" check relative to an Event's own position.
The checking area is a 7 * 7 tile circle with the Event in the center. Essentially from +3 to -3 in both the X and Y axes relative to the Event.
Visual representation, red being the event, black being the area of effect.

At this point I'm open to anything, whether it's a solution for my method or an entirely new one that meets my needs, please, feel free to comment.
My game uses both melee and ranged combat, and I can't figure out a script that tells the event/player: "If player is in coordinate (0, +1) relative to this event, then melee attacks are allowed." or "If player is in coordinate (-5. 0) relative to this event, then melee attacks are not allowed."
Essentially, I need a way to put the "$gamePlayer.pos(x,y)" check relative to an Event's own position.
The checking area is a 7 * 7 tile circle with the Event in the center. Essentially from +3 to -3 in both the X and Y axes relative to the Event.
Visual representation, red being the event, black being the area of effect.

At this point I'm open to anything, whether it's a solution for my method or an entirely new one that meets my needs, please, feel free to comment.