Barebones function 1001

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 1001

Function 1001: 1001:

  • Function 1001 = Part of quest givers dialogue.

Quest givers dialogue

Barebones function 1000 = Function 1000 is the opening jump arguments to determine what will be said by the quest giver spoken to based on what point you are at in the quest.function 1000 is also the quest giver's script id so when ever spoken to the quest giver will 1st check what should be said to the player by checking the jump arguments in function 1000. (When you make npc's who you want to say different things at different times you always want to have there script id be the set of jump arguments that will lead to other functions containing what will actually be said, and the order in which the jump arguments appear in the function does matter.)

Barebones function 1001 = Function 1001 quest givers opening cinematic dialogue also tells the main Ragol telepoorter what floor to access with set_mainwarp. Puts in place the jump argument for quest giver to tell the player their after cinematic opening dialogue.

Barebones function 1002 = Function 1002 contains the quest giver's after opening dialogue.

Barebones function 1003 = Function 1003 contains the quest giver's cinematic winning dialogue. sets register 255 to say the quest has been cleared, and to allow for the quest givers after wining dialogue to be said to the player. Plays bgm 00000001 to confirm to the player that the quest has been cleared.

Barebones function 1004 = Function 1004 contains the quest giver's after wining dialogue.

Barebones function 1005 = Function 1005 contains the quest giver's quest failed cinematic dialogue. clear_mainwarp for the ragol teleporter for all stages used in the quest (You may need to add in more clear_mainwarp op codes here, and specify the floors used in your quest.) Re-enables the warps with warp_on (Needed to get to the office and the main part of Episode 2 pioneer 2. these warps are disabled when time runs out.) Sets the jump argument for the after cinematic quest fail dialogue. Sets register 253 saying the quest is failed.

Barebones function 1006 = Function 1006 contains the quest giver's after cinematic quest failed dialogue.

Use

Function 1001 quest givers opening cinematic dialogue also tells the main Ragol telepoorter what floor to access with set_mainwarp. Puts in place the jump argument for quest giver to tell the player their after cinematic opening dialogue.

How the function appears in the script


1001:    call 220 //Calls function 220.
         message 000000C8, Insert quest givers<cr>opening cinematic talk here! //Makes character id 200 quest giver say a message.
         mesend  //Closes the message.
         set_mainwarp 00000000 //Lets the main ragol teleporter allow players to travel to floor 00000000. (This is a placeholder edit the floor number in to suit the needs of your quest.)
         leti R25, 00000001 //Makes register 25 equal 00000001.
         jmp 2 //Jumps to function 2.

Also see

call, message, mesend, set_mainwarp, leti,

jmp, Barebones function 2, Barebones function 220,

Barebones function 1000, Barebones function 1002,

Barebones function 10500