Prev: 52823 Up: Map Next: 52867
52842: Run A Simple Action
Used by the routine at DispatchCharacterScript.
Turns the command's parameter into a character, clears both room parameters, and runs the display action.
RunSimpleAction 52842 LD A,(IX+1) Read the command's parameter and call ProcessRoomDisplayParameter to turn a special value into a room or a character.
52845 CALL ProcessRoomDisplayParameter
52848 LD (41011),A Record the saved character.
52851 LD A,255 Write 255 to .
52853 LD (41012),A
52856 LD (41013),A
The display record has bit 7 set, so the script resumes.
52859 CALL ProcessDisplayAction Return if the display record has bit 7 set, so the script resumes.
52862 RET C
52863 JR Z,ProcessScriptCommandWithCounter Go to ProcessScriptCommandWithCounter if the display action matched.
52865 JR ContinueScriptExecution Jump ahead to ContinueScriptExecution to resume script execution.
Prev: 52823 Up: Map Next: 52867