YesNoOk
avatar

Character Specific Win Quotes (Read 8430 times)

Started by Ihavedahswag, February 28, 2015, 01:48:30 pm
Share this topic:
Character Specific Win Quotes
#1  February 28, 2015, 01:48:30 pm
  • avatar
    • UK
    • ihavedahswag@gmail.com
I am sort of new to MUGEN and have been messing around with Fighter Factory, learning some things. I thought something which could be cool to add would be character specific win quotes, so I looked in some other characters that had them and looked on the internet, but no matter what I did it didn't seem to work correctly. What is happening is that when I win against the specific character it just shows me one of the normal winquotes.
Here is my code.
Code:
;Win Quotes
[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = 1
value = 1+(random%8)

[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = enemy,name = "Homer J Simpson"
value = 9

[Quotes]
victory1 = "temporary"
victory2 = "not here forever"
victory3 = "got to change these soon"
victory4 = "but for now these will work"
victory5 = "so yeah"
victory6 = "these are some quotes"
victory7 = "to change into stuff like"
victory8 = "haha i won"
;Character Specific
victory9 = "Now, say 'D'oh'!"
Can anybody see what is wrong with this?
Thanks in advance.
Re: Character Specific Win Quotes
#2  February 28, 2015, 01:55:38 pm
  • ******
  • Loyal to the Game
    • USA
    • http://jesuszilla.trinitymugen.net/
While not related to your problem, there is no need to constantly trigger it, so use Time = 0.

To fix your actual problem, you need to add a trigger to make sure the first doesn't fire.
Code:
[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name != "Homer J Simpson"
value = 1+(random%8)
 
[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name = "Homer J Simpson"
value = 9
Re: Character Specific Win Quotes
#3  February 28, 2015, 02:01:14 pm
  • avatar
    • UK
    • ihavedahswag@gmail.com
While not related to your problem, there is no need to constantly trigger it, so use Time = 0.

To fix your actual problem, you need to add a trigger to make sure the first doesn't fire.
Code:
[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name != "Homer J Simpson"
value = 1+(random%8)
 
[State -2, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name = "Homer J Simpson"
value = 9

Thank you! It works!
(At least from what I've tested so far!)
EDIT:Hmmm, it seems to not have worked actually. I tested it again and got one of the non-specific ones.
Last Edit: February 28, 2015, 02:08:14 pm by Ihavedahswag
Re: Character Specific Win Quotes
#4  February 28, 2015, 04:33:18 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
You don't need the whole "enemy,name !=" thing.

Have you tried moving the Win Quote Set stuff down to state -3? Also, your first code snippet would imply the quotes themselves are placed below the VictoryQuote state controllers; is this the case? If it is, [Quotes] should go at the top of your constants file, just below all the stats and velocity stuff.

Oh, I want a diagram. I fucking love diagrams.
Re: Character Specific Win Quotes
#5  February 28, 2015, 05:17:27 pm
  • avatar
    • UK
    • ihavedahswag@gmail.com
You don't need the whole "enemy,name !=" thing.

Have you tried moving the Win Quote Set stuff down to state -3? Also, your first code snippet would imply the quotes themselves are placed below the VictoryQuote state controllers; is this the case? If it is, [Quotes] should go at the top of your constants file, just below all the stats and velocity stuff.

That works! Thank you so much! I am so happy right now. Brilliant!