![]() |
Routines |
| Prev: 51952 | Up: Map | Next: 51998 |
|
Snap the task-four creature onto its target position.
|
||||||||
| ScriptRoutine_TaskFourAlignCreature | 51966 | LD IY,36977 | Point IY at the vat entity at StateData_Complex_28. | |||||
| 51970 | LD A,(IX+7) | Load A with the current entity's x-coordinate. | ||||||
| 51973 | CP (IY+7) | Does this entity's x match the referenced entity's x (IY+7)? If not, jump to AdvanceScriptInstruction. | ||||||
| 51976 | JP NZ,AdvanceScriptInstruction | |||||||
| 51979 | LD A,(IX+4) | Load A with the current entity's room index. | ||||||
| 51982 | CP (IY+4) | Does this entity share the referenced entity's room (IY+4)? If not, jump to AdvanceScriptInstruction. | ||||||
| 51985 | JP NZ,AdvanceScriptInstruction | |||||||
| 51988 | SET 2,(IX+13) | Set bit 2 of the current entity's extra state. | ||||||
| 51992 | LD HL,51833 | Point HL at task-four script entry 51833. | ||||||
| 51995 | JP ScriptInstruction | Jump to ScriptInstruction to execute the script instruction at HL. | ||||||
| Prev: 51952 | Up: Map | Next: 51998 |