- Joined
- Jul 2, 2013
- Messages
- 10
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Okay, so I am using EST's decoration script and when an object is placed (event is copied from another location), I want it to check in a 3 block radius of itself to see if another event is near by.
Now I have used $gameMap.isXyHasEventName(/event_name/i,x,y) which is fine if you're always checking the same spot, but i doesn't allow me to check around the event. I was thinking that if i could get the current event's location, set it in a variable and then subtract/add from that I could place that in the x/y variable spot on this script, unfortunatly I'm not sure how to do that.
i tried:
var event_x = $gameMap.events()[this._eventId].x
var event_y = $gameMap.events()[this._eventId].y
but that doesn't seem to work.
any ideas?
Now I have used $gameMap.isXyHasEventName(/event_name/i,x,y) which is fine if you're always checking the same spot, but i doesn't allow me to check around the event. I was thinking that if i could get the current event's location, set it in a variable and then subtract/add from that I could place that in the x/y variable spot on this script, unfortunatly I'm not sure how to do that.
i tried:
var event_x = $gameMap.events()[this._eventId].x
var event_y = $gameMap.events()[this._eventId].y
but that doesn't seem to work.
any ideas?
Last edited by a moderator: