QUOTE (stripe103 @ Apr 18 2011, 05:41 AM)
If I'm correct, the variable @event_id is an integer. It only holds the id of the event, not the event object itself. To access the event object, you have to write
I don't currently remember how to access the name, but I'll search.
EDIT: I've searched where I could think of, and it seems the event name is only used in the editor and not in the game. Can anyone else think of anything?
You didn't search the most obvious place.... the help docs.
In RGSS Reference Manual --> Game Library --> RPGXP Data Structure --> RPG::Event
has a property called 'name'
It looks like you are trying to use this from the Interpreter. (in an event "Script" call)
The @event_id is a property of the Game_Event, which also has a property called @event that is an RPG::Event
If you add this statement at the top of the Game_Event script, near the other attr_reader statements....
then you can access the event property of the Game_Event, so your command would be: