Prev: 50194 Up: Map Next: 50233
50214: Transform Item
Rather than use item properties, the game just has separate objects that don't exist until an action is performed.
An example is:
Item ID Item Name
2 "A match"
3 "A lighted match"
When the match is lit by the player; item 2 is destroyed and replaced with item 3.
Input
B From item ID
C To item ID
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