;---------------------------------------------------------------------------
;ENDING - borrar en regular mugen
[Statedef 4499]
type = S
ctrl = 0
SprPriority = 0

[State 182, 1]
type = AssertSpecial
trigger1 = 1
flag = roundnotover

;blanco full
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 4507
pos = 0,0
postype = left
ownpal = 1
ontop = 1
removetime = 250

[State 0, ChangeState]
type = ChangeState
trigger1 = time = 250
value = 4500
ctrl = 0

;---------------------------------------------------------------------------
;ENDING - borrar en regular mugen
[Statedef 4500]
type = S
ctrl = 0
SprPriority = 0

;-----------------
;password hard mode
[State 0, ChangeState]
type = ChangeState
trigger1 = time = 8900
trigger1 = enemynear, var(24)=2
value = 4550
ctrl = 0
;-----------------

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = noBG
flag3 = noFG

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 182, 1]
type = AssertSpecial
trigger1 = time < 8900
flag = roundnotover

[State 0, PlaySnd]
type = PlaySnd
trigger1 = !time
value = f 100,0
loop = 1

;PELICULA VIEJA
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 4505
pos = 160,0
postype = left
ownpal = 1
sprpriority = 8
removetime = -1

;ruido
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 4506
pos = 0,0
postype = left
ownpal = 1
sprpriority = 8
removetime = -1

;WIDESCREEN
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4500
pos = 0,0
postype = left
ownpal = 1
sprpriority = 9

;ESC 1
;-----

;Negro in
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4501
postype = left
ownpal = 1
ontop = 1

;nubes 1-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4510
postype = left
sprpriority = 1
removetime = -1
vel = -1,0
iD = 4510

