- Joined
- Sep 2, 2015
- Messages
- 89
- Reaction score
- 286
- First Language
- English
- Primarily Uses
- N/A
Welp here I am finally directly asking for help on that who using variable points to buy stats and skill increases using Yanfly's Skill Learn System. (http://yanfly.moe/2015/11/14/yep-28-skill-learn-system/)
In my quest to try to remember how I'd done it before I tried three codes.
Then:
Finally the last one which I assumed would do nothing (besides bring up a minor error) anyway (which it did)
So that leads me to seeking yer help. I know I pulled it off before so there must be a way. Any know what I'm doing wrong?
In my quest to try to remember how I'd done it before I tried three codes.
Only leads to setting the Variable 10 to negative one.<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 10;
// Increase the parameter by this amount.
user._paramPlus[2] += 1;
// Remove one Growth Point.
$gameVariables.setValue(10, -1);
// Make the user forget the skill.
user.forgetSkill(55);
// Refresh the user.
user.refresh();
</Learn Cost Eval>
Then:
Lead to nothing which makes sense because I think $gameTemp.reserveCommonEvent(n) might be the wrong code to call up a common event.<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 10;
// Increase the parameter by this amount.
user._paramPlus[2] += 1;
// Remove one Growth Point.
$gameTemp.reserveCommonEvent(16);
// Make the user forget the skill.
user.forgetSkill(55);
// Refresh the user.
user.refresh();
</Learn Cost Eval>
Finally the last one which I assumed would do nothing (besides bring up a minor error) anyway (which it did)
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 10;
// Increase the parameter by this amount.
user._paramPlus[2] += 1;
// Remove one Growth Point.
$gameVariables.value(10) - 1;
// Make the user forget the skill.
user.forgetSkill(55);
// Refresh the user.
user.refresh();
</Learn Cost Eval>
So that leads me to seeking yer help. I know I pulled it off before so there must be a way. Any know what I'm doing wrong?


