In my game, player can only have one identical piece of equipment, and if he acquires an equipment he already has, the value of the equipment's name is increased by +1 and its Status bonuses are changed to value*number.
(e.g. sword+1(ATK+5) → sword+2(ATK+10))
(at the time the equipment is acquired)
[check if you already have] → [Rename equipment you already own] → [Remove acquired equipment].
I could have done up to the above.
and I want to change the status bonus from the script from Call Function node.
for (int s = 0; s < StatusValueCounts; s++)
int bonus = TargetItem.GetStatusValueBonus(player, ORK.StatusValues.Get(s)));
if (bonus != 0)
//***want to change Status Bonuses to bonus * number***
However, I could do GetStatusValueBonus but could not figure out how to do ChangeStatusBonus.
One more thing.
On Schematic, I am changing the name of the equipment in the ChangeSelectedDataName node, but the change is not reflected in the HUD Equipment List, and I would like to know how to solve that problem as well.