Infinity MUGEN Team
IMT Main => M.U.G.E.N Help => Topic started by: Gaz123 on March 06, 2010, 07:07:08 PM
-
Hi, i want to take away a couple of hits from a charging move atm but i cant figure out how to do so. Any help would be much appreciated.
-
First...you will need to find out wich statedef (these is where its coded) the char is using...to find out, you have to turn on the debug mode, wich is the white letters that appears while playing mugen in the left low corner....make the desire attack, and search for the statedef that it says there.
In the statedef, you should have to modify the hitdef.
-
Thanks for the reply, how do modify the hitdeff?
-
the hitdef has some triggers (these defines when does the hitdef will activate), so if the char has a lot of triggers, just remove a couple of thems.
Also you could post here the statedef, and I will tell you exactly what to do
-
Here it is,
[State 2010, 8]
type = HitDef
triggerall = EnemyNear, Anim != [5070,5071]
triggerall = EnemyNear, GetHitVar(ChainID) != 779
trigger1 = (var(4) = 0) && (var(16) = 0)
attr = S, HA
damage = 135,9
priority = 7
animtype = hard
hitflag = MAF
guardflag = L
pausetime = 9,9
sparkno = S7000+(random%4)
guard.sparkno = S7009
sparkxy = -30,-57
hitsound = S1,2
guardsound = S3,1
ground.type = Low
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -15
Thanks again
air.velocity = -12,-3
-
The code is a little bit complex...ad I would need to have the complete information (specially the variables).
but there are 2 easy solutions...one is add these:
triggerall = movehit <= x ;
x is the number of hits you want the char to make
or you can modify all the triggers, make a trigger for each animelem (number of the sprite in the animation), that you want to make hit
-
Where abouts would i add this triggerall = movehit <= x ?
-
[State 2010, 8]
type = HitDef
triggerall= movehit <=3 ; the move will only hit 3 times
triggerall = EnemyNear, Anim != [5070,5071]
triggerall = EnemyNear, GetHitVar(ChainID) != 779
trigger1 = (var(4) = 0) && (var(16) = 0)
attr = S, HA
damage = 135,9
priority = 7
animtype = hard
hitflag = MAF
guardflag = L
pausetime = 9,9
sparkno = S7000+(random%4)
guard.sparkno = S7009
sparkxy = -30,-57
hitsound = S1,2
guardsound = S3,1
ground.type = Low
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -15
-
If you only want to add to the combo counter use hitadd: http://elecbyte.com/mugendocs/sctrls.html#hitadd (http://elecbyte.com/mugendocs/sctrls.html#hitadd)