[Solved] some common coding question

Started by suisiao, April 06, 2010, 04:00:00 PM

Previous topic - Next topic

suisiao

1.  i wan to make a cooldown for a skill, after i add a variation, wad code to lock it?

2. is it possible that make a crouch kick that can only guard when standing?

3. what is difference about H, M and L in hitflag and guardflag? i nid some clear explaination

c001357

Quote from: suisiao on April 06, 2010, 04:00:00 PM
1.  i wan to make a cooldown for a skill, after i add a variation, wad code to lock it?

huh?
Quote from: suisiao on April 06, 2010, 04:00:00 PM
2. is it possible that make a crouch kick that can only guard when standing?

yes

Quote from: suisiao on April 06, 2010, 04:00:00 PM
3. what is difference about H, M and L in hitflag and guardflag? i nid some clear explaination

Quotehitflag = hit_flags (string)

    This determines what type of state P2 must be in for P1 to hit. hit_flags is a string containing a combination of the following characters:

    "H" for "high", "L" for "low" or "A" for air. "M" (mid) is equivalent to saying "HL". "F" is for fall, and if included will allow P1 to juggle falling opponents in the air. "D" is for "lying Down", and if included allows P1 to hit opponents lying down on the ground. "H", "L" or "A" (or "M") must be present in the hitflag string.

    Two optional characters are "+" and "-". If "+" is added, then the hit only affects people in a gethit state. This may be useful for chain-moves that should not affect opponents who were not hit by the first move in the chain attack. If "-" is added, then the hit only affects players that are NOT in a gethit state. You should use "-" for throws and other moves you do not want P1 to be able to combo into. "+" and "-" are mutually exclusive, ie. cannot be used at the same time.

    If omitted, this defaults to "MAF".
guardflag = hit_flags (string)

    This determines how P2 may guard the attack. hit_flags is a string containing a combination of the following characters:

    "H" for "high", "L" for "low" or "A" for air. "M" (mid) is equivalent to saying "HL". If omitted, defaults to an empty string, meaning P2 cannot guard the attack.

suisiao

thx for the answer

1. for example: after it execute a hyper mode, i want lock it for 10 seconds before another execution to prevent spamming...

2. so wad code to make it only guardable while crouching?

Cyanide

guardflag = L

Seriously, for questions like that, read the docs.

As for the other one, It's not really difficult, but telling you how to do it might be a bit difficult because i don't know how much you know.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

suisiao

u try explain as u could, i try follow...many thanks for ur reply

Cyanide

The normal method would be a variable counter. But there's probably a simpler method.

Create an invisible explod. Give it a really unique ID, something like 847373 or whatever. Removetime should be 600. In your cmd use numexplod(847373) = 0 as a requirement for the changestate.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.