YesNoOk
avatar

If you win a perfect match...  (Read 29213 times)

Started by squallcolin, November 19, 2003, 08:19:35 am
Share this topic:
If you win a perfect match...
#1  November 19, 2003, 08:19:35 am
  • ***
  • Be good to your friends and family
    • www.angelfire.com/games5/colinkok/index.html
Hello! This is my next Tip and Tricks for Mugen. This has no division whatsoever. It doesn't matter which type of member are you, whether veteran or newbies.  Those of you who wants to know more can continue reading.

Have you ever wondered if there was anyway you can make Mugen make the announcer announce "Perfect!" and display the text "Perfect"  if you managed to finish a round with a full life bar (a perfect win)? Here's a tip I received last year from a guy in MugenDev in 27 August 2002 (Whoever you are, I thank you for your help. If you are reading this, please let me know, so that I may give credit to you... :))

He stated this:

"The only way to do this that i know of is to add these functions to your character. So if you want it on every character, you will need to add it to each character individually.

You'll need to add 2 things to each win pose state:
- an explod for the perfect animation/sprite
- a playsnd function for the sound effect

Look in your docs folder, and open sctrls.txt (or sctrls.doc) and look up the explod and playsnd functions.

Now once you have these in your win poses, you'll need to trigger them only when the character has full life. So lets say the character's maximum life is 1000 (default) then the triger would look like this:

trigger1 = (life > 999) && (time = 5)
Basically that says the event will trigger when the characters life is greater that 999 points, and 5 ticks have passed in the win pose state. Adjust the time to a number closer to when you would want it displayed, and the life to one point below your characters max life value.

Hope that you can understand that, don't have time to be more precise.

 
Tips and Tricks courtesy of ? ? ? ? ? ? ? ? ?

EDIT:
After some discussions, the guys in this forum have a better way of doing it:

trigger1 = WinPerfect
trigger1 = time = 350

Basically that says the event will trigger when the characters managed to achieve a Perfect, and 350 ticks have passed in the win pose state. Adjust the time to a number closer to when you would want it displayed.

END of EDIT

Elecbyte did mention this in "mugenfaq.txt":

Quote
Does MUGEN support hidden characters and other secrets?
=======================================================

No, it doesn't.

So, my next topic:

Highlight of the month: "Making hidden/secret characters. Is it really possible?"
Find out in my highlight of the month topic!

Post modified and updated.
Last Edit: November 20, 2003, 07:16:05 am by squallcolin
Re:If you win a perfect match...
#2  November 19, 2003, 08:26:25 am
  • ***
  • y'all suck
    • botcherby.deviantart.com
thanks thats a good one. But I wonder if there is a way to do so without adding this function to every character?

Bea

Re:If you win a perfect match...
#3  November 19, 2003, 11:18:45 am
  • *****
  • MUGEN Grandma
    • Brazil
    • www.smeenet.org
No, no, no!!! That's ugly and doesn't makes sense when you have a winperfect trigger.
People, please, read the whole triggers.txt. There are lots of unusual triggers that no one uses there.

Instead of using Life >= 999, use this:
[State whatever, I don't care]
Type = Explod
trigger1 = winperfect
...

Kisses.
Princess Adora: "My friend saw She-Ra take her dress off in the shower. She said she has an 8 pack. She said She-Ra is shredded."

SF2NES is dead. Long live SF2NES.
Re:If you win a perfect match...
#4  November 19, 2003, 01:24:21 pm
  • ******
    • Germany
besides, life=const(data.life) would make more sense than life>999 ::)
Re: If you win a perfect match...
#5  November 19, 2003, 01:34:51 pm
  • *****
  • can see your halo
    • Germany
    • Skype - panchasell
    • www.mugenguild.com/
Problem with the constants: Doesn't adjust according to Turns mode, for example. You'd need LinuxMUGEN's LifeMax triggers for that. I guess WinPerfect'd be really the best solution.
"Several times now, Achamian thought he had glimpsed golden haloes about Kellhus's hands. He found himself envying those, such as Proyas, who claimed to see them all the time."
--R. Scott Bakker
The Thousandfold Thought (2006)

Booba92i

Re:If you win a perfect match...
#6  November 19, 2003, 02:21:29 pm
Yes WinPerfect is the best solution available because people around don't use the same values for life data.
Last Edit: November 19, 2003, 02:23:39 pm by Expression Direkt
Re:If you win a perfect match...
#7  November 19, 2003, 02:31:43 pm
  • ******
    • Germany
didn't say it wasn't, I just said that life>999 doesn't make any sense :P
Re:If you win a perfect match...
#8  November 19, 2003, 06:21:08 pm
  • ***
  • Be good to your friends and family
    • www.angelfire.com/games5/colinkok/index.html
So, I guess this is it then:

trigger1 = WinPerfect && (time = 5)

or maybe even

trigger1 = WinPerfect
trigger1 = time = 5

How about this method, then:

[State stateno, Perfect]
type = Explod
trigger1 = time = 350
trigger1 = life >= 999
trigger1 = p2life = 0
trigger1 = WinPerfect
value = ?, ?

type = Playsnd
trigger1 = time = 350
trigger1 = life >= 999
trigger1 = p2life = 0
trigger1 = WinPerfect
value = ?, ?
Last Edit: November 19, 2003, 06:27:10 pm by squallcolin

Bea

Re:If you win a perfect match...
#9  November 19, 2003, 06:48:31 pm
  • *****
  • MUGEN Grandma
    • Brazil
    • www.smeenet.org
You just need the winperfect trigger and maybe a time trigger...
There is no need to check your life, to check p2 life or whatever. Winperfect only triggers when you win a round with a full life bar...
Princess Adora: "My friend saw She-Ra take her dress off in the shower. She said she has an 8 pack. She said She-Ra is shredded."

SF2NES is dead. Long live SF2NES.

Booba92i

Re:If you win a perfect match...
#10  November 19, 2003, 06:57:12 pm
Maybe an additional roundstate trigger would help.
Re:If you win a perfect match...
#11  November 19, 2003, 11:48:10 pm
  • ******
    • Germany
or matchover...
Last Edit: November 19, 2003, 11:49:26 pm by Valodim
Re:If you win a perfect match...
#12  December 07, 2003, 12:25:10 am
  • avatar
  • ******
Re:If you win a perfect match...
#13  December 08, 2003, 05:49:57 pm
  • ******
    • Germany
or persistent = 0, if both chars have the sctrl they are triggered both, anyway... ::)
Re:If you win a perfect match...
#14  December 12, 2003, 06:27:44 pm
  • ******
  • SNK is life
now you're just showing off/drowning in technicisms ::)
Re:If you win a perfect match...
#15  December 13, 2003, 02:20:31 am
  • ******
    • Germany
Re:If you win a perfect match...
#16  December 13, 2003, 08:12:03 am
  • avatar
  • ****
Quote
So, I guess this is it then:

trigger1 = WinPerfect && (time = 5)

or maybe even

trigger1 = WinPerfect
trigger1 = time = 5

How about this method, then:

[State stateno, Perfect]
type = Explod
trigger1 = time = 350
trigger1 = life >= 999
trigger1 = p2life = 0
trigger1 = WinPerfect
value = ?, ?

type = Playsnd
trigger1 = time = 350
trigger1 = life >= 999
trigger1 = p2life = 0
trigger1 = WinPerfect
value = ?, ?
Not applyable to DBZ chars.
;Goku cns
[data]
life = 9999
and so on...
Re:If you win a perfect match...
#17  December 13, 2003, 08:46:13 am
  • ***
  • Be good to your friends and family
    • www.angelfire.com/games5/colinkok/index.html
now you're just showing off/drowning in technicisms ::)

well, at least we're not spamming :P:laugh3:

Agreed. :yes: As long as the feedback is useful, it is good for others to see. And as long as there is no arguing, it's okay. Helpful feedbacks are appreciated.

^_^

Alucard4ever, about your reply:

Just remove this line:

Code:
trigger1 = life >= 999

because WinPerfect is the only trigger that is suitable for all HP (or Life).

^_^
Last Edit: December 16, 2003, 10:20:21 am by squallcolin
Re:If you win a perfect match...
#18  December 13, 2003, 04:35:00 pm
  • ******
    • Germany
trigger1=life<const(data.life) :laugh3:
Re:If you win a perfect match...
#19  February 05, 2004, 12:44:12 pm
  • I'm a llama!
errr. if you modify the common cns perhaps all the characters can show the perfect message, am i wrong?
Re:If you win a perfect match...
#20  February 05, 2004, 02:48:30 pm
  • ******
    • Germany
all those who don't overwrite those states... actually, that's about 95% :P