collapse

Author Topic: Question Re: Win Quotes for Mugen 1.0...  (Read 4626 times)

0 Members and 1 Guest are viewing this topic.

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Question Re: Win Quotes for Mugen 1.0...
« on: August 18, 2011, 09:15:41 PM »
A couple of weeks ago I saw that Seanalty had released CM Punk.   I read the description in the character's thread and saw something that I found to be really cool.   You can apparently make it so that special quotes play for certain characters by adding this to the -2 section of the character CNS:

Code: [Select]
[State -2, VictoryQuote]
type = VictoryQuote
trigger1 = Enemy, Name = "Mystique" ; add more triggers for more character names
value = 6 ; references the quote # you want to display



And it works, when Nightcrawler fights Mystique... Quote #6 will play every time.

So here is the problem:  While it will play for Mystique every time you fight her... it will also play randomly for other characters that you fight as one of the random quotes.

Is there something I can add to this code to make it play for Mystique only and no one else?

I've Emailed SeanAlty regarding thins.. but I didn't get a response.

I'd like to know because otherwise, to make this work out, I have to assign groups of characters to the random quotes so that they all have one and don't get a quote meant for a specific character.   With well over 300 characters in my screenpack... you can guess how that wouldn't be a pleasant task.

Any help will be greatly appreciated.



Offline CleanCheeks

  • Initiate
  • **
  • Posts: 165
  • Last Login:February 23, 2016, 12:35:01 AM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #1 on: August 20, 2011, 03:21:07 PM »
Id like help with this too
"I will think of you as I throw up into the toilet."

Offline SanjiSasuke

  • Wannabe Disciple of Master Lee
  • Infinity Faithful
  • ****
  • Posts: 2963
  • Last Login:July 04, 2018, 10:39:08 PM
  • Vega: Master of the Claw (along with Wolverine)
    • SanjiSasuke's Lair
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #2 on: August 22, 2011, 03:14:27 PM »
I've never heard anything about that before, sure it works?

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #3 on: August 22, 2011, 03:26:20 PM »
Well the part of assigning win quotes to certain characters (code above) Does... it'll play that assigned quote for the named character every time. (As long as your characters Mugen Version is set to 1.0)

I just don't know how to stop the special quote from playing randomly for other characters.

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #4 on: August 22, 2011, 03:30:00 PM »
This might be a solution, I haven't tried it but it just might work...

So assuming you only have 6 quote, and #6 is reserved for Mystique, add the following code:

Code: [Select]
[State -2, Random Generator]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 1,5

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = var(1) = 1
trigger1 = Enemy, Name != "Mystique"
value = 1

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = var(1) = 2
trigger1 = Enemy, Name != "Mystique"
value = 2

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = var(1) = 3
trigger1 = Enemy, Name != "Mystique"
value = 3

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = var(1) = 4
trigger1 = Enemy, Name != "Mystique"
value = 4

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = var(1) = 5
trigger1 = Enemy, Name != "Mystique"
value = 5

[State -2, VictoryQuote]
type = VictoryQuote
trigger1 = Enemy, Name = "Mystique"
value = 6

This should work, and of course you'll need to adjust the code for every custom quote to add to the char as well.

Now, if this actually works then you can test to see if you can make the code even shorter by actually inserting the var(1) into the value... so this would be the alternate version

Code: [Select]
[State -2, Random Generator]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 1,5

[State -2, VictoryQuote]
type = VictoryQuote
trigger1 = Enemy, Name != "Mystique"
value = var(1)

[State -2, VictoryQuote]
type = VictoryQuote
trigger1 = Enemy, Name = "Mystique"
value = 6


So let us know what actually ends up working in the end.

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #5 on: August 22, 2011, 03:32:21 PM »
Ok, I'll try that out.  Thanks Acey.

