;---------------------------------------------------------------------------
;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 = 7600
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 < 7600
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
pos = 0,0
postype = left
ownpal = 1
ontop = 1

;nubes 1-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4510
pos = 0,0
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

;HASHI frente
[State 3900, 1]
type = Explod
trigger1 = !time
anim = 4511
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = 0.2,0
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 = 810
id = 4510

;nubes 2-1 (ancho = 580)
[State 3900, 1]
type = Explod
trigger1 = time = 810
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 = 810
trigger2 = time = 1390
anim = 4510
pos = -580,0
postype = left
sprpriority = 1
removetime = -1
vel = 1,0
iD = 4520

;FINAL cerca
[State 3900, 1]
type = Explod
trigger1 = time = 810
anim = 4520
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = -0.13,0
iD = 4520

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

;ESC 3
;-----

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

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

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

;hashi atras
[State 3900, 1]
type = Explod
trigger1 = time = 1790
anim = 4530
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = 0.13,0
iD = 4530

;final lejos
[State 3900, 1]
type = Explod
trigger1 = time = 1790
anim = 4531
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = -0.13,0
iD = 4530

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

;ESC 4
;-----

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

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

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

;ambos pensando
[State 3900, 1]
type = Explod
trigger1 = time = 3120
anim = 4540
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = 0.1,0
iD = 4540

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

;ESC 5
;-----

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

;blanco IN
[State 3900, 1]
type = Explod
trigger1 = time = 4250
anim = 4503
pos = 0,0
postype = left
sprpriority = 8
iD = 4550

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

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

;hashi semilla
[State 3900, 1]
type = Explod
trigger1 = time = 4250
anim = 4550
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = -0.1,0
iD = 4550

;final manito
[State 3900, 1]
type = Explod
trigger1 = time = 4250
anim = 4551
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = -0.1,0
iD = 4550

;ojos
[State 3900, 1]
type = Explod
trigger1 = time = 4250
anim = 4552
pos = 0,0
postype = left
sprpriority = 5
removetime = -1
vel = -0.1,0
iD = 4550

;luz semilla
[State 3900, 1]
type = Explod
trigger1 = time = 4250
anim = 4553
pos = 0,0
postype = left
sprpriority = 5
removetime = -1
vel = -0.1,0
iD = 4550

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

;ESC 6
;-----

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

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

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

;piso
[State 3900, 1]
type = Explod
trigger1 = time = 5280
anim = 4560
pos = 0,0
postype = left
sprpriority = 2
removetime = -1
vel = 0,0.05
iD = 4560

;bako asustado
[State 3900, 1]
type = Explod
trigger1 = time = 5280
anim = 4561
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0,0.05
iD = 4560

;teleport bako asustado
[State 3900, 1]
type = Explod
trigger1 = time = 5280
anim = 4563
pos = 0,0
postype = left
sprpriority = 5
removetime = -1
vel = 0,0.05
iD = 4560

;hashi atras oscuro
[State 3900, 1]
type = Explod
trigger1 = time = 5280
anim = 4562
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = 0,0.1
iD = 4560

;teleport hashi atras oscuro
[State 3900, 1]
type = Explod
trigger1 = time = 5280
anim = 4564
pos = 0,0
postype = left
sprpriority = 5
removetime = -1
vel = 0,0.1
iD = 4560

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

;ESC 7
;-----

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

;blanco IN
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4503
pos = 0,0
postype = left
sprpriority = 8
iD = 4570

;precipicio 1
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4570
pos = 0,0
postype = left
sprpriority = 1
vel = 0,-2
iD = 4570

;precipicio constante (290)
[State 3900, 1]
type = Explod
trigger1 = time = 6460
trigger2 = time = 6750
trigger3 = time = 7040
trigger4 = time = 7330
trigger5 = time = 7620
trigger6 = time = 7910
trigger7 = time = 8200
trigger8 = time = 8490
anim = 4570
pos = 0,580
postype = left
sprpriority = 1
vel = 0,-2
iD = 4570

;bako cae
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4571
pos = 0,0
postype = left
sprpriority = 2
vel = 0,0.1
iD = 4570

;TELEPORT bako cae
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4573
pos = 0,0
postype = left
sprpriority = 4
vel = 0,0.1
iD = 4570

;hashi cae
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4572
pos = 0,0
postype = left
sprpriority = 3
removetime = -1
vel = 0,0.1
iD = 4570

;TELEPORT hashi cae
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4574
pos = 0,0
postype = left
sprpriority = 4
removetime = -1
vel = 0,0.1
iD = 4570

;CAIDA
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4580
pos = 0,0
postype = left
sprpriority = 6
removetime = -1
iD = 4570

;dialogo 7
[State 3900, 1]
type = Explod
trigger1 = time = 6460
anim = 4623
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 3206
pos = 195,179
postype = left
ownpal = 1
sprpriority = 11
removetime = -1

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

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

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

;LETRA 05
[State 3900, 1]
type = Explod
trigger1 = !time
anim = f 3227
pos = 231,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

