Routines |
Prev: 31722 | Up: Map | Next: 31804 |
Used by the routine at 31636.
|
||||
31763 | LD A,(30615) | Load A with index of Current Character | ||
31766 | LD E,0 | Point HL at strength... | ||
31768 | CALL 34174 | ...of character whose index is A | ||
31771 | PUSH HL | Switch pointer from HL to IX... | ||
31772 | POP IX | ... | ||
31774 | BIT 7,(IX+6) | If character's asleep flag is not set... | ||
31778 | JP Z,34496 | ...then display "[CHARACTER] IS ALREADY AWAKE" window and exit | ||
31781 | LD A,(IX+2) | Load A with stamina of Current Character... | ||
31784 | CP 30 | ...and if this is anything up to 30... | ||
31786 | JP C,34502 | ...then display "[CHARACTER] IS TOO TIRED TO WAKE UP" window and exit | ||
31789 | LD A,(IX+1) | Load A with the happiness of Current Character... | ||
31792 | CP 30 | ...and if this is anything up to 30... | ||
31794 | JP C,34490 | ...then display "[CHARACTER] DOES NOT WANT TO BE COMMANDED BY YOU" window and exit | ||
31797 | RES 7,(IX+6) | Reset the character's asleep flag | ||
31801 | JP 34744 | Display "[CHARACTER] HAS WOKEN UP" window and exit |
Prev: 31722 | Up: Map | Next: 31804 |