Infinity MUGEN Team

IMT Main => M.U.G.E.N Guides & Tutorials => Topic started by: O Ilusionista on February 11, 2011, 08:23:05 AM

Title: Custom state detected
Post by: O Ilusionista on February 11, 2011, 08:23:05 AM
There is a way to detect if you are on a custom state:
(Updated to avoid conflit with some non-standard custom states)

[1000, bla bla bla]
Type = VarSet
trigger1 = Stateno !=[5000,5210] && Stateno != [130,152] && MoveType = H
v = XX
Value = XX

Then the helper check it this is true and goes to the ground. You can make it without the var:

[1000, bla bla bla]
Type = ChangeState
TriggerAll = IsHelper(XXXX)
trigger1 = Stateno !=[5000,5210] && Stateno != [130,152] && MoveType = H
Value = XX

The logic is simple:
If the root is on a Hit state, the helper drops itself to the ground.
5000-5210 are hit states, 130-152 are block states (which are hit states) and moves with custom states SHOULD PUT P2 ON A "H" Movetype state.

But if the creator is lazy (like doesn't setting the movetype to H on the custom state) it will fail.
Title: Re: Custom state detected
Post by: Tha Lando ( Le CROM ) on February 11, 2011, 08:38:59 AM
hmmmm i am seriously gonna write down all this coding solutions to things. gonna help me out big time. thanx for this post Big O :thumbsup:
Title: Re: Custom state detected
Post by: ClubSyN-X-TReME on February 11, 2011, 10:58:08 AM
But if the creator is lazy (like doesn't setting the movetype to H on the custom state) it will fail.

now you know what I have to deal with when i get ppl crying about, your works dont work with such and such character......
Title: Re: Custom state detected
Post by: O Ilusionista on February 12, 2011, 11:59:07 AM
yeah, I know...
SimplePortal 2.3.5 © 2008-2012, SimplePortal