Offline SanjiSasuke

  • Wannabe Disciple of Master Lee
  • Infinity Faithful
  • ****
  • Posts: 2963
  • Last Login:July 04, 2018, 10:39:08 PM
  • Vega: Master of the Claw (along with Wolverine)
    • SanjiSasuke's Lair
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #6 on: August 22, 2011, 04:36:40 PM »
Please tell me if it works, I never knew about this. If it does I'm going to spend a LONG time in my CNS files. Niko is going to talk to everybody. :D

Offline Infinite Power

  • The End All Be All
  • Contributor
  • ****
  • Posts: 747
  • Last Login:January 27, 2020, 09:36:52 AM
  • Energy Doesn't Die
    • Infinite Fighting Forum
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #7 on: August 22, 2011, 05:42:30 PM »
MAKE SURE-
you have your random quotes for basic characters set to certain parameters and Mystique quotes only set for Mystique or any other character you wish for them to work on.

(EX-)
[Quotes]
;Basic quotes
victory1 = "Blah-Blah"
victory2 = "Yup-Yup"

;Mystique quotes
victory3 = "wah"
victory4 = "wump-wump"

;in the 180 state
[State 180, Basic Victory Quote]
type = VictoryQuote
trigger1 = 1
value = 1+(Random % 2); the first 2 win quotes

;in the 180 state
[State 180, Victory Quote vs. Mystique]
type = VictoryQuote
trigger1 = Enemy, Name = "Mystique"
value = 3+(Random % 2);Mystique quotes

 :w00t:

Now Die, Mortal.

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #8 on: August 22, 2011, 06:58:08 PM »
Ok Acey,

The first code worked.  I played through 5 arcade runs just to make sure (my arcade is set up for 20+ matches).  He never said the Mystique quote to any other player.

So does that mean that the second shorter code should work if I replace it?


***Edit***

Second shorter code doesn't work.  The quotes wouldn't play for the characters they were meant for.  Only the generic quotes kept playing fore everyone.  I'll test out Infinite's version now and let you know if it works.


***Edit 2***

Ok, I tried yours Infinite, and only Cody's Works.  This is how I have it set up:

Code: [Select]
[State 180, Basic Victory Quote]
type = VictoryQuote
trigger1 = 1
value = 0+(Random % 11); the first 2 win quotes

[State 180, Victory Quote vs. Cody]
type = VictoryQuote
trigger1 = Enemy, Name = "Cody"
;value = 3+(Random % 2);Mystique quotes
value = 11
 
[State 180, Victory Quote vs. Guy]
type = VictoryQuote
trigger1 = Enemy, Name = "Guy"
;value = 3+(Random % 2);Mystique quotes
value = 12

[State 180, Victory Quote vs. Haggar]
type = VictoryQuote
trigger1 = Enemy, Name = "Haggar"
;value = 3+(Random % 2);Mystique quotes
value = 13

[State 180, Victory Quote vs. Maki]
type = VictoryQuote
trigger1 = Enemy, Name = "Maki"
;value = 3+(Random % 2);Mystique quotes
value = 14

[State 180, Victory Quote vs. Sodom]
type = VictoryQuote
trigger1 = Enemy, Name = "Sodom"
;value = 3+(Random % 2);Mystique quotes
value = 15

[State 180, Victory Quote vs. Rolento]
type = VictoryQuote
trigger1 = Enemy, Name = "Rolento"
;value = 3+(Random % 2);Mystique quotes
value = 16

[State 180, Victory Quote vs. Roxy]
type = VictoryQuote
trigger1 = Enemy, Name = "Roxy"
;value = 3+(Random % 2);Mystique quotes
value = 17

[State 180, Victory Quote vs. Hugo]
type = VictoryQuote
trigger1 = Enemy, Name = "Hugo"
;value = 3+(Random % 2);Mystique quotes
value = 18

