Barebones function 33
Contents
Barebones function 33
Function 33: 33:
- Function 33 = Part of thread. Quest failed count up timer.
Functions contained in this thread in order of activation.
Name of thread: Quest failed count up timer.
Barebones function 80, = Threads 32.
Barebones function 32, = Jumps to function 33 when register 112 = 00000001.
Barebones function 33, = Makes function 1, or function 10000 happen.
Barebones function 10000, = Makes function 11500 happen.
Barebones function 11500, = Makes function 1005 happen.
Barebones function 1005 = Makes function 1 happen.
Barebones function 1, = Ends the thread.
Use
Function 33 is used to set up and preform a final check for quest failure for quests that use the count up timer.
How the function appears in the script
33: sync //Waits 1 frame.
jmpi_= R32, 00000001, 1 //If register 32 equals 00000001 jump to function 1.
call 222 //Calls function 222.
freeze_enemies //Freezes all the enemies making them not move as well as making all enemies un-target-able.
sync_register R98, 00000001 //Makes register 98 equal 00000001 for all players.
sync_register R119, 00000001 //Makes register 119 equal 00000001 for all players.
p_disablewarp //Makes telepipes and ryuker un-use-able as well as removing any telepipes that may currently exist.
warp_off //Disables access to the main ragol teleporter, principals office, lab area, and any warps you may have placed.
window_msg Time is up! //Displays a window message.
winend //Closes a window message.
fadeout //Makes the camera fade to black.
unfreeze_enemies //Restores enemy movement and makes the enemies target able again.
leti R97, 00000000 //Makes register 97 equal 00000000.
go_floor R250, R97 //Sends the players back to floor 0.
ret
Also see
sync, jmpi_=, call, freeze_enemies, sync_register,
p_disablewarp, warp_off, window_msg, winend, fadeout,
unfreeze_enemies, leti, go_floor, ret,
Barebones function 80, Barebones function 32, Barebones function 10000,
Barebones function 11500, Barebones function 1005, Barebones function 1,