- Joined
- Jul 9, 2020
- Messages
- 9
- Reaction score
- 1
- First Language
- Spanish
- Primarily Uses
- RMMV
Hello, I've been trying to make a simple weapon upgrade mechanic in which the selected actor's currently equipped weapon is, as mentioned, upgraded. To do so, I'd need to pass on the weapon's ID to a variable which would then go through a common event that would deal with each specific weapon.
I was wondering how that would translate to script. I tried the following line:
$gameVariables.setValue(9, $gameActors.actor(1).equips()[0].ItemId);
but the variable remained unchanged. I assume it relates to using "ItemId", but I wouldn't know how to refer specifically to weapons. Could anyone help me correct my mistake or suggest another option? Thanks in advance!
I was wondering how that would translate to script. I tried the following line:
$gameVariables.setValue(9, $gameActors.actor(1).equips()[0].ItemId);
but the variable remained unchanged. I assume it relates to using "ItemId", but I wouldn't know how to refer specifically to weapons. Could anyone help me correct my mistake or suggest another option? Thanks in advance!
Last edited:


