Difference between revisions of "Barebones function 0"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
Line 40: Line 40:
 
  <span style='color:green'>      set_qt_failure </span>250 <span style='color:orange'>//Lets the guild lady know to go to function 300 when register 253 is set.</span>
 
  <span style='color:green'>      set_qt_failure </span>250 <span style='color:orange'>//Lets the guild lady know to go to function 300 when register 253 is set.</span>
 
  <span style='color:green'>      get_slotnumber </span>R250 <span style='color:orange'>//Stores the players slot number in register 250.</span>
 
  <span style='color:green'>      get_slotnumber </span>R250 <span style='color:orange'>//Stores the players slot number in register 250.</span>
  <span style='color:blue'>       get_difflvl2 </span>R251 <span style='color:orange'>//Stores the room's difficulty level in register 251.</span>
+
  <span style='color:blue'>       get_difflvl2 </span>R251 <span style='color:orange'>//Stores the room's difficulty level in register 251.</span>
 
  <span style='color:green'>      ret </span>
 
  <span style='color:green'>      ret </span>
 
  </span>
 
  </span>

Revision as of 19:44, 16 March 2013

Barebones function 0

Function 0: 0:

  • Function 0

Use

Used to start the quest. Function 0 is called upon loading the quest.

How the function appears in the script Episode 1


0:     set_episode 00000000 //Sets the episode to 1.
       set_floor_handler 00000000, 10000 //calls function 10000 anytime pioneer2 is entered.
       BB_Map_Designate 00, 00, 00, 00 //Lets the quest know that floor 0, pioneer 2, map variant 0, unknown.
       set_qt_success 250 //Lets the guild lady know to go to function 250 when register 255 is set.
       set_qt_failure 250 //Lets the guild lady know to go to function 300 when register 253 is set.
       get_slotnumber R250 //Stores the players slot number in register 250.
       get_difflvl2 R251 //Stores the room's difficulty level in register 251.
       ret 

How the function appears in the script Episode 2


0:     set_episode 00000001 //Sets the episode to 2.
       set_floor_handler 00000000, 10000 //calls function 10000 anytime Labo is entered.
       BB_Map_Designate 00, 12, 00, 00 //Lets the quest know that floor 0, Labo, map variant 0, unknown.
       set_qt_success 250 //Lets the guild lady know to go to function 250 when register 255 is set.
       set_qt_failure 250 //Lets the guild lady know to go to function 300 when register 253 is set.
       get_slotnumber R250 //Stores the players slot number in register 250.
       get_difflvl2 R251 //Stores the room's difficulty level in register 251.
       ret 

How the function appears in the script Episode 4


0:     set_episode 2 //Sets the episode to 4.
       set_floor_handler 00000000, 10000 //calls function 10000 anytime pioneer2 is entered.
       BB_Map_Designate 00, 2D, 00, 00 //Lets the quest know that floor 0, EP4 pioneer 2, map variant 0, unknown.
       set_qt_success 250 //Lets the guild lady know to go to function 250 when register 255 is set.
       set_qt_failure 250 //Lets the guild lady know to go to function 300 when register 253 is set.
       get_slotnumber R250 //Stores the players slot number in register 250.
       get_difflvl2 R251 //Stores the room's difficulty level in register 251.
       ret 

Also see

set_episode, set_floor_handler, BB_Map_Designate, set_qt_success,


set_qt_failure, get_slotnumber, get_difflvl2 ret