; _______________________
;| Ingrid by DeathScythe |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

;---------------------------------------------------------------------------
;Initialize
[StateDef 5900]
type = S

[State 5900, Int VarReset]
type = VarRangeSet
trigger1 = !RoundsExisted
value = 0

[State 5900, Float VarReset]
type = VarRangeSet
trigger1 = !RoundsExisted
fvalue = 0

;---------------------------------------------------------------------------
; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
; @@@ ONLY MODIFY BELOW THIS LINE @@@
; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;---------------------------------------------------------------------------

[State 5900, Custom Combo / Max Mode Select]
type = VarSet
trigger1 = 1
var(54) = 0 ;CHANGE THIS LINE
;0 = custom combo
;1 = max mode

[State 5900, Hit Spark Type]
type = VarSet
trigger1 = 1
var(55) = 1 ;CHANGE THIS LINE
;0 = normal hit spark (orange)
;1 = multicolored hit spark (normal = orange, special = blue, super = purple)

[State 5900, Hit Spark Size]
type = VarSet
trigger1 = 1
var(56) = 1 ;CHANGE THIS LINE
;0 = Normal
;1 = Small

[State 5900, Randomize 12th Palette]
type = VarSet
trigger1 = 1
var(57) = 1 ;CHANGE THIS LINE
;0 = Normal
;1 = Random

;---------------------------------------------------------------------------
; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
; @@@ ONLY MODIFY ABOVE THIS LINE @@@
; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;---------------------------------------------------------------------------

[State 5900, Mode]
type = VarSet
trigger1 = 1
var(40) = 1 ;DO NOT CHANGE THIS!

[State 5900, Randomize 12th Palette]
type = VarSet
trigger1 = !RoundsExisted && PalNo = 12 && var(57) && !var(0)
var(0) = 8 + Random%13

[State 5900, VarSet]
type = VarSet
trigger1 = !RoundsExisted && PalNo = 12 && var(57)
trigger1 = Enemy, Name = "Ingrid" && Enemy, AuthorName = "DeathScythe"
trigger1 = Enemy, PalNo = var(0) || Enemy, var(0) = var(0)
var(0) = ifElse(var(0) = 21, var(0) - 1, var(0) + 1)

[State 5900, RemapPal]
type = RemapPal
trigger1 = !RoundsExisted
source = 1, 1
dest = 1, PalNo

[State 5900, RemapPal]
type = RemapPal
trigger1 = !RoundsExisted && PalNo = 12 && var(57)
source = 1, 1
dest = 1, var(0)

[State 5900, End]
type = ChangeState
trigger1 = 1
value = 5901