I'm trying to cut down on the number of skills I have in my game, and since I'm already using the Visustella Boost Actions plugin for other features, I'm using it in this process. One thing I want, however, is for skill costs to increase the more Boost points are being used. To that end I tried putting together the following code in a Visustella Skills and States Core cost notetag:
Upon testing, I got an error that 'mpCost' was undefined. Turned out, that using 'skill.Id' was throwing the error and replacing it with the numeric ide of the skill got it working as intended.
But that's not exactly what I wanted.
How can I modify the code declaring my 'baseCost' variable so that it'll properly pull the respective skill for determining the cost without me having to manually input the skill's id one by one?
Code:
<JS MP Cost>
let baseCost = $dataSkills[skill.Id].mpCost;
var costMultiplier = user.toUseBoostPoints();
cost = baseCost * (1 + costMultiplier);
</JS MP Cost>
But that's not exactly what I wanted.
How can I modify the code declaring my 'baseCost' variable so that it'll properly pull the respective skill for determining the cost without me having to manually input the skill's id one by one?