I grayed out the "+(Random % 2)" value line because I only have one special quote for each of the above characters.  I started my Victory Quotes with victory0 because it said in quotes victory0 to victory99 are the numbers available.  My generic quotes are numbers 0 thru 10.  11 quotes total for generic.  Numbers 11 thru 18 are special ones.  Can you tell me why the above didn't work?  I placed  it in the State 180 area.
« Last Edit: August 22, 2011, 09:45:24 PM by Tazzer »

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #9 on: August 23, 2011, 10:26:42 AM »
I wondered if the value in the victoryquote had to be a set integer, just like the [data] section of the mugen file. Apparently the victoryquote code can't seem to process triggers like var or random in the value field, I'm not surprized, that is why I wrote out the long version of the code first.

Thanks for testing it for us!

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #10 on: August 23, 2011, 11:49:22 AM »
No problem.  Thank you for taking the time to write out that code.   Thank you too Infinite, it's appreciated (Thought I still need to know what I'm doing wrong with yours seeing as how only Cody's worked). 

Offline Infinite Power

  • The End All Be All
  • Contributor
  • ****
  • Posts: 747
  • Last Login:January 27, 2020, 09:36:52 AM
  • Energy Doesn't Die
    • Infinite Fighting Forum
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #11 on: August 23, 2011, 01:29:10 PM »
***Edit 2***

Ok, I tried yours Infinite, and only Cody's Works.  This is how I have it set up:

Code: [Select]
[State 180, Basic Victory Quote]
type = VictoryQuote
trigger1 = 1
value = 0+(Random % 11); the first 2 win quotes

[State 180, Victory Quote vs. Cody]
type = VictoryQuote
trigger1 = Enemy, Name = "Cody"
;value = 3+(Random % 2);Mystique quotes
value = 11
 
[State 180, Victory Quote vs. Guy]
type = VictoryQuote
trigger1 = Enemy, Name = "Guy"
;value = 3+(Random % 2);Mystique quotes
value = 12

[State 180, Victory Quote vs. Haggar]
type = VictoryQuote
trigger1 = Enemy, Name = "Haggar"
;value = 3+(Random % 2);Mystique quotes
value = 13

[State 180, Victory Quote vs. Maki]
type = VictoryQuote
trigger1 = Enemy, Name = "Maki"
;value = 3+(Random % 2);Mystique quotes
value = 14

[State 180, Victory Quote vs. Sodom]
type = VictoryQuote
trigger1 = Enemy, Name = "Sodom"
;value = 3+(Random % 2);Mystique quotes
value = 15

[State 180, Victory Quote vs. Rolento]
type = VictoryQuote
trigger1 = Enemy, Name = "Rolento"
;value = 3+(Random % 2);Mystique quotes
value = 16

[State 180, Victory Quote vs. Roxy]
type = VictoryQuote
trigger1 = Enemy, Name = "Roxy"
;value = 3+(Random % 2);Mystique quotes
value = 17

[State 180, Victory Quote vs. Hugo]
type = VictoryQuote
trigger1 = Enemy, Name = "Hugo"
;value = 3+(Random % 2);Mystique quotes
value = 18

I grayed out the "+(Random % 2)" value line because I only have one special quote for each of the above characters.  I started my Victory Quotes with victory0 because it said in quotes victory0 to victory99 are the numbers available.  My generic quotes are numbers 0 thru 10.  11 quotes total for generic.  Numbers 11 thru 18 are special ones.  Can you tell me why the above didn't work?  I placed  it in the State 180 area.
[/quote]

If you are going to start your victory quotes from 0 you don't need any value just the (random%11) for the basic quotes.

[EX]
victory0 = "Heh, just a warm-up."
victory1 = "My power is a mystery of the far east. Ha, ha, ha..."

[State 180, Generic Victory Quote]
type = VictoryQuote
trigger1 = 1
value = (Random % 2)

Now Die, Mortal.

Offline Tazzer

  • Forum Member
  • ***
  • Posts: 436
  • Last Login:June 15, 2018, 06:39:36 PM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #12 on: August 23, 2011, 04:47:22 PM »
