Reservedregisters

From Unofficial QEdit Wiki Guide
Revision as of 23:52, 27 December 2022 by Ender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Barebones registers lists.

 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.