Solved My MP don't subtract when I use the freespecial

Question that is answered or resolved.

darkneo

Member
Hi all, it maybe a dumb question, I have set my character Goku energycost 20 1 in his freespecial, shoot the energyball but he doesn't minus any MP. I want he do this even the energyball attack hit the enemies or not so he looks like cost his ki, I have tried in other physical freespecials also the MP doesn't minus unless it hit the enemies. Am I make mistake or miss some scripts that I don't know? Here my setting:


name Goku
type player
health 100
mp 200
mprate 1
chargerate 8
gfxshadow 1
speed 11
palette none
jumpheight 3.7
running 25 3.8 2.6 1 0
grabforce 5
antigrab 6
makeinv 6 1
projectilehit enemy obstacle
backpain 1
holdblock 1
blockpain 1
bflash guard

com a2 freespecial1
com a3 freespecial2

animationscript data/scripts/script.c





anim freespecial1
custknife Hou
pshotframe 1 54
delay 13
offset 24 72
bbox 8 5 29 58
frame data/chars/goku/fs1-1.png
energycost 20 1
delay 70
offset 24 72
bbox 11 5 36 58
frame data/chars/goku/fs1-2.png

Thanks!
 
Solution
MP doesn't minus unless it hit the enemies
If I understand correctly, the MP is not subtracted when you use freespecial and no enemy is hit, right? According to your description it's related to the nocost command in the models.txt, you need to declare it and change the value to 0.

1703695638651.png
MP doesn't minus unless it hit the enemies
If I understand correctly, the MP is not subtracted when you use freespecial and no enemy is hit, right? According to your description it's related to the nocost command in the models.txt, you need to declare it and change the value to 0.

1703695638651.png
 
Solution
Back
Top Bottom