The Mugen Fighters Guild

Help => Development Help => Topic started by: Keymon2324 on July 05, 2024, 07:00:59 AM

Title: REVERSAL DEF PROBLEM
Post by: Keymon2324 on July 05, 2024, 07:00:59 AM
HOW TO DO REVERSAL ATTACK ?

;===================< KANZUKIRYU YASHA GAESHI >========================

[Statedef 3700]
type=S
physics=N
movetype=I
anim=3400
ctrl=0
velset=0,0
sprpriority=1
poweradd=-2000
facep2=1

[State 3000, Button]
type=varset
trigger1= var(10)!=0
var(10)=0

[State 3000, LV-2]
type = AfterImage
trigger1 = Animelem = 1
time = 9999
TimeGap =2
FrameGap=4
length = 32
palbright = 0, 40, 40
paladd = -10, -10, -10
palmul = 0, 1, 1
trans = add
ignorehitpause = 1

[State 0, Helper]
type = Helper
trigger1 =time=0
helpertype = normal ;player
name = "portrait"
ID = 6036
stateno = 6036
postype = back
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 99999
size.xscale =.5
size.yscale =.5

[State 3000, Black BG]
type = Explod
trigger1 = Time = 0
removetime = -1
id = 6035
anim = 6035
pos = 0,0
postype = Left
scale = 1,1
sprpriority = -99999
facing = 1
vfacing = 1
ownpal = 1
bindtime = -1
ontop = 0
ownpal = 1
supermove = 1
pausemove = 1
removeongethit = 1
ignorehitpause = 1
persistent = 1
supermovetime = 60
pausemovetime =  60

[State 0, Helper]
type = Helper
trigger1=!time
helpertype = normal ;player
name = "Super Fx"
ID = 2062
stateno = 2062
pos=8,-55
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 48

[State 3000, nhb]
type=nothitby
trigger1= animelemtime(6)<0
time=1
value=SCA

[State 3000, Snd]
type=playsnd
trigger1= time=12
value=4,11
channel=0

[State 3000, superpause]
type=superpause
trigger1=!time
time=60
movetime=60
p2defmul=1
unhittable=1
anim=-1
sound=s0,8501
darken=0

[State Corner Push]
type=varset
trigger1= time=12
fvar(5)= 0

[State xxx, Explod]
type = Explod
trigger1 = Time = 0
anim = 2224
ID = 2224
pos = -30,20
postype = p1
facing = 1
vfacing = 1
bindtime = 1
scale = 1,1
sprpriority = 0
ontop = 1
ownpal = 1
removeongethit = 1
ignorehitpause = 1
persistent = 1
supermovetime = 9999
pausemovetime =  9999

[State 3000, End]
type=changestate
trigger1= animtime= 0
value=3701
ctrl=0

;--------------------------------------------------------------------

[Statedef 3701]
type = S
movetype = A
physics = N
velset = 0, 0
ctrl = 0
anim = 3701
juggle = 0
poweradd = 0

[State 6026, HyperBG]
type=helper
trigger1= !time
helpertype=normal
stateno=6026
ID=6026
name="HyperBG"
postype=Back
supermovetime=99999
pausemovetime=99999
ownpal=1
ignorehitpause=1
size.xscale=.6
size.yscale=.6

;ADD REVERSAL
[State 3701, Reversal]
type=reversaldef
trigger1=animelemtime(3)<=0
reversal.attr=SA,NA,SA,HA
pausetime=0,20
sparkno=-1
sparkxy=0,0
p1stateno=3710
p2stateno=4058
forcestand=1

;[State 0, HitOverride]
;type = HitOverride
;trigger1 = animelemtime(3)<=0
;attr = SCA,NA,SA,HA
;slot = 0
;stateno = 3710

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = 4,3
channel=1

[State 0, VelSet]
type = VelSet
trigger1 = time >= 0
x = 0

[State 0, ChangeState]
type = ChangeState
trigger1 =  animtime=0
value = 0
ctrl = 1

;------------------------------------------------------------------------

[Statedef 3710]
type = S
movetype = A
physics = N
velset = 0, 0
ctrl = 0
anim = 3710
juggle = 0

[State 1200,CAMERA]
type = helper
trigger1 = pos X != 0
trigger1 = Time = 0
name = "Camera"
id = 6005
pos = 0,0
postype = p1
stateno = 6005
helpertype = normal
ownpal = 1
keyctrl = 1

[State 3410, Spark]
type=helper
trigger1= !time
helpertype=normal
stateno=7020
ID=7088
name="Spark"
postype=p1
pos=32,-86
facing= -1
ownpal=1
pausemovetime=65535
supermovetime=65535
ignorehitpause=1

[State 800, 1]
type = HitDef
Trigger1 = time=0
attr = S, HT          ;Attributes: Standing, Normal Throw
hitflag = MAF          ;Affect only ground people who are not being hit
priority = 1, Miss    ;Throw has low priority, must be miss or dodge type.
sparkno = -1          ;No spark
sprpriority = 1       ;Draw in front of p2
p2facing = 1          ;Force p2 to face player
p1stateno = 3711
p2stateno = 3715
fall = 1
fall.recover = 0
forcestand=1
getpower=0

[State 820, 1]
type = ChangeState
Trigger1 = animtime = 0
value = 0
ctrl = 1

THIS IS KARIN'S SUPER MOVE
WHEN I USE REVERSALDEF ITS SHOWING INMUNE WHEN OPPONENT ATTACKS NOT WORKING. PLEASE ANYONE HELP ME TO FIX THE ISSUE.
Title: Re: REVERSAL DEF PROBLEM
Post by: Odb718 on July 09, 2024, 09:13:58 PM
I'm not sure what you mean exactly. Does P2 attacks go through your character?
Remember reversaldef is for Red clsn on Red clsn boxes.
https://mugenguild.com/forum/msg.2163970
Read that for all the info on reversaldef ^^

What happens if P2 attacks P1 during the reversaldef state?