Difference between revisions of "Reservedregisters"
From Unofficial QEdit Wiki Guide
Japanaman2 (Talk | contribs) |
(Clarify which registers are reserved and which are good practice.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Reserved Registers== | ==Reserved Registers== | ||
− | This page is for the main reserved registers. | + | This page is for the main reserved registers. These are registers that always have a special purpose. |
For the Barebones quests list of reserved registers see | For the Barebones quests list of reserved registers see | ||
Line 6: | Line 6: | ||
[[Barebones registers lists]]. | [[Barebones registers lists]]. | ||
− | |||
R74 = Used to hide show quest board item 0. (Set true. Clear false.) | R74 = Used to hide show quest board item 0. (Set true. Clear false.) | ||
R75 = Used to hide show quest board item 1. (Set true. Clear false.) | R75 = Used to hide show quest board item 1. (Set true. Clear false.) | ||
Line 12: | Line 11: | ||
R77 = Used to hide show quest board item 3. (Set true. Clear false.) | R77 = Used to hide show quest board item 3. (Set true. Clear false.) | ||
R78 = Used to hide show quest board item 4. (Set true. Clear false.) | R78 = Used to hide show quest board item 4. (Set true. Clear false.) | ||
− | + | R79 = Used to hide show quest board item 5. (Set true. Clear false.) | |
− | R253 = Is the quest failure flag. (If set quest failed | + | R253 = Is the quest failure flag. (If set quest failed.) |
− | R255 = Is the quest success flag. (If set quest cleared). | + | R255 = Is the quest success flag. (If set quest cleared.) |
+ | |||
+ | There are other registers that Sega typically used for storing special values and it may be a good practice to follow the convention. However, none of these are required to be used in this manner. | ||
+ | |||
+ | R0 = In older Sega quests, often indicates whether the quest has begun (finished quest giver dialogue). In later Sega quests, typically used as a function return value because it's not affected by va_start/va_end. | ||
+ | R250 = Local client's slot number. | ||
+ | R252 = The difficulty level. | ||
+ | R254 = Quest completed and talking to the quest giver will cause the dialogue that sets R255. |
Latest revision as of 23:52, 27 December 2022
Reserved Registers
This page is for the main reserved registers. These are registers that always have a special purpose.
For the Barebones quests list of reserved registers see
R74 = Used to hide show quest board item 0. (Set true. Clear false.) R75 = Used to hide show quest board item 1. (Set true. Clear false.) R76 = Used to hide show quest board item 2. (Set true. Clear false.) R77 = Used to hide show quest board item 3. (Set true. Clear false.) R78 = Used to hide show quest board item 4. (Set true. Clear false.) R79 = Used to hide show quest board item 5. (Set true. Clear false.) R253 = Is the quest failure flag. (If set quest failed.) R255 = Is the quest success flag. (If set quest cleared.)
There are other registers that Sega typically used for storing special values and it may be a good practice to follow the convention. However, none of these are required to be used in this manner.
R0 = In older Sega quests, often indicates whether the quest has begun (finished quest giver dialogue). In later Sega quests, typically used as a function return value because it's not affected by va_start/va_end. R250 = Local client's slot number. R252 = The difficulty level. R254 = Quest completed and talking to the quest giver will cause the dialogue that sets R255.