Prev: 44808 Up: Map Next: 44849
44830: Transform Item
Used by the routines at 60578, 60981, 62060, 62099 and 62380.
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
39 "An armed warrior (You may not pass)"
40 "An armed warrior (Welcome Warlor)"
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 44830 LD A,B A=B.
44831 CALL 44753 Call 44753.
44834 PUSH BC Stash BC and AF on the stack.
44835 PUSH AF
44836 LD C,0 C=0.
44838 CALL 44808 Call 44808.
44841 POP AF Restore AF and BC from the stack.
44842 POP BC
44843 LD B,C B=C.
44844 LD C,A C=A.
44845 CALL 44808 Call 44808.
44848 RET Return.
Prev: 44808 Up: Map Next: 44849