Prev: 44808 Up: Map Next: 44849
44830: 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
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 ItemLocator Call ItemLocator.
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.
View the equivalent code in The Jewels Of Babylon.
Prev: 44808 Up: Map Next: 44849