I'm developing a script that needs the following, and ive been stuck as of how to do it.
There are a few ways I think it could be done but this is the only one I can think of.:
Store the X + Y coordinates of all the events on the map in seperate variables (or an array?) aka: ev001's x would be RSE_event_x[1] = 12
ev002 y would be RSE_event_y[2]
They all need to be in seperate variables for another part of this script.
or, to skip this part.... I need to know the difference between each event and the player.
eg:
@event_x_diff = $player_x - $event_x
@event_y_diff = $player_y - $event_y
@total_diff = @event_x_diff + @event_y_diff
@total_diff = @total_diff.abs
excuse my poor scripting grammer, I'm still learning. Getting there though
There are a few ways I think it could be done but this is the only one I can think of.:
Store the X + Y coordinates of all the events on the map in seperate variables (or an array?) aka: ev001's x would be RSE_event_x[1] = 12
ev002 y would be RSE_event_y[2]
They all need to be in seperate variables for another part of this script.
or, to skip this part.... I need to know the difference between each event and the player.
eg:
@event_x_diff = $player_x - $event_x
@event_y_diff = $player_y - $event_y
@total_diff = @event_x_diff + @event_y_diff
@total_diff = @total_diff.abs
excuse my poor scripting grammer, I'm still learning. Getting there though