Categories

I wanted to give one of my characters a unique type of TP (“Ammunition”) that’d start in battle at full and decrease as he uses either a basic attack

You are here:
< Back

Credit: MiraiKo, Rusty_Scissors & Drifty

<Custom Battle Effect>
user._refillCount = 0;
<\Custom Battle Effect>

<Custom Turn End Effect>
if (user.tp = 0) {
user._refillCount += 1;
if (user._refillCount => 3) {
user._refillCount = 0;
user.gainTp(100);
}
}
</Custom Turn End Effect>

If the code above does work, try this tweak made by Drifty

<Custom Battle Effect>
user._refillCount = 0;
<\Custom Battle Effect>

<Custom Turn End Effect>
if (user.tp = 0) { user._refillCount +=1; } else { user._refillcount = 0;} //Changed line line
user.gainTp(100);
}
}
</Custom Turn End Effect>

So by adding that, it’d check if the tp was at 0 at the start of each turn, and if it wasn’t, it’d reset, right?

<Custom Passive Condition>
 if (user.tpModeId() === X)
 { 
condition = true;
 } 
else { 
condition = false;
 } 
</Custom Passive Condition>

That will add the state if the tp mode is picked.

Tags:
Table of Contents