![]() |
Routines |
| Prev: AA39 | Up: Map | Next: AA5F |
|
Replaces the first item operand with the second, in the same room.
|
||||||||||
|
When the condition failed, skip this action.
|
||||||||||
| Action_TransformItem | AA48 | JP NZ,RunScript_SkipAction_ThreeBytes | Jump to RunScript_SkipAction_ThreeBytes if the condition failed. | |||||||
|
Replace the first item operand with the second, in the same room.
|
||||||||||
| AA4B | LD A,(IX+$01) | Fetch the item ID being replaced from *IX+01 into A. | ||||||||
| AA4E | CALL RunScript_ResolveMatchedItem | Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF. | ||||||||
| AA51 | LD B,A | Keep the item being replaced in B. | ||||||||
| AA52 | LD A,(IX+$02) | Fetch the replacement item ID from *IX+02 into A. | ||||||||
| AA55 | CALL RunScript_ResolveMatchedItem | Call RunScript_ResolveMatchedItem to substitute the matched item ID from ScriptMatchedItem when the operand is FF. | ||||||||
| AA58 | LD C,A | Keep the replacement item ID in C. | ||||||||
| AA59 | CALL TransformItem | Call TransformItem to replace the first item with the second. | ||||||||
| AA5C | JP RunScript_SkipAction_ThreeBytes | Jump to RunScript_SkipAction_ThreeBytes. | ||||||||
| Prev: AA39 | Up: Map | Next: AA5F |