Prev: 43543 Up: Map Next: 43577
43558: Action: Place Item
Moves the item operand to the room given by the second operand.
Input
F The zero flag is set when the conditions hold
IX Pointer to the script entry
When the condition failed, skip this action.
Action_PlaceItem 43558 JP NZ,RunScript_SkipAction_ThreeBytes Jump to RunScript_SkipAction_ThreeBytes if the condition failed.
Put the item operand in the room given by the second operand.
43561 LD A,(IX+1) Fetch the item ID (the operand) from *IX+1 into A.
43564 CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is 255.
43567 LD B,A Copy the item ID into B.
43568 LD C,(IX+2) Fetch the destination room from *IX+2 into C.
43571 CALL Handler_UpdateItemLocation Call Handler_UpdateItemLocation to update that item's location.
43574 JP RunScript_SkipAction_ThreeBytes Jump to RunScript_SkipAction_ThreeBytes.
Prev: 43543 Up: Map Next: 43577