Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: Acey on October 18, 2012, 05:31:14 PM

Title: Force opponent into their own state
Post by: Acey on October 18, 2012, 05:31:14 PM
So here is my current issue:

If I add "P2stateno" to a hitdef it will direct the opponent to my cns file
If I add "targetstate" to a hitdef it will direct the opponent to my cns file as well

How can I send an opponent directly to a statedef within their own cns file without passing through a statedef in my own cns file?
Title: Re: Force opponent into their own state
Post by: ZVitor on October 18, 2012, 05:41:05 PM
p2stateno
+
selfstate
trigger = time = 0
?
Title: Re: Force opponent into their own state
Post by: Arkady on October 18, 2012, 06:09:37 PM
what exactly do you need to happen?
for example
  scarlet witch turns opponent into a frog (frog anim in sw code)
Title: Re: Force opponent into their own state
Post by: Acey on October 18, 2012, 06:12:44 PM
@ ZVitor = 1 frame in my CNS file before going to self state.  :(

@ Ark = I want to hit an opponent and put then into a custom gethit state without forcing them into my own CNS file first.
Title: Re: Force opponent into their own state
Post by: Arkady on October 18, 2012, 06:23:21 PM
yeah still not making sence to me, i understand the concept, but not the reason for it? i think i can only help if i know what your concepting
Title: Re: Force opponent into their own state
Post by: MGMURROW on October 18, 2012, 08:06:19 PM
Maybe p2stateno(for the 1 tick use your cns state that you want to send p2 in) + selfstate

let us know how it goes

MGMURROW
Title: Re: Force opponent into their own state
Post by: Infinite Power on October 18, 2012, 08:33:09 PM
So here is my current issue:

If I add "P2stateno" to a hitdef it will direct the opponent to my cns file
If I add "targetstate" to a hitdef it will direct the opponent to my cns file as well

How can I send an opponent directly to a statedef within their own cns file without passing through a statedef in my own cns file?
Don't add a "P2stateno" or "targetstate".

or


You could use a cutom state that goes directly to a selfstate
Title: Re: Force opponent into their own state
Post by: Acey on October 18, 2012, 09:41:20 PM
@ MgMurrow, the 1 tick was the result of ZVitor's suggestion, p2stateno then selfstate, which still recognized the initial p2stateno before it sent the opponent into the self state.

@ Infinite Power - the custom state would be in my character's cns file, thus not solving the issue.
Title: Re: Force opponent into their own state
Post by: Space (DCL) on October 18, 2012, 09:46:48 PM
Force opponent into their own state?

Hmm...sounds a lil confusing...let me give it a try...
Title: Re: Force opponent into their own state
Post by: Cyanide on October 18, 2012, 10:07:21 PM
Targetstate
trigger1 = movehit
value = your state
ignorehitpause = 1
persistent = 0

in the custom state, don't set anim, type/physics= U
type = selfstate
trigger1 = 1
value = newstateno
ignorehitpause = 1

Done. Please try this as well, i've used a targetstate in omega red under state -2 for the launcher, you don't see p2 enter state 9040 at all.
Title: Re: Force opponent into their own state
Post by: Space (DCL) on October 18, 2012, 10:10:58 PM
Targetstate
trigger1 = movehit
value = your state
ignorehitpause = 1
persistent = 0

in the custom state, don't set anim, type/physics= U
type = selfstate
trigger1 = 1
value = newstateno
ignorehitpause = 1

Done. Please try this as well, i've used a targetstate in omega red under state -2 for the launcher, you don't see p2 enter state 9040 at all.

Looks like Cyanide beat me to it. However Acey I think you asked that you want them to be forced into ANY statedef in their CNS? That includes all basics, special attacks, etc. right?
Title: Re: Force opponent into their own state
Post by: Cyanide on October 19, 2012, 03:34:23 AM
that would be difficult outside of a full game. If you don't use state X, you break things. Like you might want me to enter hard punch. Have i used 202, 220, or some random number? You have no idea and guessing is a bad idea. There is also no selfstateexist like there is selfanimexist.

Outside of a full game that can't be done. Inside a full game, standardise your states and make use of a common variable.
Title: Re: Force opponent into their own state
Post by: Acey on October 20, 2012, 12:36:30 AM
Cyanide's solution is what I'm looking for. Yes, this does happen to be for a full closed game.  :-"
Title: Re: Force opponent into their own state
Post by: Infinite Power on October 21, 2012, 09:24:51 AM
Cyanide's solution is what I'm looking for.
:Terry, It seems like you're going with the custom state to selfstate approach... WoW!
SimplePortal 2.3.5 © 2008-2012, SimplePortal