Barebones function 60
Contents
Barebones function 60
Function 60: 60:
- Function 60 = 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 223. Jump checks if register 210 is not equal to register 223 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 60 get_number_of_player1 and stores it in register 223. Jump checks if register 210 is not equal to register 223 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.
How the function appears in the script
60: get_number_of_player1 R223 //get_number_of_player1 and stores it in register 223.
jmp_!= R210, R223, 56 //Compares register 210 and register 223 if they do not have the same value jump to function 56.
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 100 //Calls function 100.
sync_register R105, 00000708 //Makes register 105 equal 00000708 for all players. This is the amount of time your count down timer clock will have. Edit it's value to suit the needs of your quest. This is a 30 minute count down timer by default.
sync_register R100, 00000001 //Makes register 100 equal 00000001 for all players. Starting the count down timer clock.
sync_register R109, 00000001 //Makes register 109 equal 00000001 for all players. So the guild lady will know which time attack info to display.
thread 22 //Threads function 22.
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 22, Barebones function 50, Barebones function 51,
Barebones function 52, Barebones function 53, Barebones function 54,
Barebones function 55, Barebones function 56, Barebones function 57,