![]() |
Routines |
Prev: 50194 | Up: Map | Next: 50233 |
Used by the routines at Action_Examine, Action_Take, Action_DropThrow, Action_???, Action_Shooting, Action_Drink, Action_Open, Action_CloseShut, Action_Shout, Action_Pull, Action_Wear, Action_LightStrike and Action_Unlock.
Rather than use item properties, the game just has separate objects that don't exist until an action is performed.
An example is:
|
||||||||||||||||
TransformItem | 50214 | LD A,B | A=B. | |||||||||||||
50215 | CALL ObjectEventLocator | Call ObjectEventLocator. | ||||||||||||||
50218 | PUSH BC | Stash BC and AF on the stack. | ||||||||||||||
50219 | PUSH AF | |||||||||||||||
50220 | LD C,0 | C=0. | ||||||||||||||
50222 | CALL Handler_UpdateObjectLocation | Call Handler_UpdateObjectLocation. | ||||||||||||||
50225 | POP AF | Restore AF and BC from the stack. | ||||||||||||||
50226 | POP BC | |||||||||||||||
50227 | LD B,C | B=C. | ||||||||||||||
50228 | LD C,A | C=A. | ||||||||||||||
50229 | CALL Handler_UpdateObjectLocation | Call Handler_UpdateObjectLocation. | ||||||||||||||
50232 | RET | Return. |
Prev: 50194 | Up: Map | Next: 50233 |