The Mugen Fighters Guild

Help => Development Help => Topic started by: Master0fFaster on April 07, 2025, 04:47:51 AM

Title: Transformations disabled when getting hit
Post by: Master0fFaster on April 07, 2025, 04:47:51 AM
I'm currently working with a handful of characters, and discovered that one of them seems to force any character with a form to revert back to their base when they take one of said character's hits.

I assume that this means that the common states 150-155 and some of 5000-5200 are being forced onto p2 somehow, but I can't for the life of me find it
Title: Re: Transformations disabled when getting hit
Post by: Foobs on April 08, 2025, 11:23:05 PM
This is a mugen limitation, any attack that puts you in a custom state (like throws) forces the character back into its "base sprites". There's no workaround for this outside of a full game environment in mugen.

Ikemen can bypass this with remapsprite (https://github.com/ikemen-engine/Ikemen-GO/wiki/State-controllers-%28new%29#remapsprite)
Title: Re: Transformations disabled when getting hit
Post by: Master0fFaster on April 10, 2025, 02:40:44 AM
But that's only changing the sprites, that doesn't make the state go back to what it's supposed to be. Where would I find the controller that puts the opponent in this custom hit/block state? They are completely unnecessary and frankly I'm not even sure why a custom state was used, so If anything I'm moreso trying to remove it.
Title: Re: Transformations disabled when getting hit
Post by: Odb718 on April 11, 2025, 07:59:56 PM
Master0fFaster if P1 is sending P2 into a custom state, you'd look in P1's state for the hitdef or
type = TargetState

If it's not jumping out at you it's probably the Hitdef has
p2stateno =
in it somewhere. It's usually at the bottom of the hitdef but it doesn't have to be.

You can use Debug by pressing CTRL+D and see if P2's info changes color when those attacks happen. If it does, that means P2 is in a custom state. If it stays white you got something else going on.
Title: Re: Transformations disabled when getting hit
Post by: Master0fFaster on April 18, 2025, 08:03:14 PM
That was very helpful! Thanks! It in fact wasn't a custom state, but some form of check that was running at unnecessary times. Managed to fix it by adding some Variable triggers since turning the whole thing off messed a lot of moves.