Barebones function 23

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 23

Function 23: 23:

  • Function 23 = Part of thread. Quest failed countdown timer.

Functions contained in this thread in order of activation.

Name of thread: Quest failed countdown timer.

Barebones function 60, = Threads 22.

Barebones function 22, = Jumps to function 23 when register 105 = 00000000.

Barebones function 23, = 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 23 is used to set up and preform a final check for quest failure for quests that use the count down timer.

How the function appears in the script


23:      sync  //Waits 1 frame.
         jmpi_= R22, 00000001, 1 //If register 22 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 R109, 00000001 //Makes register 109 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 60, Barebones function 22, Barebones function 10000,

Barebones function 11500, Barebones function 1005, Barebones function 1,