Barebones function 57

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 57

Function 57: 57:

  • Function 57 = Part of a jump sequence. Starting forest console count down timer.

Jump sequence

Jump sequence name: Starting forest console count down timer.

Barebones function 50 = Function 50 goes on a forest console to be used as the start of a count down timer. Function 50 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 51 = Function 51 displays a window message that says the player is now waiting on other to arrive. sets register 99 so that the forest console count down 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 56 until the players leave the floor.

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

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

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

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

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

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

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

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

Barebones function 60 = Function 60 get_number_of_player1 and stores it in register 225. Jump checks if register 210 is not equal to register 225 jump to function 56. Clears registers 215, 216, 217, 218. Calls function 100. sync_register register 105 to 00000708 for a 30 minute count down timer.(this can be edited with a custom time to suit the needs of your quest.) sync_registers register 100 to 00000001 to start the count down timer. sync_registers register 109 to 00000001 to let the guild lady know what kind of time attack information to display at the end. Threads function 22 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 57 begins taking attendance for the green gem player.

How the function appears in the script


57:      jmpi_= R220, 00000000, 58 //If register 220 equals 00000000 jump to function 58.
         jmpi_= R216, 00000000, 56 //If register 216 equals 00000000 jump to function 56.
         addi R210, 00000001 //Adds 1 to register 210.

Also see

jmpi_=, addi, Barebones function 1, Barebones function 50,

Barebones function 51, Barebones function 52, Barebones function 53,

Barebones function 54, Barebones function 55, Barebones function 56,

Barebones function 58, Barebones function 59, Barebones function 60