So I need some way of identifying which upgrades are on which armour/ weapon
So far I have this in the notetag
<Upgrade Armor Type: 0>
<Upgrade Effect>
Base Name: 1
Eval: $gameTemp.reserveCommonEvent(124)
</Upgrade Effect>
The common event should check whether the name of each armour has been changed to 1 but for some reason, the name doesn't get changed in the database by the plugin, it is very odd. It is visually changed but the database doesn't know
Then I'm having a variable change to the armour name which has the changed name
Therefore I can do this and check whether the armour with the upgrade has been equipped or not
The reason I'm doing this is that the upgrade for the item turns on a switch to run a base troop event which adds the effect when something specific happens in battle (for example the player guards) but if you unequipped the armour the game doesn't know to remove the effect and turn off the switch
So far I have this in the notetag
<Upgrade Armor Type: 0>
<Upgrade Effect>
Base Name: 1
Eval: $gameTemp.reserveCommonEvent(124)
</Upgrade Effect>
The common event should check whether the name of each armour has been changed to 1 but for some reason, the name doesn't get changed in the database by the plugin, it is very odd. It is visually changed but the database doesn't know
JavaScript:
$dataArmors[2].name === "1"
JavaScript:
$gameParty.isAnyMemberEquipped($dataArmors[$gameVariables.value(90)])
The reason I'm doing this is that the upgrade for the item turns on a switch to run a base troop event which adds the effect when something specific happens in battle (for example the player guards) but if you unequipped the armour the game doesn't know to remove the effect and turn off the switch