YesNoOk
avatar

ChangeState not responding to "ignorehitpause = 1" (Read 746 times)

Started by Minakata Moriya, August 10, 2020, 06:57:03 pm
Share this topic:
ChangeState not responding to "ignorehitpause = 1"
#1  August 10, 2020, 06:57:03 pm
  • *
    • USA
Hi all,

I did a few searches of the forums before creating an account and asking here. I'm a very old hand at MUGEN from back in the DOS days and decided to dip my toe back in. I'm working on a "blocked" state for a character to switch to upon having a move blocked, like in Samurai Shodown.

The command as it stands is like this:

[State 240, Blocked]
type = ChangeState
trigger1 = moveguarded
value = 850
ignorehitpause = 1
persistent = 0

The way it works is that it's only triggering at the end of the P2's shaketime, and I need it to transition immediately. I thought perhaps it was a bug in ChangeState, and figured I could fudge it with ChangeAnim instead, but the end result is exactly the same. It's as if MUGEN just doesn't see the ignorehitpause = 1 parameter. It works fine for every other time I've needed to use it. Has anyone else seen this/found a workaround? Is there some stupidly obvious thing I'm just not seeing?

Thanks in advance for any help/advice.
Last Edit: August 11, 2020, 12:07:47 am by Minakata Moriya
Re: ChangeState not responding to "ignorehitpause = 1"
#2  August 10, 2020, 11:07:02 pm
  • ******
The code is correct.
You'll have to add a guard.pausetime to the hitdef of the attack to be lower than the normal pausetime. Just the first value (for P1), not the second value (for P2).

example:
Code:
pausetime = 8, 8                 ;Time attacker pauses, time opponent shakes
guard.pausetime = 1,8
(edited kfm's light punch hitdef by adding guard.pausetime = 1,8)
Last Edit: August 10, 2020, 11:11:22 pm by AlexSin
Re: ChangeState not responding to "ignorehitpause = 1"
#3  August 11, 2020, 12:07:31 am
  • *
    • USA
Thank you very much for your assistance!
Re: ChangeState not responding to "ignorehitpause = 1"
#4  August 11, 2020, 12:14:04 am
  • ******
:thumbsup: