Would you like to react to this message? Create an account in a few clicks or log in to continue.
Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
Subject: Simplest way to have a pallete selector by Xasor May 16th 2014, 11:40 am
Preview on how it works
Well since I'm new here I think I'll contribute a little.
I was looking for a way to change my Hulk's palletes while on his intro and I stumbled upon XCOSTUME PALLETE SELECTOR 2.0 on MFG and I like the idea but I'm too lazy to import those things on my character.
So I did what I did what I always loved to do. Improvise
I want to make it as simple and practical as possible so here is how you do it
Put this inside your intro state
Spoiler:
[State 0, RemapPal] trigger1 = command = "down" ; you will press the down button to go through your palletes type = RemapPal ; Basically means what it states remapping your palette source = 1,1 ; your remapping this palette to the one below dest = 1,1+(random%6) ; lets say you have six palletes it will randomize from 1 + 0 to 6 if you have more you can change it
[State 0, PlaySnd] type = PlaySnd trigger1 = command = "down" ; this is just basically the clicking sound it makes when you change palettes it's not necessary value = S0,6 ; just the one above is enough to have a pallete selector volume = 255 channel = -1
[State 191, 4] ;Change to stand state type = ChangeState trigger1 = time >= 500; I looped the last anim and made it longer so you can select longer value = 0
Delete your stateno 5900 on your common.cns and paste this
Spoiler:
;--------------------------------------------------------------------------- ; Initialize (at the start of the round) [Statedef 5900] type = S
[State 5900, 1] ;Clear all int variables type = VarRangeSet trigger1 = roundsexisted = 0 value = 0
[State 5900, 2] ;Clear all float variables type = VarRangeSet trigger1 = roundsexisted = 0 fvalue = 0
[State 5900, 3] ;Intro for round 1 type = ChangeState trigger1 = roundno = 1 value = 190
[State 5900, 3] ;Intro for round 1 type = ChangeState trigger1 = roundno = 2 trigger2 = roundno = 3 trigger3 = roundno = 4 value = 5901 ;--------------------------------------------------------------------------- ; Round NO 2,3,4 palette selector ; CNS difficulty: basic [Statedef 5901] type = S ctrl = 0 anim = 0 velset = 0,0
[State 0, RemapPal] trigger1 = command = "down" type = RemapPal source = 1,1 dest = 1,1+(random%6)
[State 190, 1] type = ChangeAnim trigger1 = RoundState = 0 value = 0
[State 190, 2] type = AssertSpecial trigger1 = 1 flag = Intro
[State 0, AssertSpecial] type = AssertSpecial trigger1 = 1 flag = nomusic
[State 191, 4] ;Change to stand state type = ChangeState trigger1 = time >= 500 value = 0
And Voilà you can now change palettes in your intro like a pro coder
IMPORTANT NOTE : The only downside of this is your randomizing through the palettes not browsing them and you need choose a palette each round since it has no vars but now with this simple code you can change the palettes in your intro.
Last edited by Xasor on May 18th 2014, 4:28 am; edited 7 times in total
warecus
Posts : 591 Join date : 2012-05-27
Subject: Re: Simplest way to have a pallete selector by Xasor May 16th 2014, 11:55 am
where and what do you add this to
Xasor
Posts : 89 Join date : 2014-05-13 Age : 29
Subject: Re: Simplest way to have a pallete selector by Xasor May 16th 2014, 12:03 pm
warecus wrote:
where and what do you add this to
You just basically need to add this to your intro
[State 0, RemapPal] trigger1 = command = "down" type = RemapPal source = 1,1+(random%6) dest = 1,random%7
but if you want to know more you can read the whole thing
XXDreamBrotherXX
Posts : 838 Join date : 2012-06-15 Location : Australia
Subject: Re: Simplest way to have a pallete selector by Xasor May 16th 2014, 11:32 pm
Using this method are you still limited to 6 pals or can you have unlimited like XCOSTUME?
Xasor
Posts : 89 Join date : 2014-05-13 Age : 29
Subject: Re: Simplest way to have a pallete selector by Xasor May 16th 2014, 11:42 pm
Just change the dest = 1,random%(how many pals you have + 1, I have 6 so random%7)
Its not unlimited though your still limited to 12 pals but if you want 12 just use random%13
Posts : 602 Join date : 2013-04-18 Age : 42 Location : BRASIL
Subject: Re: Simplest way to have a pallete selector by Xasor May 17th 2014, 3:57 am
wow it´s very good congratulations guy , this is awesome
crosspotts1.0
Posts : 4982 Join date : 2013-04-15 Age : 32 Location : GLEN BURNIE maryland
Subject: Re: Simplest way to have a pallete selector by Xasor May 25th 2014, 12:30 pm
damn thats pretty chill
SIRALEXBABY
Posts : 1233 Join date : 2013-01-09
Subject: Re: Simplest way to have a pallete selector by Xasor January 10th 2018, 6:03 pm
CAN SOMEONE PLS HELP ON HOW THIS WORKS..THE VIDEO IS GONE..ANY HELP HOW TO DO THIS ..STEP BY STEP..I SEE THE INSTRUCTION..BUT DON'T UNDERSTAND..A LITTLE MORE HELP PLS..I WANT TO PUT THIS ON SOME CHARACTERS..ANYONE PLS HELP..THANK YOU AND GOD BLESS YOU..
Sponsored content
Subject: Re: Simplest way to have a pallete selector by Xasor