mugen交流


Join the forum, it's quick and easy

mugen交流
mugen交流
Would you like to react to this message? Create an account in a few clicks or log in to continue.

mugen受攻击后硬直代码-bt

向下

mugen受攻击后硬直代码-bt Empty mugen受攻击后硬直代码-bt

帖子  Admin 周五 九月 23, 2011 6:14 pm

这是受击带替,在[Statedef -2]下添加
[State 1]
type = HitOverride
triggerall = statetype != A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 10051
ignorehitpause = 1

[State 1]
type = HitOverride
triggerall = statetype = A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38853
ignorehitpause = 1

[State 1]
type = HitOverride
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38852
ignorehitpause = 1


[Statedef 38853]
type = A
movetype= I
physics = N

[State 1]
type = NotHitBy
trigger1 = time = 0
value = SCA,AA,AT,AP
time = 60

[State -1]
type = lifeadd
trigger1 = life >= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = -(Ceil(0.065 * Const(data.life)))
absolute = 1

[State -1]
type = lifeadd
trigger1 = life <= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = -(Ceil(0.008 * Const(data.life)))
absolute = 1

[State -1]
type = poweradd
trigger1 = life >= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = 50

[State -1]
type = poweradd
trigger1 = life <= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = 100


;[State 5040, 2]
;type = ChangeAnim
;trigger1 = AnimTime = 0
;trigger1 = Anim != 5040
;trigger2 = Time = 0
;trigger2 = Anim != 5035
;value = 5040

[State 5040, 3]
type = CtrlSet
trigger1 = HitOver
value = 1

[State 5040, 5]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5040, 6]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52 ;JUMPLAND

[Statedef 10051]
type = S
movetype= I
physics = S
anim = 1

[State 1]
type = NotHitBy
trigger1 = time = 0
value = SCA,AA,AT,AP
time = 60

[State -1]
type = lifeadd
trigger1 = life >= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = -(Ceil(0.065 * Const(data.life)))
absolute = 1

[State -1]
type = lifeadd
trigger1 = life <= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = -(Ceil(0.008 * Const(data.life)))
absolute = 1

[State -1]
type = poweradd
trigger1 = life >= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = 50

[State -1]
type = poweradd
trigger1 = life <= (Ceil(0.2 * Const(data.life)))
trigger1 = time = 0
value = 100


[State 10051, 1]
type = HitVelSet
trigger1 = Time = 0
x = 0

[State 10051, 2]
type = VelSet
trigger1 = Time = GetHitVar(slidetime)
trigger2 = Time >= GetHitVar(hittime)
x = 0

[State 10051, 4]
type = ChangeState
trigger1 = Time >= 1
value = 0
ctrl = 1
全写上就可以了
Admin
Admin
Admin

帖子数 : 124
注册日期 : 11-03-26
年龄 : 34

http://mugen.rnbboards.com

返回页首 向下

返回页首


 
您在这个论坛的权限:
不能在这个论坛回复主题