Barebones function 29

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 29

Function 29: 29:

  • Function 29 = Part of jump sequence. Forest console count down timer winning.

Jump sequence

Jump sequence name: Forest console count down timer winning.

Barebones function 21, = Function 21 goes on the forest console when using a count down timer for winning console. Has a disable console use to start with after being used once, Sets register 22 which disables quest failure message count down timer. Jumps to function 24.

Barebones function 24, = Disables the use for the forest console for a count down timer winning. Begins the first phase of time attack info conversion. Call function 25.

Barebones function 25, = Second phase of time attack information conversion. Calls function 26

Barebones function 26, = Turns off the clock. Tells the quest giver to now say the winning cinematic speech when encountered. Sets the register choice for threaded function 27.

Barebones function 27, = Threaded when the quest began in function 10500. Constantly checks register 26 and register 27. Option to turn off threaded function 27. Jumps to function 28.

Barebones function 28, = Calls function 29. Sets register to turn off threaded function 27.

Barebones function 29, = Enters cinematic mode stopping players. Unlocks a door (Usually this will be to turn off a laser fence or open a door to a room containing teleporter leading back to pioneer 2/labo.) Displays winning console message. Closes winning console message. Displays time attack information. Exits cinematic mode returning control to the player.

Barebones function 1, = Used to end threads or functions.

Use

Function 29 Enters cinematic mode stopping players. Unlocks a door id (Placeholder - Usually this will be to turn off a laser fence or open a door to a room containing teleporter leading back to pioneer 2/labo. Edit this to suit the needs of your quest.) Displays winning console message (Edit this to suit the needs of your quest.) Closes winning console message. Displays time attack information. Exits cinematic mode returning control to the player.

How the function appears in the script


29:      sync  //Waits 1 frame.
         call 220 //Calls function 220 locking the players in cinematic mode.
         unlcok_door2 00000000, 00000000 //unlcok_door2 options T_DWORD1 = floor number, T_DWORD2 = door id to unlock. This is currently a placeholder for unlocking either a laser fence containing a teleporter back to pioneer2/labo, or a door to a room containing a teleporter to pioneer 2/labo. You may edit it to suit the needs of your quest.
         window_msg Insert winning console text here. //Display a window message. Place holder when using a count down timer insert your winning console message here. You may edit it to suit the needs of your quest.
         winend  //Closes a window message.
         switch_call R251, 4:61:62:63:64 //Calls the function in the switch based on the value of the register used. Gets difficulty level of the room from register 251, 4 switches (0 normal, 1 hard, 2 very hard, 3 ultimate)function to call in this case it calls to display time attack information based on the difficulty level which is contained in functions 61,62,63,and 64. Make sure you edit in the name of your quest where quest name is in functions 61,62,63,and 64.
         jmp 2 //Jumps to function 2.

Also see

sync, call, unlock_door2, window_msg, winend, switch_call,

jmp, Barebones function 1, Barebones function 2,

Barebones function 21, Barebones function 24, Barebones function 25,

Barebones function 26, Barebones function 10500, Barebones function 27,

Barebones function 28, Barebones function 61, Barebones function 62,

Barebones function 63, Barebones function 64, Barebones function 220,