Train


0206 Label 06
03 Yield
9c0000080001 If flag #12 (anyone attacking) is set then goto 01
0106 Go to first 06
0201 Label 01
ae Reset and start cycle counter
0211 Label 11
03 Yield
314602 If actor 46 (Natalya) has finished death animation then goto 02
314835 If actor 48 (Xenia) has finished death animation then goto 35
0202 Label 02
b400038401 If cycle counter > 900 (15.0 secs) then goto 01
0111 Go to first 11
0235 Label 35
b400070801 If cycle counter > 1800 (30.0 secs) then goto 01
0111 Go to first 11
0201 Label 01
ae Reset and start cycle counter
c39012 Display text at top:
Trevelyan: Good luck with the floor, James.
0212 Label 12
b400012c01 If cycle counter > 300 (5.0 secs) then goto 01
03 Yield
0112 Go to first 12
0201 Label 01
c39013 Display text at top:
Trevelyan: It shouldn't take more than a minute.
b7003c Set countdown timer to 60 seconds
b9 Start countdown timer
b5 Show countdown timer
0213 Label 13
03 Yield
960435 If $self->somevalue is 4 then goto 35
bb001e14 If countdown timer < 30 then goto 14
0235 Label 35
960235 If $self->somevalue is 2 then goto 35
bb001702 If countdown timer < 23 then goto 02
0235 Label 35
960135 If $self->somevalue is 1 then goto 35
bb001401 If countdown timer < 20 then goto 01
0235 Label 35
bb000015 If countdown timer < 0 then goto 15
0113 Go to first 13
0201 Label 01
c4003a00 Play sound 3a in channel 0
c70000000e10 Sound in channel 0 changes to volume 0 over 3600ms
9401 Set $self->somevalue to 1
0113 Go to first 13
0202 Label 02
c901 Stop sound in channel 1
c400d702 Play sound d7 in channel 2
c60200470000 Set audible range for channel 2 to 0 units from pad 0047
9402 Set $self->somevalue to 2
0113 Go to first 13
0214 Label 14
c400d603 Play sound d6 in channel 3
c60300470000 Set audible range for channel 3 to 0 units from pad 0047
03 Yield
c400d801 Play sound d8 in channel 1
c60100470000 Set audible range for channel 1 to 0 units from pad 0047
9404 Set $self->somevalue to 4
0113 Go to first 13
0215 Label 15
b6 Hide countdown timer
9a00080000 Set flag #20 (countdown expired)
0208 Label 08
03 Yield
0108 Go to first 08
04 End of function

Invocations

  • Started automatically

Comments

Wait for flag 12
Wait for 15 seconds, or if Xenia is dead and Nat is alive then wait 30 seconds
"Good luck with the floor"
Wait 5 seconds
"It shouldn't take more than a minute"
Start 60 second countdown
Play noises when 30, 23, 20 seconds remaining