YesNoOk
avatar

How to seperate Modes (Read 1224 times)

Started by KOFHƎRO77, September 06, 2018, 10:48:30 pm
Share this topic:
How to seperate Modes
#1  September 06, 2018, 10:48:30 pm
  • ***
    • Morocco
I have POTS's Nash and i want to seperate his two modes (Normal,Shadow) in two .def files.Can someone help please ?
Re: How to seperate Modes
#2  September 07, 2018, 02:40:16 am
  • ****
  • For the Murder!
I don't have that char, but I assume its shadow mode is controlled by the palette selected.
If so, open its cns file and find the main trigger of the alternate mode (at this point im assuming things)
It should look more or less like this:

[State 0, VarSet]
type = VarSet
trigger1 = palno[1-6]
v = X 
value = 0

[State 0, VarSet]
type = VarSet
trigger1 = palno[7-12]
v = X 
value = 1

Now make sure the value the var(x) takes is 0 in both cases and save it

Then, make it that in both cases it takes the value 1 and save it with a different name.

Now, make a duplicate of the def file and edit the line that access to the main cns and make it access instead of the edited one with the trigger active

You now have two def files, one is Nash and the other should be shadow
Lord Noble Eye of Dezeroff; High Commander of the Reconnaissance Division, Airborne Corps; Fifth Seat in the Murder's Council; and Duke of Corvus
Re: How to seperate Modes
#3  September 07, 2018, 02:51:02 am
  • ****
    • crepa.neocities.org
To be more specific:

Copy the whole folder, paste, then rename them to something like Normal Nash / Shadow Nash
Open one of them, for exemple, Normal Charlie, go to the "States" folder, then open "System.st" with a notepad or in Fighter Factory
Search for this:

Code:
[State 5900, Mode]
type = varset
trigger1 = 1
var(1) = (palno = [7, 12])

If you're editing Normal Nash, replace "var(1) = (palno = [7,12])" for "var(1) = 0"
If you're editing Shadow Nash, replace the same thing to "var(1) = 1"

Save it. Remember you have to edit both of them, and you'll have to edit his palettes too, otherwise, Normal Nash will still use Shadow Nash's palettes and viceversa.

Edit: or, if you know what you're doing, you can do something similar to what Duke said, copying only the System.st and the DEF file, it would save space instead of copying the whole folder.
Last Edit: September 07, 2018, 02:55:17 am by DeathScythe
Re: How to seperate Modes
#4  September 07, 2018, 03:11:10 am
  • ****
  • For the Murder!
Oh, I see. Mode selection is stored in system.st and not in the main cns as I assumed
Lord Noble Eye of Dezeroff; High Commander of the Reconnaissance Division, Airborne Corps; Fifth Seat in the Murder's Council; and Duke of Corvus
Re: How to seperate Modes
#5  September 07, 2018, 01:28:47 pm
  • ***
    • Morocco
To be more specific:

Copy the whole folder, paste, then rename them to something like Normal Nash / Shadow Nash
Open one of them, for exemple, Normal Charlie, go to the "States" folder, then open "System.st" with a notepad or in Fighter Factory
Search for this:

Code:
[State 5900, Mode]
type = varset
trigger1 = 1
var(1) = (palno = [7, 12])

If you're editing Normal Nash, replace "var(1) = (palno = [7,12])" for "var(1) = 0"
If you're editing Shadow Nash, replace the same thing to "var(1) = 1"

Save it. Remember you have to edit both of them, and you'll have to edit his palettes too, otherwise, Normal Nash will still use Shadow Nash's palettes and viceversa.

Edit: or, if you know what you're doing, you can do something similar to what Duke said, copying only the System.st and the DEF file, it would save space instead of copying the whole folder.

It works Thanks both of you guys
Re: How to seperate Modes
#6  September 08, 2018, 08:25:20 am
  • avatar
  • **
    • USA
For future reference, as a universal solution, you can do a very simple DEF modification to split characters that change based on their palette.  Make a copy of the original DEF to edit for the other mode and then edit the pal.defaults and palette keymap of each to disable the appropriate palettes.

So for example, on Gigahertz' cvsmrkarate, the stock def should have:

Code:
Pal.Defaults=4,5,6,1,2,3

;this goes at the bottom of the DEF if it doesn't have it already
[Palette Keymap]
x = 4
y = 5
z = 6
a = 1
b = 2
c = 3
x2 = 4 ;Hold Start and press button X for palette 7, etc.
y2 = 5
z2 = 6
a2 = 1
b2 = 2
c2 = 3

and your Serious Mr Karate DEF gets :

Code:
Pal.Defaults=10,11,12,7,8,9

[Palette Keymap]
x = 10
y = 11
z = 12
a = 7
b = 8
c = 9
x2 = 10 ;Hold Start and press button X for palette 7, etc.
y2 = 11
z2 = 12
a2 = 7
b2 = 8
c2 = 9

Of course, if the default palette should be 1/7, you can change the order in pal.defaults.  If you want A to be default instead of X, swap that in the palette keymap.  This is just an example.

This has one disadvantage in that if you have the setting enabled that allows the CPU to use random palettes, it can still pick a different mode.