collapse

Author Topic: Win Quote Problem  (Read 510 times)

0 Members and 1 Guest are viewing this topic.

Offline Kazander13

  • Initiate
  • **
  • Posts: 130
  • Last Login:January 07, 2018, 04:34:39 PM
  • Predictabo!
Win Quote Problem
« on: November 30, 2012, 03:51:40 PM »
I am having some issue getting win quotes to work properly.  I am just starting out on reading the various coding effects so please bear with me if I overlook something simple or obvious.  I have started by using sample template from the Elecbyte forums.  The following language located near the top of the constants CNS file of a Terry Bogard created by K.O.D.:


[state init, Quotes]
type = VarRandom
trigger1 = time = 0
v = 1
range = 0,9

[state init, Quotes]
type = VictoryQuote
trigger1 = time = 0
value = var(1)

[state x]
type = VictoryQuote
trigger1 = !time
value = random%10

[Quotes]
victory0 = "Did you think you could beat me! Go home!"
victory1 = "You'll never defeat me with guts only."
victory2 = "Okay! Piece of cake!"
victory3 = "You had guts, kid. Now clean them up off the pavement!"
victory4 = "If you don't have fangs, don't flap your gums!"
victory5 = "What a workout!"
victory6 = "Another one bites the dust. Who's next?"
victory7 = "I'll give you a rematch any time!"
victory8 = "Now you know my power. Next time, prepare yourself!"
victory9 = "Stand up! Hey, you listening? Stand if you're a real warrior!"
victory10 = "I won't obsess over you anymore! These fists aren't for vengeance, but for defense!!"

[state -2, Quotes]
type = VictoryQuote
triggerall = matchover
triggerall = win
trigger1 = p2name = "Geese Howard"
value = 10

Now the random portion works just fine.  Quotes 0-9 execute randomly with no problems.  Quote 10 however will not get called up when facing Geese Howard.  I have double checked the names on the folders and .def file to ensure I didn't use a different version but everything seems to be normal. 

If someone could explain what I am doing wrong it would be greatly appreciated.  Thanks in advance!



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Win Quote Problem
« Reply #1 on: December 01, 2012, 05:30:05 PM »
Uh

How is that ordered in your cns files?

[quotes] should be up with constants and will randomise by default.

If you wish to seperate you need one that says "If vs this person" and another one that says "If not vs this person"

And those should either be in state -2, or your winstate.

Offline Kazander13

  • Initiate
  • **
  • Posts: 130
  • Last Login:January 07, 2018, 04:34:39 PM
  • Predictabo!
Re: Win Quote Problem
« Reply #2 on: December 01, 2012, 10:07:05 PM »
Thanks for the response!  It was all grouped together just as pasted near the top of constants just below the [movement] category.  I'll rearrange it according to your instructions.

So based off of what you stated, this language would work for executing a specific quote against the named character but must be located in the win states:

[state -2, Quotes]
type = VictoryQuote
triggerall = matchover
triggerall = win
trigger1 = p2name = "Geese Howard"
value = 10

What is the purpose of designating the "if not vs this person" and how effective would it be in larger rosters?  Is that what keeps it from being selected as a random quote?  I thought the random%10 portion limited the random quote range.

Thanks again for your help.

Offline Kazander13

  • Initiate
  • **
  • Posts: 130
  • Last Login:January 07, 2018, 04:34:39 PM
  • Predictabo!
Re: Win Quote Problem
« Reply #3 on: December 02, 2012, 12:58:43 PM »
Okay I tried several configurations including patchwork combos from different versions that I saw to be effective, but ultimately, this is what I found to work the best.

The quotes are all near the general information towards the top of the constants file:

[Quotes]
victory0 = "Did you think you could beat me! Go home!"
victory1 = "You'll never defeat me with guts only."
victory2 = "Okay! Piece of cake!"
victory3 = "You had guts, kid. Now clean them up off the pavement!"
victory4 = "If you don't have fangs, don't flap your gums!"
victory5 = "What a workout!"
victory6 = "Another one bites the dust. Who's next?"
victory7 = "I'll give you a rematch any time!"
victory8 = "Now you know my power. Next time, prepare yourself!"
victory9 = "Stand up! Hey, you listening? Stand if you're a real warrior!"
victory50 = "I won't obsess over you anymore! These fists aren't for vengeance, but for defense!!"

The following was placed in state 180 per your advice in the following order:

[Statedef 180]
type = S

[State 180, Quote]
type = victoryquote
trigger1 = 1
value = 0 + (random % 9)

[State 180, Quote]
type = victoryquote
triggerall = numenemy
trigger1 = enemy, name = "Geese Howard" || enemy, name = "Geese"
trigger2 = enemy, name = "Geesehoward"
value = 50

This seems to work out and I haven't had a range violation for using specific reserved quotes yet.  With some of the language I was using before, that seemed to be a problem though I'm not sure why.  Even when I specified what I thought was a valid random range it still spilled over into the specific quotes.  Does everything here look solid from your view?  I'd appreciate a more experienced eye if you can spare the time.  I just want to make sure this is good before I start applying it across the board.  Thanks!

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 [21] 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal