Jump to content
  • 0

How to make a character guard against crouching, standing and airial attacks at the same time?


Redben

Question

Hello everyone. 

Characters often have a STAND GUARD position which enables them to guard against standing and airial attacks, and another CROUCHING GUARD position to guard against crouching and standing ones, and some of them have AIRIAL position which enables them to guard while jumping.

What I want to do is to enable a character (Igniz2k1 by TightRiam specifically) to guard against all types of attacks (crouching, standing and airial) whith only one guarding position.

I've been trying to do this for some time now but to no avail. Does anybody know what specifically needs to be changed? Any insight is much welcomed. I've spent some time on this and I want to get it done lol. Thanks in advance.

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

In my MK mugen the statedef that correspond to the guard system are from 120 to 155 in the common.def.
In my case, if I wanted to do what you say, I should go to statedef 130 and:

 

; STAND GUARD (guarding)
[Statedef 130]
type = S >>>>> change to C
physics = S >>>>> change to C
ctrl = 0
anim = 130

 

disable this:
[State 130]
type = ChangeState >>>>>>> null
trigger1 = command = "holddown"
trigger1 =! inguarddist
value = 120

 

THEN, IN STATEDEF 152 :

 

change the animation:
; CROUCH GUARD HIT (shaking)
[Statedef 152]
type = C
movetype = H
physics = C
velset = 0.0
anim = 151 >>>>>>>>>>>> 150 (stand guard anim)
ctrl = 0

 

and finally change the value to statedef 130
[State 152, 3]
type = ChangeState
trigger1 = time = 15
value = 131 >>>>>>>>>>> 130 (stand guard statedef)

 

I hope this helps you or gives you an idea.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...