Ok, I changed that... and still only Cody's works.  With Guy, Sodom, Rolento, Maki, Haggar and Roxy she does random quotes.   I don't get why it's not working.  

You've seen the code I have for assigning the quotes, that's still the same with the minor change you mentioned.

This is how my quotes for Poison are set up:

Code: [Select]
[Quotes]
; Up to 100 victory quotes can be specified per language (victory0 - victory99)
;Generic Quotes
victory0 = "I'm sorry baby.. did my whip sting?  Want me to kiss it better?"
victory1 = "That was way too easy.  I think you're a little too soft for me, honey."
victory2 = "It's not fair!  I kicked your butt...made you hurt so good... and you didn't even put your hands on me!"
vicotry3 = "What?  Well of course the cuffs aren't just for show, sugar!  They get plenty of use.  Would you like a demonstration?"
victory4 = "Hmmm.. you're kinda cute.  You can't compare to my Cody though.  No one can."
victory5 = "My gender?  Well, Honey, would you like to go some place and find out for yourself?"
victory6 = "Touch me without my permission again, and you'll get my heel where the sun don't shine!"
victory7 = "Mmmmmm.. my whip likes the taste of your blood."
victory8 = "Ha ha ha ha ha... You wouldn't last thirty seconds in the Mad Gear Gang.  Maybe not even ten."
victory9 = "You wanted to fight Hugo?  Are you kiddin' me with that?  You couldn't even get by little ol' me."
victory10 = "You liked that didn't you, sweetie?  Mmmm.. Yeah, you're gonna miss me."
;Win Quote Vs Cody
victory11 = "Tsk Tsk Cody Cody Cody.. Why continue to fight?  I do hate to bruise that pretty face."
;Win Quote Vs Guy
victory12 = "Now Guy.. be a doll and tell me where my Cody is?  I've got plans for that boy."
;Win Quote Vs Haggar
victory13 = "Ha ha ha ha.. Really Haggar?  Why do you even try?  Metro City is ours!"
;Win Quote Vs Maki
victory14 = "Look at this! Haggar is sending children to do his dirty work now.  You're cute honey... run along and play now."
;Win Quote Vs Sodom
victory15 = "I was sent to you with a message.  Any more failures, Sodom, and you're out.  You know what that means, dontcha Hon?"
;Win Quote Vs Rolento
victory16 = "You should really be more careful with those bombs sweetie.. that last one nearly changed your gender."
;Win Quote Vs Roxy
victory17 = "Roxy dear, you know I love you to death... but if you don't stop wearing my clothes I'm going to scratch your eyes out!"
;Win Quote Vs Hugo
victory18 = "That was weak, Hugo!  How're you supposed to win Championship Titles when I can beat you up?"

Did I do something wrong in either place?


Offline sunblaze82

  • Initiate
  • **
  • Posts: 80
  • Last Login:August 05, 2023, 11:20:58 AM
    • Email
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #13 on: November 09, 2011, 09:32:43 PM »
I took this from P.O.T.S. Guy and I think this is the best way to do it. And it only works for 1.0 chars.

[Quotes]
victory1 = "Perhaps you lack the discipline necessary for you to win."
victory2 = "The Bushin style tends to overwhelm an opponent..."
victory3 = "There is a great burden behind the fighting skill of Bushin!"
victory4 = "There's something you should get to know better. Your limits."
victory5 = "What a cool move... Your style possesses some worthy qualities."
victory6 = "You can't beat what you can't touch!"
victory7 = "You are so outclassed..."
victory8 = "With Bushin style I could take on ten of you."

victory50 = "You really got out of shape."; Cody
victory51 = "Your an idiot....."; Joe

;==========< WIN POSE DECIDER >==========
[Statedef 180]
type = S

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

[State 180, Quote]
type = victoryquote
triggerall = numenemy
trigger1 = enemy, name = "Cody" || enemy, name = "Cody Travers"
trigger2 = enemy, name = "cvscody"
value = 50

