Prev: AA26 Up: Map Next: AA48
AA39: Action: Bring Item Here
Moves the item operand into the current room.
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_BringItemHere AA39 JP NZ,RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes if the condition failed.
Bring the item operand into the current room.
AA3C LD A,(IX+$01) Fetch the item ID (the operand) from *IX+01 into A.
AA3F CALL RunScript_ResolveMatchedItem Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF.
AA42 CALL Handler_UpdateItemEventCurrentRoom Call Handler_UpdateItemEventCurrentRoom to move that item into the current room.
AA45 JP RunScript_SkipAction_TwoBytes Jump to RunScript_SkipAction_TwoBytes.
Prev: AA26 Up: Map Next: AA48