;(Animation + Sound Config) You can put this code in any state file
[Statedef 256]
physics = N
anim = 256
velset=0,0
sprpriority=99999
[State 256, PosSet]
type = PosSet
trigger1 =!time
x = root,facing*-90
y = 25
ignorehitpause = 1
[State 256, AS]
type=assertspecial
trigger1=1
flag=intro
flag2=noshadow
[State 256, Reset]
type=varset
trigger1=!time
var(29)=200
[State 256, Pal]
type=varset
trigger1=!time
var(26)=root,palno
[State 256, Varset]
type=varset
trigger1=var(26)<1||var(26)>12 ;YOURLASTPALETTE
var(26)=1+(var(26)<1)*11 ;1 LESS THAN YOUR LAST PALETTE
[State 256, PlaySnd]
type = PlaySnd
trigger1 =var(10)=2
value = S256,0
volumescale = 50
channel = 20
[State 256, PlaySnd]
type = PlaySnd
triggerall=ishelper(256)
trigger1=root,command="a"||root,command="b"||root,command="c"||root,command="x"||root,command="y"||root,command="z"||root,command="s"||roundstate=2
trigger2=var(29)<=5
value = S256,1
volumescale = 50
channel = 20
persistent =0
[State 256, Countdown]
type = VarAdd
trigger1 =1
var(29)=-1
[State 256, Countdown]
type = VarAdd
trigger1=!var(10)&&var(29)<150
trigger1=root,command="holdup"||root,command="holddown"||root,command="holdback"||root,command="holdfwd"
var(29)=25
[State 256, Varadd]
type=varadd
trigger1=!var(10)
trigger1=root,command="holdup"||root,command="holddown"||root,command="holdback"||root,command="holdfwd"
var(26)=1-(root,command="holddown"||root,command="holdback"&&facing=1||root,command="holdfwd"&&facing=-1)*2
[State 256, Varadd]
type=varadd
trigger1=(root,command="holdup"||root,command="holddown"||root,command="holdback"||root,command="holdfwd")&&!var(10)||var(10)
var(10)=1
[State 256, Varset]
type=varset
trigger1=!time||var(10)>=17
var(10)=0
[State 256, End]
type=destroyself
triggerall=ishelper(256)
trigger1=root,command="a"||root,command="b"||root,command="c"||root,command="x"||root,command="y"||root,command="z"||root,command="s"||roundstate=2
trigger2=var(29)<=0
trigger3=root,AILevel
;(Palette Config) Put this code under [statedef -2]
[state -2, Palette]
type = varset
trigger1 = numhelper(256)
trigger1=helper(256),var(26)=[1,12] ; [1,LASTPALETTE]
var(26)= helper(256),var(26)
ignorehitpause = 1
[state -2, Palette Selection]
type = remappal
trigger1 = numhelper(256)
trigger1=helper(256),var(26)=[1,12] ; [1,LASTPALETTE]
source = 1, 1
dest = 1, var(26)
ignorehitpause = 1
[state -2, Continue Palette]
type = remappal
trigger1=var(27)&&!AILevel&&matchno>1
source = 1, 1
dest = 1, var(26)
ignorehitpause = 1
Library error message: Died parsing root,command="a"||root,command="b"||root,command="c"||root,command="x"||root,command="y"||root,command="z"||root,command="s"||roundstate=2
Error detected.
Undefined command label: "command".
If not misspelling in CNS, check CMD
Error parsing trigger1, 1
Error parsing [State 256, PlaySnd]
Error in [Statedef 256]
Error in States/System.st:53
Error loading chars/Bison/Bison.def
Error loading p1
Clipboard tail:
Unloading match assets
Freeing players
Game loop init
Versus screen init
End of versus screen loop
Game loop deinit
Gameflow 11
Loading match assets...
Loading stage...
Loading BG...OK
Stage loaded OK
Allocating helpers...OK
Match RNG seed: 1166790138
Reset persist vars team 0
Reset persist vars team 1
Loading character chars/Bison/Bison.def...
Loading info...OK
Loading cmd command set Command.cmd...OK
Loading cns Constants.cns...Freeing player RC Vega...CMD...CNS...SFF...AIR...SND...Misc...OK
Character Bison.def failed to load