This was almost an "ask for help" post but I managed to work it out and thought I'd share because I think it will be useful for a lot of people.
In order to access the current/self event object from within a script command, you can use:
this.character(); // Make sure you're not giving it an argumentOr if you just want the ID:
this.eventId(); // Google says that `event_id` was the equivalent in VXFor anyone curious, in this context, "this" is a Game_Interpreter object.
In the movement route editor it's a little different. "this" simply refers to whatever object you're moving:
this;// e.g:this.setMoveSpeed(-1); // It's not actually "negative speed", but it is even slower than "x8 slower"So if you're modifying the auto movement for an event, "this" will be the event object. If you're setting a movement route for the player or another event, "this" will be the player object or that event object.
Note that (understandably) these won't work in a battle or common event context, only on map events.
Hope this was helpful.
In order to access the current/self event object from within a script command, you can use:
this.character(); // Make sure you're not giving it an argumentOr if you just want the ID:
this.eventId(); // Google says that `event_id` was the equivalent in VXFor anyone curious, in this context, "this" is a Game_Interpreter object.
In the movement route editor it's a little different. "this" simply refers to whatever object you're moving:
this;// e.g:this.setMoveSpeed(-1); // It's not actually "negative speed", but it is even slower than "x8 slower"So if you're modifying the auto movement for an event, "this" will be the event object. If you're setting a movement route for the player or another event, "this" will be the player object or that event object.
Note that (understandably) these won't work in a battle or common event context, only on map events.
Hope this was helpful.