YesNoOk
avatar

Changing Animation of state 190 And Helper Elimination (Read 346 times)

Started by GPEZ, October 22, 2014, 11:07:42 am
Share this topic:
Changing Animation of state 190 And Helper Elimination
#1  October 22, 2014, 11:07:42 am
  • *
  • Hope can make a new collection
    • Malaysia
    • fljyin08020511@gmail.com
    • Skype - fljyin08020511
Here are two question, someone who know can lend a hand, i will appreciate it.

(i) I look some video on website and i found that there is possible to changing state depend on the character win or lose from the previous round, mean that if such character win the first round, there will be a new state for second round before match start ; if such character lose, there will be another state for them before match start (State 190)...therefore I wish to do them as well, the animation is already done, but the coding have many problem, especially on trigger part, i try many type of trigger like matchover, roundno >= 2, Win,Lose,etc,still not working, is that any solution can solve it


(ii) Second is the helper part, i found that some of the character when they launch a helper and successfully countered by the opponent, there will leave a helper seems like that character (additional character) on the field and cannot remove it, so wish i could know what is the solution to solve it
Last Edit: October 23, 2014, 08:20:00 am by GPEZ
Re: Changing Animation of state 190 And Helper Elimination
#2  October 23, 2014, 12:27:20 am
  • ****
  • English fluency I am swear!
    • Canada
Holy hell, don't use such a huge font size for the majority of your post. -_-

For your first question, using "MatchOver" won't help at all since by the time it'll return true, there won't be anymore rounds in the match anyways.
Using "Win" or "Lose" as triggers for the ChangeState won't work since they will be reset to 0 when the next round loads.

Instead, you will want to create a "VarSet" in the LieDead state (5150) and the Winpose decider, that changes a variable to a certain value depending on whether you've won or lost.  Use the "Win" and "Lose" triggers here.
Alternatively, you could use the "VarSet" in statedef -2 instead.  Remember to use a persistent variable.

Then in the Initialize state (5900), create a "ChangeState" that changes your character's state depending on the value of your variable.

Unfortunately, I'm not too sure how to handle your second problem.
That happens when a helper gets hit and Mugen doesn't know what state to put the helper in.

You can try using a "NotHitBy" in the helper's state so that the helper cannot get hit at all.
However, if the helper was designed to be hittable, you can try some funky stuff with "HitOverride" to change the helper's state into another one where it could use "DestroySelf", but I'm not too sure of the details of that. :-\

Quote
And "Reality" is unveiled.
What did it want . . .
What did it see . . .
What did it hear . . .
What did it think . . .
What did it do . . .
Last Edit: October 23, 2014, 12:30:53 am by vgma2
Re: Changing Animation of state 190 And Helper Elimination
#3  October 23, 2014, 08:19:41 am
  • *
  • Hope can make a new collection
    • Malaysia
    • fljyin08020511@gmail.com
    • Skype - fljyin08020511
Ok , thxx a lot,...and first time using the big font, doesn't know what will be the problem will happen, so ya, i will try to make it now, and im'ma show the varset on here, thx again....

     Posted: October 23, 2014, 08:37:09 am
Code:
[State -3, Changing Animation if Win]
type = VarSet
triggerall = var(10) != 2
trigger1 = prevstateno = [181,183]
trigger2 = prevstateno != 5150
v = 10
value = 1
persistent = 1

[State -3, Changing Animation if Lose]
type = VarSet
triggerall = var(10) != 1
trigger1 = prevstateno = 5150
trigger2 = prevstateno != [181,183]
v = 10 
value = 2
persistent = 1

i write like this is it will be ok?