[State 180, Quote]
type = victoryquote
triggerall = numenemy
trigger1 = enemy, name = "Joe" || enemy, name = "Joe Higashi"
trigger2 = enemy, name = "cvsjoe"
value = 51

Offline dfhhfhgdgf kjljljklkljkl

  • New Member
  • *
  • Posts: 3
  • Country: Antarctica aq
  • Last Login:February 20, 2014, 01:42:11 PM
  • Let us help each other in mugen.
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #14 on: February 05, 2014, 05:02:39 PM »
Kind day to everyone !!!
And as the answer I got a few solutions.
 use this trigger i devised myself 

[quotes]
victory2 = "I'm sorry to have used such force against you, but you insisted on continuing."
victory3 = "There's no pleasure in a fight that one does not give their best to win. Please, try harder next time."
victory4 = "May God bless you with peace."
victory5 = "Farewell."
victory6 = "Are you all right? Here, let me help you."
victory99 = "The path to master this magic is long and difficult, but I will continue to hone my skills."



[State 181, VictoryQuote]
type = VictoryQuote
triggerall = NumEnemy
trigger1 = EnemyNear,Name="xxx"||EnemyNear,Name="xxx"
value = 99

;in state def -2 IF YOU SUPPORT -2

[State -2, VictoryQuote]
type = VictoryQuote
triggerall = ifelse((enemy,name = "xxx"),0,1) = 1
trigger1 = time = 0
value = 1+Random%9


this should work for matches of less randomS.
as you see if else shall return 1 if name is not xxx and then 1 =1 hence state is triggered and executed in mugen
you may vchange random and use var but best use thIS.

Well let not this code be criticised if it works. Keep practicing mugen coding in text editor , REMEMBER PRACTICE MAKES A MAN(PROGRAMER) PERFECT












Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #15 on: February 05, 2014, 05:44:16 PM »
Works yes. Flexible, not so much.

This is all about mugen reading things in sequence. You set it up so you have generic quotes from 0-higher number and special quotes above that higher number. You then apply them in states so that it assigns a variable to the special characters after assigning it globally and assign the var to a basic winquote sctrl in -2. You can do this in the intro. Done correctly the code is still long winded, but you don't need a load of trigger1 = p2name != "person" in the first varset.

In a state sense that's

varset for generic, read first, sets variable to value of 0-high number
varset for special, set AFTER the generic so takes priority
If a character is not available in special sets will continue till the state ends.

You could use -2 for the setting, but in teams you might want it to apply to only the special character and not have it revert if the special one dies. It also means a lot more locking off so the generic quote doesn't take effect.

I don't know if it lets you break sequence like that either. You can't do trigger1 followed by trigger3 without trigger2 in between, i would have thought quotes were the same but they may not be.

Offline dfhhfhgdgf kjljljklkljkl

  • New Member
  • *
  • Posts: 3
  • Country: Antarctica aq
  • Last Login:February 20, 2014, 01:42:11 PM
  • Let us help each other in mugen.
Re: Question Re: Win Quotes for Mugen 1.0...
« Reply #16 on: February 07, 2014, 06:47:33 AM »
Humble apologies if it is not so flexible !!!
By far I know of three ways  to make particular winquote for a unique charactrer.
one using enemy,name (it may be p3 , p4 , p1 , p2 better use enemy ) ohter using variables .
IFELSE beng a long familiar term to me from blue java is used by me instead of !=.
I did not show variable method as you find it already explained by acey. The third beng a summed up var method which is still under development by us
( a particular mugen group ).
Thanks to you for showing out faults , I understand what you mean except the trigger part.

So it would be very kind and helpful if you show me the best flexible way. (:-) i find emoticons to be helpful 
thanks to the old style )

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

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 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

SimplePortal 2.3.5 © 2008-2012, SimplePortal