Parry.

Started by Hyper921, November 29, 2008, 08:11:42 PM

Previous topic - Next topic

Hyper921

I need help coding in my own parry command

how would i go about it??

I know that its before you get hit you press fwd

but everytime i code it. it screws up.

I checked EOH's MvC template for maybe some hints or tips but i couldn't find anything.

can anybody help me?

I'm using the EOH's template parry coding


;Ground Parry
[Statedef 2009]
type = U
movetype = I
physics = U
anim = IfElse(StateType = S && var(59) <= 0,921,922)
velset = 0,0
ctrl = 0
poweradd = 0
juggle = 0
facep2 = 1
hitdefpersist = 0
movehitpersist = 0
hitcountpersist = 0
sprpriority = 2

[State 820, 1]
type = ChangeAnim
triggerall = var(59) > 0
trigger1 = time = 0
value = IfElse(P2StateType = S && P2statetype != A,921,922)
ignorepause = 1
ignorehitpause = 1

[State 921, 5] ;State type gets set to aerial if getting hit up
type = StateTypeSet
triggerall = var(59) > 0
trigger1 = p2statetype = C
trigger1 = time = 0
statetype = C
ignorepause = 1
ignorehitpause = 1

;The required stuff.
[State 921: AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 921: CtrlSet]
type = CtrlSet
trigger1 = (Time > 4) && (StateType = S)
trigger2 = (Time > 4) && (StateType = C) ;&& var(59) = 1
value = 1

[State 921: NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA

[State 921: Pause]
type = Pause
trigger1 = (!Time)
time = 14
movetime = 14

[State 921: VarSet]
type = VarSet
trigger1 = (!Time)
var(19) = 1

;Miscellaneous special effects.

[State 921: PalFX]
type = PalFX
trigger1 = (!Time)
time = 8
add = 0,0,0
mul = 256,256,256
sinadd = 75,100,255,8
invertall = 0
color = 256

;[State 921: EnvColor]
;type = EnvColor
;trigger1 = (!Time)
;value = 255,255,255
;time = 4

[State 921: EnvShake]
type = EnvShake
trigger1 = (!Time)
time = 8
freq = 60
ampl = -2
phase = 90

;Sound effects if needed. One for the character's voice, and another for the parry spark sound effect.

[State 921: PlaySnd]
type = PlaySnd
trigger1 = (!Time)
value = S29,0
freqmul = .5

[State 921: PlaySnd]
type = PlaySnd
trigger1 = (!Time)
value = S27,0
freqmul = .5

;This is the parry spark.

[State 921: Explod]
type = Explod
trigger1 = (!Time) && StateType = S
anim = 1019
id = 927
pos = 30,-100
postype = p1
facing = -1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove = 0
supermovetime = 0
pausemovetime = 12
scale = 0.5,0.5
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 1

[State 921: Explod]
type = Explod
trigger1 = (!Time) && StateType = C
anim = 1019
id = 927
pos = 20,-50
postype = p1
facing = -1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove = 0
supermovetime = 0
pausemovetime = 12
scale = 0.5,0.5
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 1

[State 921: ChangeState]
type = ChangeState
trigger1 = (!AnimTime)
value = IfElse(StateType = S,0,11)
Quote from:  ShawShank RedemptionFear Can hold you prisoner; Hope can set you free

Byakko

Uh, this is only th parry state, you need something in the cmd to actually trigger it and enter it.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Hyper921

#2
Thats what i've been trying to do!

i have no idea where to start!

i've been digging through countless characters and can't find any way to start it off

*EDIT*

okay..i've been working on it

[State -1, parry]
type=hitoverride
triggerall = var(59) != 0
triggerall=command = "parry"
stateno= 2009
value = 2009

am i getting there?

Quote from:  ShawShank RedemptionFear Can hold you prisoner; Hope can set you free

Rajaa Retired

#3
that trigger you have with the var(59)!=0 usually means Humans shouldn't trigger it, remove it.

also a sctrl is invalid without atleast a trigger1, change the trigerall =command="parry" to trigger1 instead, or else you will crash mugen.

you might also want to specify a time for the parry, 2-4 is a great number to use 4 being more easy 2 being more difficult, you can look at the docs to see the Hitoverride sctrl.

using a value is not somehting that is connected to hitooverride.

here look at what the acceptable flags are

hitoverride

Hyper921

Okay.

This is what i got from looking at the docs.

Code ( Prry) Select
[State -1, parry]
type= hitoverride
triggerall = var(59) != 0
trigger1 = command = "fwd"
trigger1 = stateno = 2009
trigger1 = time = [2,4]
slot = 0
Quote from:  ShawShank RedemptionFear Can hold you prisoner; Hope can set you free

Rajaa Retired

no, you understand it quite, but not yet, you want to use it like this:

slot=0
stateno=2900
time=2


that will go in the hitoverrde sctrl, but not as triggers but as flags. just place them like you see posted above. 

note that when reading the docs' optional parameters, know that they are never triggers and should not be used as triggers.

Hyper921

Ohhh. Okay. Thanks for your help.

it's working now :)
Quote from:  ShawShank RedemptionFear Can hold you prisoner; Hope can set you free