Twin Matrix Member 2,154 Oct 2, 2008 #1 Do you know where to place attr_acc~something :event_id in the scripts, so I can access "self.event_id" in a script call of an event on the map? Thanks!!
Do you know where to place attr_acc~something :event_id in the scripts, so I can access "self.event_id" in a script call of an event on the map? Thanks!!
SephirothSpawn Sponsor 1,433 Oct 2, 2008 #2 Code: class Interpreter attr_reader :event_id def event return $game_map.events[event_id] end end Now, in your script command: Code: Script :event_id # or Scene: event First one returns event id, second one return the Game_Event data. Upvote 0 Downvote
Code: class Interpreter attr_reader :event_id def event return $game_map.events[event_id] end end Now, in your script command: Code: Script :event_id # or Scene: event First one returns event id, second one return the Game_Event data.