Lets say that I have an event EV001 of ID 1. In page 3 > advanced > plugin command I type "myPlugin myTestCommand".
Is it possible to get, inside myTestCommand() function, all the properties of the event that called this function ?
I especially want to get characterName and characterIndex (the in-game event's sprite infos)
Thanks !
Get event's characterName and characterIndex within plugin command
● ARCHIVED · READ-ONLY
-
-
If the plugin command is ON the event you want to know about, you can do this:
var evt = this.character(0)
If the command is on one event, but you want to know details about another event (on the same map), you can do this:
var evt = this.character(n)
where n is the event id (with no leading zeros)
Once you have evt, you can look at evt.characterName() and evt.characterIndex() -
Thank you, that was exactly what I needed !