Hey all,
Something I thought might be useful is if my items straight up showed their damage in their tooltip. Right now I just say stuff like "40 damage, increased by user level." But I realized with Yanfly's item core I could get fancy and actually show the final number by storing the info in a variable. It looks like this:
<Info Eval>
var damage = 40 * (1 + (($gameActors.actor(1).level - 1) * 0.1));
var dvar = 15;
$gameVariables.setValue(dvar, damage);
</Info Eval>
Then I simply shove the variable into the item's description. At level 1 it shows 40 damage, and at level 10 it's 76. The problem is this number simply shows "0" until I equip the item. Then when I go back and look at it, it will update the number properly.
I tried the "mid-note parsing" option but that didn't do anything. Is there some kind of way to get this to update as the player is scrolling through items (both in equip and in shop)?
Something I thought might be useful is if my items straight up showed their damage in their tooltip. Right now I just say stuff like "40 damage, increased by user level." But I realized with Yanfly's item core I could get fancy and actually show the final number by storing the info in a variable. It looks like this:
<Info Eval>
var damage = 40 * (1 + (($gameActors.actor(1).level - 1) * 0.1));
var dvar = 15;
$gameVariables.setValue(dvar, damage);
</Info Eval>
Then I simply shove the variable into the item's description. At level 1 it shows 40 damage, and at level 10 it's 76. The problem is this number simply shows "0" until I equip the item. Then when I go back and look at it, it will update the number properly.
I tried the "mid-note parsing" option but that didn't do anything. Is there some kind of way to get this to update as the player is scrolling through items (both in equip and in shop)?