Prev: 52174 Up: Map Next: 52344
52307: Script Routine: (73) Task-four entity action
Raise the task-four creature one character.
Input
IX Address of complex state data for an entity
ScriptRoutine_TaskFourRaiseY 52307 LD A,(IX+5) Load A with the current entity's y-coordinate.
52310 SUB 4 Subtract 4 from A.
52312 LD (IX+5),A Set the current entity's y-coordinate.
52315 LD A,(IX+6) Load A with the current entity's y-extent.
52318 SUB 4 Subtract 4 from A.
52320 LD (IX+6),A Set the current entity's y-extent.
52323 BIT 3,(IX+13) Is bit 3 of the current entity's extra state set? If not, jump to AdvanceScriptInstruction.
52327 JP Z,AdvanceScriptInstruction
52330 RES 3,(IX+13) Reset bit 3 of the current entity's extra state.
52334 LD BC,41355 Point BC at the vat layout (GraphicLayout_Vat).
52337 LD (36987),BC Store BC in the inactive complex-entity slot fields at 36987.
52341 JP AdvanceScriptInstruction Jump to AdvanceScriptInstruction to run the next script instruction.
Prev: 52174 Up: Map Next: 52344