;nubes 1-constante (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = !time
trigger2 = time = 580
anim = 4510
pos = 580,0
postype = left
sprpriority = 1
removetime = -1
vel = -1,0
iD = 4510

;ANIMUS cambia
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4511
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = 0.2,0
iD = 4510

;nube morphing
[State 3900, 1]
type = Explod
trigger1 = time = 500
anim = 4512
pos = 0,0
postype = left
sprpriority = 3
iD = 4510

;dialogo 1
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4600
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 2
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 960
id = 4510

;nubes 2-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 960
anim = 4510
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4520

;nubes 2-constante (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 960
trigger2 = time = 1540
trigger3 = time = 2120
anim = 4510
pos = -580,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4520

;FINAL lejos
[State 3900, 1]
type = Explod
trigger1 = time = 960
anim = 4521
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0.13,0
iD = 4520

;animus atras
[State 3900, 1]
type = Explod
trigger1 = time = 960
anim = 4520
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = -0.13,0
iD = 4520

;dialogo 2
[State 3900, 1]
type = Explod
trigger1 = time = 960
anim = 4603
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 3
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 2590
id = 4520

;Negro in
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4501
postype = left
ownpal = 1
sprpriority = 9

;fondo calabozo
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4530
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = -0.1,0
iD = 4530

;bathory
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4531
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = -0.2,0
iD = 4530

;vela 1
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4532
pos = 0,0
postype = left
sprpriority = 5
removetime = -1
velocity = -0.35,0
iD = 4530

;vela 2
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4532
pos = 170,0
postype = left
sprpriority = 5
removetime = -1
velocity = -0.35,0
iD = 4530

;vela 3
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4532
pos = 340,0
postype = left
sprpriority = 5
removetime = -1
velocity = -0.35,0
iD = 4530

;vela 4
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4532
pos = 510,0
postype = left
sprpriority = 5
removetime = -1
velocity = -0.35,0
iD = 4530

;luz 1
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4534
pos = 0,0
postype = left
sprpriority = 6
removetime = -1
velocity = -0.35,0
iD = 4530

;luz 2
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4534
pos = 170,0
postype = left
sprpriority = 6
removetime = -1
velocity = -0.35,0
iD = 4530

;luz 3
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4534
pos = 340,0
postype = left
sprpriority = 6
removetime = -1
velocity = -0.35,0
iD = 4530

;luz 4
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4534
pos = 510,0
postype = left
sprpriority = 6
removetime = -1
velocity = -0.35,0
iD = 4530

;llama 1
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4533
pos = 0,0
postype = left
sprpriority = 7
removetime = -1
velocity = -0.35,0
iD = 4530

;llama 2
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4533
pos = 170,0
postype = left
sprpriority = 7
removetime = -1
velocity = -0.35,0
iD = 4530

;llama 3
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4533
pos = 340,0
postype = left
sprpriority = 7
removetime = -1
velocity = -0.35,0
iD = 4530

;llama 4
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4533
pos = 510,0
postype = left
sprpriority = 7
removetime = -1
velocity = -0.35,0
iD = 4530

;dialogo 3
[State 3900, 1]
type = Explod
trigger1 = time = 2590
anim = 4609
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 4
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 3720
id = 4530

;fondo calabozo
[State 3900, 1]
type = Explod
trigger1 = time = 3720
anim = 4530
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = -0.1,0
iD = 4540

;bathory
[State 3900, 1]
type = Explod
trigger1 = time = 3720
anim = 4540
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = -0.2,0
iD = 4540

;Negro out
[State 3900, 1]
type = Explod
trigger1 = time = 3920
anim = 4502
postype = left
ownpal = 1
sprpriority = 3
iD = 4540

;ojos final
[State 3900, 1]
type = Explod
trigger1 = time = 3720
anim = 4541
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = -0.2,0
iD = 4540

;dialogo 4
[State 3900, 1]
type = Explod
trigger1 = time = 3720
anim = 4612
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 5
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 4650
id = 4540

;fondo sacrificio
[State 3900, 1]
type = Explod
trigger1 = time = 4650
anim = 4550
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = 0,-0.07
iD = 4550

;sacrificio
[State 3900, 1]
type = Explod
trigger1 = time = 4650
anim = 4551
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = 0,-0.18
iD = 4550

;dialogo 5
[State 3900, 1]
type = Explod
trigger1 = time = 4650
anim = 4615
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 6
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 5480
id = 4550

;Negro in
[State 3900, 1]
type = Explod
trigger1 = time = 5480
anim = 4501
postype = left
ownpal = 1
sprpriority = 9

;nubes 2-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 5480
anim = 4510
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4560

;nubes 2-constante (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 5480
trigger2 = time = 6060
anim = 4510
pos = -580,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4560

;FINAL lejos
[State 3900, 1]
type = Explod
trigger1 = time = 5480
anim = 4521
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0.13,0
iD = 4560

;animus atras
[State 3900, 1]
type = Explod
trigger1 = time = 5480
anim = 4520
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = -0.13,0
iD = 4560

;dialogo 6
[State 3900, 1]
type = Explod
trigger1 = time = 5480
anim = 4617
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 7
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 6510
id = 4560

;nubes 2-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 6510
anim = 4510
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4570

;nubes 2-constante (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 6510
trigger2 = time = 7090
anim = 4510
pos = -580,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4570

;FINAL cerca
[State 3900, 1]
type = Explod
trigger1 = time = 6510
anim = 4570
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0.2,0
iD = 4570

;dialogo 7
[State 3900, 1]
type = Explod
trigger1 = time = 6510
anim = 4620
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;ESC 8
;-----

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 7240
id = 4570

;nubes 2-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4510
pos = 0,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4580

;nubes 2-constante (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 7240
trigger2 = time = 7820
anim = 4510
pos = -580,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4580

;corazon
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4582
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
iD = 4580

;agarrado
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4580
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0,0.15
iD = 4580

;luces
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4581
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = 0,0.15
iD = 4580

;Negro out
[State 3900, 1]
type = Explod
trigger1 = time = 7970
anim = 4502
postype = left
ownpal = 1
sprpriority = 8
iD = 4580

;animus muere
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4583
pos = 0,0
postype = left
sprpriority = 9
removetime = -1
iD = 4580

;dialogo 8
[State 3900, 1]
type = Explod
trigger1 = time = 7240
anim = 4622
pos = 0,0
postype = left
ownpal = 1
sprpriority = 10

;---------------------------------------------------------------------------
; PASSWORD HARD MODE
[Statedef 4550]
type = S
ctrl = 0
velset = 0,0

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = noBG
flag3 = noFG

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nomusic

[State 182, 1]
type = AssertSpecial
trigger1 = time < 800
flag = roundnotover

;fondo
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3150
pos = 182,179
postype = left
ownpal = 1
sprpriority = 10
removetime = -1

;LETRA 01
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3217
pos = 195,179
postype = left
ownpal = 1
sprpriority = 11
removetime = -1

;LETRA 02
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3220
pos = 204,179
postype = left
ownpal = 1
sprpriority = 11
removetime = -1

;LETRA 03
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3223
pos = 213,179
postype = left
ownpal = 1
sprpriority = 11
removetime = -1

;LETRA 04
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3222
pos = 222,179
postype = left
ownpal = 1
sprpriority = 11
removetime = -1

;NEGRO IN
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 4510
pos = 0,0
postype = left
ownpal = 1
sprpriority = 12

;PELICULA VIEJA
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 4505
pos = 160,0
postype = left
ownpal = 1
sprpriority = 11
removetime = -1



