- Joined
- Jun 27, 2013
- Messages
- 8
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hello. I'm trying to create a skill that will deal additional damage based on the current amount of TP and then remove all TP. However, it seems that when I try to remove current TP, it will cause the skill to say NULL when attacking an enemy.
I used this formula in the Damage formula box:
(a.atk*(a.tp/20).to_i)+a.atk*5-b.def*2;a.tp -= a.tp
I'm sure some characters are not necessary, but I'm still a novice.
I removed the ending part [a.tp -= a.tp] and it seems to work, but now it doesn't remove any TP (initial cost is 0 so that it can be used at different TP values).
Can anyone explain to me a way that I can accomplish this? Or possibly my formula is not correct.
I used this formula in the Damage formula box:
(a.atk*(a.tp/20).to_i)+a.atk*5-b.def*2;a.tp -= a.tp
I'm sure some characters are not necessary, but I'm still a novice.
I removed the ending part [a.tp -= a.tp] and it seems to work, but now it doesn't remove any TP (initial cost is 0 so that it can be used at different TP values).
Can anyone explain to me a way that I can accomplish this? Or possibly my formula is not correct.


