;---------------------------------------------------------------------------
; Initialize (at the start of the round)
[Statedef 5900]
type = S

[State 5900, 1] ;Clear all int variables
type = VarRangeSet
trigger1 = !roundsexisted && matchno = 1
value = 0

[State 5900, 2] ;Clear all float variables
type = VarRangeSet
trigger1 = !roundsexisted && matchno = 1
fvalue = 0

;================================================================================
; Start of Config
;================================================================================

[State 0, Power Bar]
type = VarSet
trigger1 = 1
v = 57
value = 2
; 0: Power Bar is disabled 
; 1: Power Bar is enabled in single and turn battles, but disable in simul battles
; 2: Power Bar is enabled in both single and simul battles

[State 0, Hyper Portrait]
type = VarSet
trigger1 = 1
v = 58
value = 0 
; Set to 1 if you don't want the hyper portrait to use RGB sprites.
; Useful for 1.0 has it handles the transparency of those sprites awkwardly.

;================================================================================
; End of Config
;================================================================================

[State 5900, Pal Selector]
type = Null;Helper
trigger1 = !roundsexisted 
id = 256
stateno = 256
pos = 30,0
facing = facing
ownpal = 1
size.xScale = 0.5
size.yScale = 0.5

[State 0, Rainbow Flag]
type = VarSet
trigger1 = !var(59)
v = 59
value = 1
ignorehitpause = 1

[State 5900, 3] ;Intro
type = ChangeState
trigger1 = 1
value = ifelse(!RoundsExisted,190,0)