Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: Gaz123 on March 06, 2010, 07:07:08 PM

Title: Add/Take away hits in a move
Post 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.
Title: Re: Add/Take away hits in a move
Post by: Fallen_Angel on March 07, 2010, 11:06:53 PM
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.
Title: Re: Add/Take away hits in a move
Post by: Gaz123 on March 08, 2010, 02:23:54 PM
Thanks for the reply, how do modify the hitdeff?
Title: Re: Add/Take away hits in a move
Post by: Fallen_Angel on March 08, 2010, 06:01:12 PM
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
Title: Re: Add/Take away hits in a move
Post by: Gaz123 on March 09, 2010, 02:44:38 AM
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
Title: Re: Add/Take away hits in a move
Post by: Fallen_Angel on March 09, 2010, 09:59:28 PM
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
Title: Re: Add/Take away hits in a move
Post by: Gaz123 on March 10, 2010, 02:10:11 PM
Where abouts would i add this   triggerall = movehit <= x  ?
Title: Re: Add/Take away hits in a move
Post by: Fallen_Angel on March 10, 2010, 04:40:15 PM
[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
Title: Re: Add/Take away hits in a move
Post by: MirageAtoli on March 11, 2010, 06:56:31 AM
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)
SimplePortal 2.3.5 © 2008-2012, SimplePortal