Prev: CDBF Up: Map Next: CE3B
CE18: Read The Character's Room
Used by the routine at DispatchCharacterScript.
Copies this character's room display into the saved parameters.
CE18 LD A,(IX+$01) Read the moved marker, then call ProcessRoomDisplayParameter to resolve the room display parameter.
CE1B CALL ProcessRoomDisplayParameter
CE1E LD ($A033),A Record the saved character.
CE21 LD A,(IX+$02) Call ProcessRoomDisplayParameter to resolve the room-display parameter.
CE24 CALL ProcessRoomDisplayParameter
CE27 LD ($A034),A Record the room display parameter.
CE2A LD A,(IX+$03) Read the action flags, then call ProcessRoomDisplayParameter to resolve the room display parameter.
CE2D CALL ProcessRoomDisplayParameter
CE30 LD ($A035),A Store it in the room graphics parameter, then call ProcessDisplayAction to run display action.
CE33 CALL ProcessDisplayAction
CE36 RET C Return if the display record has bit 7 set, so the script resumes.
CE37 JR Z,ProcessScriptCommandWithCounter Go to ProcessScriptCommandWithCounter if the display action matched.
CE39 JR ContinueScriptExecution Jump ahead to ContinueScriptExecution to resume script execution.
Prev: CDBF Up: Map Next: CE3B