Hello,
I know nothing about JS, but I was wondering if a script can be made to do something simple, or someone explain to me on how to do it.
Either way, I need something to do this:
When I use an item, any item it doesn't matter, it detects I used an item, then returns the item ID of the item that was just used and stores it in a selected variable. I need something like this due to a plugin not having any item notetags, so for me to manipulate factors of this plugin, I have to use a common event and plugin commands, but I don't want to have to use 100+ common events if I can just have 1 common event that checks what item was just used and then does the correct branch based off of that.
EDIT: I also need to know how to use the actor that the item was used on as the actor ID in a plugin command. E.G., if I used said item on actor 1, the plugin command would be HEALTH ADDHP 1 food 20 for example. If actor 2, then HEALTH ADDHP 2 food 20. I know it's something to the effect of this.ActorID() or something to that effect.
I know nothing about JS, but I was wondering if a script can be made to do something simple, or someone explain to me on how to do it.
Either way, I need something to do this:
When I use an item, any item it doesn't matter, it detects I used an item, then returns the item ID of the item that was just used and stores it in a selected variable. I need something like this due to a plugin not having any item notetags, so for me to manipulate factors of this plugin, I have to use a common event and plugin commands, but I don't want to have to use 100+ common events if I can just have 1 common event that checks what item was just used and then does the correct branch based off of that.
EDIT: I also need to know how to use the actor that the item was used on as the actor ID in a plugin command. E.G., if I used said item on actor 1, the plugin command would be HEALTH ADDHP 1 food 20 for example. If actor 2, then HEALTH ADDHP 2 food 20. I know it's something to the effect of this.ActorID() or something to that effect.