YesNoOk
avatar

Win State does come. (Read 298 times)

Started by GoldingCircle, September 27, 2011, 12:10:26 am
Share this topic:
Win State does come.
#1  September 27, 2011, 12:10:26 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I have this win state just in case a specific character partnered with him will change the character to a certain state like this:
Code:
;Win state decider
[Statedef 180]
type = S

[State 180, 1]
type = ChangeState
trigger1 = !Time && partner,name != "Sakura,Haruno"
trigger2 = !Time && partner,name  != "Haruno,Sakura"
trigger3 = !Time && partner,name  != "Sakura"
trigger4 = !Time && partner,name  != "FutureSakura"
trigger5 = !Time && partner,name  != "Sakura Teen"
trigger6 = !Time && partner,name  != "Future Sakura,Haruno"
value = ifelse(random < 500,181,182)

[State 180, 2]
type = ChangeState
trigger1 = !Time && partner,name  = "Sakura,Haruno"
trigger2 = !Time && partner,name  = "Haruno,Sakura"
trigger3 = !Time && partner,name  = "Sakura"
trigger4 = !Time && partner,name  = "FutureSakura"
trigger5 = !Time && partner,name  = "Sakura Teen"
trigger6 = !Time && partner,name  = "Future Sakura,Haruno"
value = 183+random%2
;--------------------------------------------------------------------------------------

The states are available, but it never occur, how can I resolve this?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Win State does come.
#2  September 27, 2011, 02:51:41 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/

  • Online
The first batch of triggers should all be the same trigger: Trigger1. The way you have it, the first changestate will always activate since it's either or, and a character obviously can't have more than one name.

Also, you don't really need all those triggers in the first changestate. Just place the special changestate above the normal one.
Re: Win State does come.
#3  September 30, 2011, 10:16:01 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I did that but it kept going to state 182:
Code:
[State 180, 1]
type = ChangeState
triggerall = NumPartner > 0
trigger1 = Time = 0 && partner,name = "Sakura,Haruno"
trigger1 = Time = 0 && partner,name = "Haruno,Sakura"
trigger1 = Time = 0 && partner,name = "Sakura"
trigger1 = Time = 0 && partner,name = "FutureSakura"
trigger1 = Time = 0 && partner,name = "Sakura Teen"
trigger1 = Time = 0 && partner,name = "Future Sakura,Haruno"
value = ifelse(random < 500,183,184)

[State 180, 2]
type = ChangeState
trigger1 = Time = 0
value = ifelse(random < 500,181,182)

Anyway to fix this?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Win State does come.
#4  September 30, 2011, 10:31:32 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You've made the first batch of triggers into the second batch. And the second into the first, then applied rajaa's fix. Change the triggers with partner, name in them back to sequential. Do NOTHING else when you do this. Just make them sequential.


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: Win State does come.
#5  October 01, 2011, 05:11:22 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
You've made the first batch of triggers into the second batch. And the second into the first, then applied rajaa's fix. Change the triggers with partner, name in them back to sequential. Do NOTHING else when you do this. Just make them sequential.

Hand me a code example please?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Last Edit: October 02, 2011, 04:02:03 am by graycircle11
Re: Win State does come.
#6  October 01, 2011, 11:12:24 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You don't need one. You just need to reverse a little of what you did and move a changestate.


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: Win State does come.
#7  October 02, 2011, 04:05:31 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Like so:
Code:
[State 180, 1]
type = ChangeState
triggerall = NumPartner > 0
trigger1 = Time = 0 && partner,name = "Sakura,Haruno"
trigger1 = Time = 0 && partner,name = "Haruno,Sakura"
trigger1 = Time = 0 && partner,name = "Sakura"
trigger1 = Time = 0 && partner,name = "FutureSakura"
trigger1 = Time = 0 && partner,name = "Sakura Teen"
trigger1 = Time = 0 && partner,name = "Future Sakura,Haruno"
value = ifelse(random < 500,183,184)

[State 180, 2]
type = ChangeState
trigger1 = NumPartner > 0
trigger1 = Time = 0 && partner,name != "Sakura,Haruno"
trigger1 = Time = 0 && partner,name != "Haruno,Sakura"
trigger1 = Time = 0 && partner,name != "Sakura"
trigger1 = Time = 0 && partner,name != "FutureSakura"
trigger1 = Time = 0 && partner,name != "Sakura Teen"
trigger1 = Time = 0 && partner,name != "Future Sakura,Haruno"
trigger2 = NumPartner = 0
trigger2 = Time = 0
value = ifelse(random < 500,181,182)

It still seems not to work!
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: Win State does come.
#8  October 02, 2011, 04:12:47 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Read what rajaa told you again please. He explained your fault, and you didn't do what he said, and now you've gone too far in the other direction.

You WILL do this yourself.


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.