Difference between revisions of "Barebones function 0"
From Unofficial QEdit Wiki Guide
Japanaman2 (Talk | contribs) |
Japanaman2 (Talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
==How the function appears in the script Episode 1== | ==How the function appears in the script Episode 1== | ||
<span style='font-size:12px;font-family:courier'> | <span style='font-size:12px;font-family:courier'> | ||
− | <span style='color:blue'>0: | + | <span style='color:blue'>0: </span><span style='color:red'>set_episode </span>00000000 <span style='color:orange'>//Sets the episode to 1.</span> |
<span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime pioneer2 is entered.</span> | <span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime pioneer2 is entered.</span> | ||
<span style='color:purple'> BB_Map_Designate </span>00, 00, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, pioneer 2, map variant 0, unknown.</span> | <span style='color:purple'> BB_Map_Designate </span>00, 00, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, pioneer 2, map variant 0, unknown.</span> | ||
Line 17: | Line 17: | ||
<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:red'> get_guildcard_num </span>R250, R23 <span style='color:orange'>//Stores the players guild card number in register 23.</span> | ||
+ | <span style='color:blue'> get_gender </span>R250, R24 <span style='color:orange'>//Stores the players gender in register 24.</span> | ||
+ | <span style='color:red'> get_Section_ID </span>R250, R28 <span style='color:orange'>//Stores the players section id in register 28.</span> | ||
+ | <span style='color:blue'> get_chara_class </span>R250, R29 <span style='color:orange'>//Stores the characters class in register 29.</span> | ||
+ | <span style='color:red'> initial_floor </span>00000000 <span style='color:orange'>//Tells the quest what floor to start on.</span> | ||
<span style='color:green'> ret </span> | <span style='color:green'> ret </span> | ||
</span> | </span> | ||
Line 22: | Line 27: | ||
==How the function appears in the script Episode 2== | ==How the function appears in the script Episode 2== | ||
<span style='font-size:12px;font-family:courier'> | <span style='font-size:12px;font-family:courier'> | ||
− | <span style='color:blue'>0: | + | <span style='color:blue'>0: </span><span style='color:red'>set_episode </span>00000001 <span style='color:orange'>//Sets the episode to 2.</span> |
<span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime Labo is entered.</span> | <span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime Labo is entered.</span> | ||
<span style='color:purple'> BB_Map_Designate </span>00, 12, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, Labo, map variant 0, unknown.</span> | <span style='color:purple'> BB_Map_Designate </span>00, 12, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, Labo, map variant 0, unknown.</span> | ||
Line 29: | Line 34: | ||
<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:red'> get_guildcard_num </span>R250, R23 <span style='color:orange'>//Stores the players guild card number in register 23.</span> | ||
+ | <span style='color:blue'> get_gender </span>R250, R24 <span style='color:orange'>//Stores the players gender in register 24.</span> | ||
+ | <span style='color:red'> get_Section_ID </span>R250, R28 <span style='color:orange'>//Stores the players section id in register 28.</span> | ||
+ | <span style='color:blue'> get_chara_class </span>R250, R29 <span style='color:orange'>//Stores the characters class in register 29.</span> | ||
+ | <span style='color:red'> initial_floor </span>00000000 <span style='color:orange'>//Tells the quest what floor to start on.</span> | ||
<span style='color:green'> ret </span> | <span style='color:green'> ret </span> | ||
</span> | </span> | ||
Line 34: | Line 44: | ||
==How the function appears in the script Episode 4== | ==How the function appears in the script Episode 4== | ||
<span style='font-size:12px;font-family:courier'> | <span style='font-size:12px;font-family:courier'> | ||
− | <span style='color:blue'>0: | + | <span style='color:blue'>0: </span><span style='color:red'>set_episode </span>2 <span style='color:orange'>//Sets the episode to 4.</span> |
<span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime pioneer2 is entered.</span> | <span style='color:green'> set_floor_handler </span>00000000, 10000 <span style='color:orange'>//calls function 10000 anytime pioneer2 is entered.</span> | ||
<span style='color:purple'> BB_Map_Designate </span>00, 2D, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, EP4 pioneer 2, map variant 0, unknown.</span> | <span style='color:purple'> BB_Map_Designate </span>00, 2D, 00, 00 <span style='color:orange'>//Lets the quest know that floor 0, EP4 pioneer 2, map variant 0, unknown.</span> | ||
Line 41: | Line 51: | ||
<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:red'> get_guildcard_num </span>R250, R23 <span style='color:orange'>//Stores the players guild card number in register 23.</span> | ||
+ | <span style='color:blue'> get_gender </span>R250, R24 <span style='color:orange'>//Stores the players gender in register 24.</span> | ||
+ | <span style='color:red'> get_Section_ID </span>R250, R28 <span style='color:orange'>//Stores the players section id in register 28.</span> | ||
+ | <span style='color:blue'> get_chara_class </span>R250, R29 <span style='color:orange'>//Stores the characters class in register 29.</span> | ||
+ | <span style='color:red'> initial_floor </span>00000000 <span style='color:orange'>//Tells the quest what floor to start on.</span> | ||
<span style='color:green'> ret </span> | <span style='color:green'> ret </span> | ||
</span> | </span> | ||
Line 47: | Line 62: | ||
[[set_episode]], [[set_floor_handler]], [[BB_Map_Designate]], [[set_qt_success]], | [[set_episode]], [[set_floor_handler]], [[BB_Map_Designate]], [[set_qt_success]], | ||
+ | [[set_qt_failure]], [[get_slotnumber]], [[get_difflvl2]], [[get_guildcard_num]], | ||
− | [[ | + | [[get_gender]], [[get_Section_ID]], [[get_chara_class]], [[initial_floor]], |
+ | |||
+ | [[ret]], [[Barebones function 10000]] |
Latest revision as of 23:28, 30 September 2013
Contents
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.
get_guildcard_num R250, R23 //Stores the players guild card number in register 23.
get_gender R250, R24 //Stores the players gender in register 24.
get_Section_ID R250, R28 //Stores the players section id in register 28.
get_chara_class R250, R29 //Stores the characters class in register 29.
initial_floor 00000000 //Tells the quest what floor to start on.
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.
get_guildcard_num R250, R23 //Stores the players guild card number in register 23.
get_gender R250, R24 //Stores the players gender in register 24.
get_Section_ID R250, R28 //Stores the players section id in register 28.
get_chara_class R250, R29 //Stores the characters class in register 29.
initial_floor 00000000 //Tells the quest what floor to start on.
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.
get_guildcard_num R250, R23 //Stores the players guild card number in register 23.
get_gender R250, R24 //Stores the players gender in register 24.
get_Section_ID R250, R28 //Stores the players section id in register 28.
get_chara_class R250, R29 //Stores the characters class in register 29.
initial_floor 00000000 //Tells the quest what floor to start on.
ret
Also see
set_episode, set_floor_handler, BB_Map_Designate, set_qt_success,
set_qt_failure, get_slotnumber, get_difflvl2, get_guildcard_num,