Barebones function 80

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 80

Function 80: 80:

  • Function 80 = Part of a jump sequence. Starting forest console count up timer.

Jump sequence

Jump sequence name: Starting forest console count up timer.

Barebones function 70 = Function 70 goes on a forest console to be used as the start of a count up timer. Function 70 contains a shutoff of the console at the start. Stops players movement. A message letting them know the mission will begin, what kind of timer will be used, and that a door or fence will be opened when all players have arrived. Asks the players to start waiting for everyone to arrive. It then has a list for a choice the player can make to start waiting wile staying unmovable and continue the jump sequence (yes), or to not wait and resume there movement(no).

Barebones function 71 = Function 71 displays a window message that says the player is now waiting on other to arrive. sets register 99 so that the forest console count up timer can not be reused. Re stores the current players slot number in register 250. Makes a switch call depending on the slot number the player is in to sync_register registers used in taking attendance. thread_stg function 76 until the players leave the floor.

Barebones function 72 = Function 72 sync_registers the attendance register 215 to 00000001 used for the red gem player.

Barebones function 73 = Function 73 sync_registers the attendance register 216 to 00000001 used for the green gem player.

Barebones function 74 = Function 74 sync_registers the attendance register 217 to 00000001 used for the yellow gem player.

Barebones function 75 = Function 75 sync_registers the attendance register 218 to 00000001 used for the blue gem player.

Barebones function 76 = Function 76 is thread_stg in function 71. Clears register 210. floor_player_detect and stores it in register 219. Begins taking attendance for the red gem player.

Barebones function 77 = Function 77 begins taking attendance for the green gem player.

Barebones function 78 = Function 78 begins taking attendance for the yellow gem player.

Barebones function 79 = Function 79 begins taking attendance for the blue gem player.

Barebones function 80 = Function 80 get_number_of_player1 and stores it in register 223. Jump checks if register 210 is not equal to register 223 jump to function 76. Clears registers 215, 216, 217, 218. Calls function 110. sync_register register 115 to 00008CA0 for a 10 hour count up timer.(this can be edited with a custom time to suit the needs of your quest.) sync_registers register 110 to 00000001 to start the count up timer. sync_registers register 119 to 00000001 to let the guild lady know what kind of time attack information to display at the end. Threads function 32 to constantly check if the time limit has been reached to start the quest failure sequence. se 00000007 plays a sound effect to alert players that the clock has started. Displays a window message informing the players ready, go. Closes the window message. Unlocks the opening door or laser fence.(placeholder you need to edit in the in for for the floor you are on and the door id to open in this opt code to suit the needs of your quest.) Jumps to function 3 restoring the players movement and ending the jump sequence.

Barebones function 1 = Used to end threads or functions.

Use

Function 80 get_number_of_player1 and stores it in register 223. Jump checks if register 210 is not equal to register 223 jump to function 76. Clears registers 215, 216, 217, 218. Calls function 110. sync_register register 115 to 00008CA0 for a 10 hour count up timer.(this can be edited with a custom time to suit the needs of your quest.) sync_registers register 110 to 00000001 to start the count up timer. sync_registers register 119 to 00000001 to let the guild lady know what kind of time attack information to display at the end. Threads function 32 to constantly check if the time limit has been reached to start the quest failure sequence. se 00000007 plays a sound effect to alert players that the clock has started. Displays a window message informing the players ready, go. Closes the window message. Unlocks the opening door or laser fence.(placeholder you need to edit in the in for for the floor you are on and the door id to open in this opt code to suit the needs of your quest.) Jumps to function 3 restoring the players movement and ending the jump sequence.

How the function appears in the script


80:      get_number_of_player1 R223 //get_number_of_player1 and stores it in register 223.
         jmp_!= R210, R223, 76 //Compares register 210 and register 223 if they do not have the same value jump to function 76.
         clear R215 //Makes register 215 equal 00000000.
         clear R216 //Makes register 216 equal 00000000.
         clear R217 //Makes register 217 equal 00000000.
         clear R218 //Makes register 218 equal 00000000.
         call 110 //Calls function 110.
         sync_register R115, 00008CA0 //Makes register 115 equal 00008CA0 for all players. This is the amount of time your count up timer clock will have. Edit it's value to suit the needs of your quest. This is a 10 hour count up timer by default.
         sync_register R110, 00000001 //Makes register 110 equal 00000001 for all players. Starting the count up timer clock.
         sync_register R119, 00000001 //Makes register 119 equal 00000001 for all players. So the guild lady will know which time attack info to display.
         thread 32 //Threads function 32.
         se 00000007 //Plays a sound effect to let players know the clock has started.
         window_msg Ready? //Displays a window message.
         add_msg Go! //Next continuous window message.
         winend  //Closes the window message.
         unlock_door2 00000000, 00000000 //Unlocks the opening door or laser fence.(Placeholder you need to edit in the in for for the floor you are on and the door id to open in this opt code to suit the needs of your quest.).
         jmp 3 //Jumps to function 3.

Also see

get_number_of_player1, jmp_!=, clear, call,

sync_register, thread, se, window_msg, add_msg, winend,

unlock_door2, ret, Barebones function 1, Barebones function 3,

Barebones function 32, Barebones function 70, Barebones function 71,

Barebones function 72, Barebones function 73, Barebones function 74,

Barebones function 75, Barebones function 76, Barebones function 77,

Barebones function 78, Barebones function 79