YesNoOk
avatar

Problems with Win Quotes against characters (Read 5280 times)

Started by 1nonly, February 29, 2024, 08:00:03 pm
Share this topic:
Problems with Win Quotes against characters
#1  February 29, 2024, 08:00:03 pm
  • **
Alright, So I have been trying adding certain win quotes against character with this method, however no matter on what I do. Win quotes still remains the same. I'm not a person that really knows how to code and all, and I read on things that always seemed to contradict each other, so things were just ended frustrating for me.


https://mugenguild.com/forum/topics/character-specific-win-quotes-165329.0.html


Here is what I have.

[State -3, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name != "Jin Kazama"
value = 1+(random%8)
     
[State -3, Win Quote Set]
type = VictoryQuote
trigger1 = Time = 0
trigger1 = enemy,name = "Jin Kazama"
value = 25
Re: Problems with Win Quotes against characters
#2  February 29, 2024, 08:18:33 pm
  • ******
    • Portugal
    • network.mugenguild.com/pots/
You should place that in state 180 instead. Maybe your state 180 does have a block like that that overrides that one. The only other reasons that code would not work would be the enemy not actually being called "Jin Kazama", or you killing them with F1 in both rounds I think (skipping the times a time = 0 trigger works in negative states).
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.
Re: Problems with Win Quotes against characters
#3  February 29, 2024, 08:37:28 pm
  • ****
    • crepa.neocities.org
trigger1 = Time = 0 isn't even needed in this case too, you can completely remove it.
Re: Problems with Win Quotes against characters
#4  February 29, 2024, 08:54:05 pm
  • **
You should place that in state 180 instead. Maybe your state 180 does have a block like that that overrides that one. The only other reasons that code would not work would be the enemy not actually being called "Jin Kazama", or you killing them with F1 in both rounds I think (skipping the times a time = 0 trigger works in negative states).

The character name is same as the display name and I checked out the character file and yes it appears that the state 180 is already used.
Re: Problems with Win Quotes against characters
#5  February 29, 2024, 10:38:51 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
The reason I suggested using -3 in that thread is because you can win without going into the win state decider (state 180). It's likely not working because of the time = 0 trigger; change it to win && matchover.

Oh, I want a diagram. I fucking love diagrams.
Re: Problems with Win Quotes against characters
#6  March 01, 2024, 03:42:35 am
  • **
So it should be something like this?

[State 180, Win Quote Set]
type = VictoryQuote
trigger1 = enemy,name != "Jin Kazama"
value = 1+(random%8)
     
[State 180, Win Quote Set]
type = VictoryQuote
win = 
matchover =
trigger1 = enemy,name = "Jin Kazama"
value = 25
Re: Problems with Win Quotes against characters
#7  March 01, 2024, 08:22:27 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
He meant changing the trigger to win && matchover, not adding more lines to it.

Time = 0 would still trigger in a few states though. Enough to set the quote I think. Can you post state 180?

The reason I suggested using -3 in that thread is because you can win without going into the win state decider (state 180).
That's a great point I'd never thought about. But the worst that can happen is that you win a round against some char, set the quote, then win by repeated draw game/double KO or something against another and use the first quote by mistake?
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.
Re: Problems with Win Quotes against characters
#8  March 01, 2024, 09:31:27 am
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Or die in simul/tag modes while your teammate pulls through.

Oh, I want a diagram. I fucking love diagrams.
Re: Problems with Win Quotes against characters
#9  March 01, 2024, 09:50:38 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Do you even have a victory quote number 25? It seems strange to me that you go from victory quote 8 to 25...
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Problems with Win Quotes against characters
#10  March 02, 2024, 09:29:59 pm
  • **
He meant changing the trigger to win && matchover, not adding more lines to it.

Time = 0 would still trigger in a few states though. Enough to set the quote I think. Can you post state 180?



Here it is, yet again I'm still new to kind of stuff.

[State 180, Win Quote Set]
type = VictoryQuote
trigger1 = enemy,name != "Jin Kazama"
value = 1+(random%8)
     
[State 180, Win Quote Set]
type = VictoryQuote
trigger1 = enemy,name win && matchover  = "Jin Kazama"
value = 25

Do you even have a victory quote number 25? It seems strange to me that you go from victory quote 8 to 25...

Ok, so the character that's I'm editing. Has already had quotes against 2 people I believe, and they skipped some numbers so that's why it's like that.
Last Edit: March 02, 2024, 09:34:38 pm by 1nonly
Re: Problems with Win Quotes against characters
#11  March 03, 2024, 11:12:45 am
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
win and matchover are separate triggers. Your current syntax is wrong; you only needed to replace trigger1 = time = 0 with trigger1 = win && matchover, leaving the enemy,name trigger as it was.

Oh, I want a diagram. I fucking love diagrams.
Re: Problems with Win Quotes against characters
#12  March 03, 2024, 08:54:07 pm
  • **
win and matchover are separate triggers. Your current syntax is wrong; you only needed to replace trigger1 = time = 0 with trigger1 = win && matchover, leaving the enemy,name trigger as it was.


It should be something like this?

[State 180, Win Quote Set]
type = VictoryQuote
trigger1 = enemy,name != "Jin Kazama"
value = 1+(random%8)
     
[State 180, Win Quote Set]
type = VictoryQuote
trigger1 = name win && matchover  = "Jin Kazama"
value = 25
Re: Problems with Win Quotes against characters
#13  March 04, 2024, 12:16:29 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
No. It would benefit you to learn how CNS syntax and triggers work.

triggers
expressions
win
matchover
name

What you have now is invalid syntax. name win is not a valid expression and "Jin Kazama" is not a valid value for matchover.

Oh, I want a diagram. I fucking love diagrams.
Re: Problems with Win Quotes against characters
#14  March 04, 2024, 12:31:46 pm
  • ******
  • 日本は素晴らしい国です。
how are you generating that code, are you using chatgpt for it or something?
Re: Problems with Win Quotes against characters
#15  March 05, 2024, 01:06:27 am
  • **
how are you generating that code, are you using chatgpt for it or something?

I have just been editing the notepad of the character and just changing the code abit.

No. It would benefit you to learn how CNS syntax and triggers work.

triggers
expressions
win
matchover
name

What you have now is invalid syntax. name win is not a valid expression and "Jin Kazama" is not a valid value for matchover.

Does it take that much work to just make win quotes towards character to work?
Re: Problems with Win Quotes against characters
#16  March 05, 2024, 03:53:00 am
  • *****
  • Shame on you!
    • USA
What he's trying to say is if you followed the link for
matchover
You'll see it'll post a number. You have mugen trying to see if matchover equals a word, aka a string.
These are 2 different types of info for mugen. Think of it like it wants a telephone number and you gave it a street address. It just wont figure anything out.

It doesn't take a ton of work to get it working at all. You just have to know what tools to use and why you use THOSE tools.

Im guessing you want something like

[State 180, Win Quote Set]
type = VictoryQuote
trigger1 =  (enemy,name = "Jin Kazama") && (matchover  = 1)
value = 25
vVv Ryuko718 Updated 10/31/22 vVv
Re: Problems with Win Quotes against characters
#17  March 05, 2024, 07:54:35 pm
  • **
What he's trying to say is if you followed the link for
matchover
You'll see it'll post a number. You have mugen trying to see if matchover equals a word, aka a string.
These are 2 different types of info for mugen. Think of it like it wants a telephone number and you gave it a street address. It just wont figure anything out.

It doesn't take a ton of work to get it working at all. You just have to know what tools to use and why you use THOSE tools.

Im guessing you want something like

[State 180, Win Quote Set]
type = VictoryQuote
trigger1 =  (enemy,name = "Jin Kazama") && (matchover  = 1)
value = 25

I mean, as long as it works.
Re: Problems with Win Quotes against characters
#18  March 05, 2024, 08:19:11 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Does it take that much work to just make win quotes towards character to work?
It's not work as such, but understanding how CNS works and thus why your code doesn't work.

Oh, I want a diagram. I fucking love diagrams.