Twin Matrix
Member
How would I do this? ^^
To check if an event is on certain x/y and the event's .character_name?
To check if an event is on certain x/y and the event's .character_name?
$game_map.events["event id"].x
$game_map.events["event id"].y
$game_map.events["event id"].character_name
p "Event 01 is in tile (#{$game_map.events[1].x}; #{$game_map.events[1].y})",
 "Event 01 graphic is #{$game_map.events[1].character_name}"
@event1 = $game_map.events[1]
@another_variable = false
if @event1.x == 38 and @event1.y == 59
@another_variable = true
else
@another_variable = false
end
class Game_Map
def get_event(x,y)
for event in events.values
if event.x == x && event.y == y
return event
end
end
return nil
end
end