YesNoOk
avatar

[Solved] Guard Crush Issue (Read 448 times)

Started by Sean Altly, January 02, 2011, 06:42:39 pm
Share this topic:
[Solved] Guard Crush Issue
New #1  January 02, 2011, 06:42:39 pm
  • *****
  • Get off my lawn - and on to the dance floor
    • USA
    • www.mugenguild.com/seanaltly
Alright guys, I'm having a pretty irritating problem with the Guard Crush system for SHADEs 2. It was originally coded by Syn, if that helps.

Basically, in Team Mode or Survival mode, when you face a character after the first fight (when they don't have intros, i.e. the 2nd person you fight in survival mode or the opposing team's 2nd character after defeating their 1st), after the announcer says does his Round announcing, player 2 immediately goes into state 160 (the standing guard crush). I've looked through the code and I can't figure out how to fix the problem. Could anyone take a look at the code and figure out why? I've been racking my brain. I'd really like to include Survival and Team Mode in SHADEs 2.

Code in State -3:
Spoiler, click to toggle visibilty

Code in Common1:
Spoiler, click to toggle visibilty

States 150-153:
Spoiler, click to toggle visibilty
Son, the last thing you'll realize you need is what you've already got.
Last Edit: January 02, 2011, 09:42:39 pm by Sean Altly
Re: Guard Crush Issue
#2  January 02, 2011, 09:21:34 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I don't see where var(37) is being reset. Probably to 100. Find that and you'll find the problem. It might be in the helper states using a parentvarset. But you should initialise it to 100 in state 5900.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Guard Crush Issue
#3  January 02, 2011, 09:34:19 pm
  • *****
  • Get off my lawn - and on to the dance floor
    • USA
    • www.mugenguild.com/seanaltly
AH, I see. I forgot to post that part of the code:

Spoiler, click to toggle visibilty

That's the original code. I added:

trigger3 = parent, stateno = 5900

to the parentvarset and it fixed it. Thanks, this was really frustrating me.
Son, the last thing you'll realize you need is what you've already got.