YesNoOk
avatar

Weird problems with ReversalDef (Read 292 times)

Started by Mr.Giang, December 31, 2018, 04:08:12 am
Share this topic:
Weird problems with ReversalDef
#1  December 31, 2018, 04:08:12 am
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam

  • Online
Code:
[Statedef 19000]
type = A
ctrl = 0
anim = 19000 ; blank anim with a huge red box that definitely covers the whole stage
velset = 0,0
movetype = A
physics = N
sprpriority = 5

[State 52, 0]
type = PosSet
trigger1 = 1
x = playerID(root,var(24)),pos x      ;playerID(root,var(24)) is the target, definitely nothing wrong with this
y = playerID(root,var(24)),pos y

[State 810, down]
type = TargetState                 ;this is where things went wrong
trigger1 = target,statetype = A
trigger1 = target,movetype != H
value = 11365

[state a]
type = reversaldef                 ;this is where things went wrong too
trigger1 = time = 0
reversal.attr = C,HP
pausetime = 0,0
sparkno = s-1
sparkxy = 0,0
hitsound = s-1,0
numhits = 0
HitOnce = 1

[state a]
Type = DestroySelf

trigger1 = time > 600
trigger2 = roundstate != 2

The code makes use of ReversalDef bug but for some reasons, when I set the character's MUGEN version into nonsenses like "02,16,2013" (or anything), it will work just fine yet when I set it to 1.0 or 1.1, the opponent will not be affected by the TargetState ctrl. What could possibly go wrong here that I didn't know?

Edit: In case you think it was the p2state that went wrong, it isn't. Here is the p2state:

Code:
[Statedef 11365]
type    = C
movetype= A
physics = C
ctrl = 0
anim = 11
sprpriority = 0

[State 230, 2];?v?b?c?g???X?^?g?h????
type = velset
trigger1 = 1
x = 0
y = 0
ignorehitpause = 1

[State 230, 2];?v?b?c?g???X?^?g?h????
type = posset
trigger1 = pos y != 0
y = 0
ignorehitpause = 1

[State 230, 2];?v?b?c?g???X?^?g?h????
type = selfstate
trigger1 = time = 0
value = 11
ctrl = 1
ignorehitpause = 1
Last Edit: December 31, 2018, 07:33:33 am by Mr.Giang
Re: Weird problems with ReversalDef
#2  December 31, 2018, 06:22:56 am
  • ***
  • The Best of Both Worlds
  • SuperStar
hello.
Do you have screenshots or video about it?
Check if in AIR file you put red collision boxes.
Maybe you need to create additional state:one after reversaldef is triggered, that is: the enemy hits, then it change your player into a throw or other state -ChangeState-.

Re: Weird problems with ReversalDef
New #3  December 31, 2018, 07:33:18 am
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam

  • Online
Nvm, case closed. I'm a derp and it has worked fine since the beginning. Just forgot to set ID and stuffs.
Last Edit: December 31, 2018, 09:41:32 am by Mr.Giang