[RMMV] HOW TO SET VARIABLE = ID OF ITEM USED

Posts

Pages: 1
How do I to set a variable = ID of item used to start common event?
Without scripts, put this in the damage formula:
$gameVariables.setValue(variable_number, item.id); actual damage formula here

Or possibly:
v = item.id; actual damage formula here

With scripts, you can do the same thing in a note tag eval (or your own custom script), which allows you to do this on an item with no damage or healing formula.

YEP_SkillCore is an option for a script that gives you note tag evals during skill / item execution.
The first method worked brilliantly. I think what got me was having to put it before an actual damage formula.

You've saved the day! Thank you!
Pages: 1