YesNoOk
avatar

Specific Win quotes triggering incorrectly (Read 2357 times)

Started by Good_Wall533, July 31, 2019, 03:44:42 pm
Share this topic:
Specific Win quotes triggering incorrectly
#1  July 31, 2019, 03:44:42 pm
  • **
    • Brazil
I have some specific win quotes for a Sonic that I use that seems to be triggering incorrectly. For example, I have this win-quote that triggers after winning against Dante like normal but when I first play and win against another character, the win-quote that's supposed for Dante triggers, and I know that's not supposed to happen. I don't know what's causing this. Should I change anything? Here's the code and the winquotes incase anyone wants a look:

[Quotes]
victory1 = "You can't keep up! Why even bother?."
victory2 = "Eggman's robots get more and more lifelike every day!"
victory3 = "Even Tails could have outrun you!"
victory4 = "That blue blur that just kicked your butt has a name -- Sonic the Hedgehog!"
victory5 = "I'm the fastest thing alive!"
victory6 = "You don't stand a chance of catching me! You're too slow!"
victory7 = "I'd love to stay and chat, but I gotta run!"
victory8 = "You're too slow to move in the fast lane!"
victory9 = "Is that it? Man, you're all bark and no bite!"

;Dante
victory50 = "Hey man, you're alright! Pizza and chili dogs later?"


I put this bit of code on Statedef 180:

[State 180, Victory Quote vs. Dante]
type = VictoryQuote
trigger1 = var(40) != 1
trigger1 = Enemy, Name = "Dante"
value = 50
Re: Specific Win quotes triggering incorrectly
#2  July 31, 2019, 06:03:57 pm
  • ****
  • Lost in a sea of Smash
    • Canada
You’ve got your winquote to always play against Dante, but you need to make sure it DOESN’T play when against someone else.

Use another sctrl that chooses one of the other quotes at random if the opponent isn’t Dante.  That should prevent your Dante specific quote from appearing when you don’t want it to.
Re: Specific Win quotes triggering incorrectly
#3  August 01, 2019, 01:24:45 am
  • ***
    • deathscythemugen.neocities.org
Use something like this:

Code:
[State 180, Victory Quote]
type = VictoryQuote
trigger1 = 1
value = (Random % 9)

[State 180, Victory Quote vs. Dante]
type = VictoryQuote
trigger1 = var(40) != 1
trigger1 = Enemy, Name = "Dante"
value = 50
Re: Specific Win quotes triggering incorrectly
#4  August 02, 2019, 07:52:24 pm
  • **
    • Brazil
Use something like this:

Code:
[State 180, Victory Quote]
type = VictoryQuote
trigger1 = 1
value = (Random % 9)

[State 180, Victory Quote vs. Dante]
type = VictoryQuote
trigger1 = var(40) != 1
trigger1 = Enemy, Name = "Dante"
value = 50

This one worked. Thank you very much!