The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: melongod on December 23, 2014, 07:39:22 pm

Title: Help with custom palette states
Post by: melongod on December 23, 2014, 07:39:22 pm
So, I've been making a grappler character, and he's coming out to be perfect. I do want to make his 9th palette a broken version of him that teleports, has extra health, fires fireballs etc. but I can't find a single walkthrough or tutorial on how to add custom states to palettees. Can anyone help me out?
Title: Re: Help with custom palette states
Post by: Bannana on December 23, 2014, 08:05:23 pm
There's a really simple way of doing this using a variable.

All you do is create a variable, so let's say var(39) and set it up so that it activates the variable when you are in palette 9

In your -2 state write
Code:
[state -2 varset bullshit]
type = varset
trigger1 = palno = 9
v = 39
value = 1

Now that you have that, go to your attack states in the -1 (command) and add this
Code:
triggerall = var(39) = 1

Make sure that when you code AI it ALSO has that too so the AI doesn't abuse anything it shouldn't have.
Title: Re: Help with custom palette states
Post by: melongod on December 23, 2014, 08:18:01 pm
I had no idea it was that easy. That really helps! Also, I want to make it autoselect that mode against certain broken characters. Can you provide me with the code for that please?
Title: Re: Help with custom palette states
Post by: XGargoyle on December 23, 2014, 08:20:32 pm
enemy, Name = "whatever"
Title: Re: Help with custom palette states
Post by: melongod on December 23, 2014, 09:00:39 pm
Now I've run into a new problem. Even though I've fully made 9 palettes, my character won't change palettes whatsoever.

     Posted: December 23, 2014, 09:21:16 pm
Nevermind, hadn't applied palettes to certain sprites. Thanks for the help guys!