YesNoOk
avatar

Special intro coding help needed, please. :) (Read 252 times)

Started by mh777, November 14, 2009, 11:29:02 pm
Share this topic:
Special intro coding help needed, please. :)
#1  November 14, 2009, 11:29:02 pm
  • ***
  • I'm not a player, I guard-crush a lot.
    • USA
    • mugenorama.smeenet.org/index.html
I'm adjusting Mouser's KOF Kim for my own nefarious (re: nerdy) needs, and adding more names to the "vs. evil" intro trigger.  However, I also want that particular intro to trigger against certain alternate evil modes (i.e. the kind activated by the "hold start" method).  Is it possible?  I've tried triggering via p2name = "blahblah" && palno >= 7 just to see if it worked; of course it didn't.

So, can it be done?  Is it possible to detect the opponent's variables to see if and when that particular variable that says "evil mode" is active, as well?  Keep in mind that character programming is not my strongest suit.  :)

While I'm at it, is there a way to simplify or at least condense the trigger?  It's a veritable clustershmazz as it is right now.   ;P
Re: Special intro coding help needed, please. :)
#2  November 14, 2009, 11:33:18 pm
  • ******
  • Somebody PM when Caddie is no longer a mod.
Yes. Just use the var as a trigger for the intro along with name and such.

It should work with pal number though too.

I suggest testing with one trigger at a time. Try name by itself, then pal #, and then if you must use a var. But test each trigger one by one..
Re: Special intro coding help needed, please. :)
#3  November 15, 2009, 12:06:15 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
... Shamrock!

You need to use redirects.

P2name = "blah" && enemy, palno >= 7

May cause malfunctions in simul though as it will pick up the name of one person and the palno of another. You can circumvent that but it's awkward and this will work 90% of the time anyway.

if you did

trigger1 = enemynear(0), name = blah && enemynear(0), palno >= 7
trigger2 = enemynear(1), name = blah && enemynear(1), palno >= 7

You get around it, but that's a huge number of extra triggers for a minor effect. Specially if you have to do this a lot.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Special intro coding help needed, please. :)
#4  November 15, 2009, 05:38:28 am
  • ***
  • I'm not a player, I guard-crush a lot.
    • USA
    • mugenorama.smeenet.org/index.html
Bingo, worked like a charm.  Thanks for the answers, gents.   :2thumbsup: