Hello, I'm trying to make a skill gain a small variable amount of TP with a bit of randomness but for some reason it just won't work, and perhaps there is a better way to do it. I am very new to developing on MZ 🙂
Here's a screenshot of the Skill's settings:
Here is the code I am using:
I'm using the Visustella core systems and the OTB turn based battle system. Any help is appreciated. 🙂
Here's a screenshot of the Skill's settings:
Here is the code I am using:
Code:
<JS On Action End>
const tp = 15 + Math.randomInt(21);
user.gainTp(tp);
</JS On Action End>
I'm using the Visustella core systems and the OTB turn based battle system. Any help is appreciated. 🙂