Control


0206 Label 06
03 Yield
9c000800002c If flag #20 (trigger typing sound) is set then goto 2c
0106 Go to first 06
022c Label 2c
ae Reset and start cycle counter
020a Label 0a
03 Yield
b400003c2c If cycle counter > 60 (1.0 secs) then goto 2c
010a Go to first 0a
022c Label 2c
33 Call RNG
35c836 If random byte > 200 then goto 36
c400b807 Play sound b8 in channel 7
9c001000002d If flag #21 (Natalya coming) is set then goto 2d
c507240000 Make sound in channel 7 play from object 24 (keyboard) with range 0
0036 Go to next 36
022d Label 2d
c507260000 Make sound in channel 7 play from object 26 (keyboard) with range 0
0236 Label 36
9b00080000 Unset flag #20 (trigger typing sound)
0106 Go to first 06
0208 Label 08
05fd0001 Assign function 0001 - Idle to $self and advance frame
04 End of function

Invocations

  • Started automatically

Comments

Wait for flag 20
Wait 1 second
Start playing noise, about 1/5 chance of stopping on any given frame
Unset flag 20
Repeat everything (wait for flag 20 again)