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

[State 5900, HD Meter Position]
type = Null
trigger1 = (var(35) := 15)||e 
trigger1 = (var(36) := 231)||e 
persistent = 1

; Leave everything below alone.

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

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

[State 5900, 3] ;Change palette
type = RemapPal
trigger1 = 1
source = 1,1
dest = 1,palno

[State 5900, 4] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = IfElse(EnemyNear, Name = "Gato", 192, 191)

[State 5900, 5] ;All other rounds
type = ChangeState
trigger1 = 1
value = 0