Prev: 35815 Up: Map Next: 35887
35837: Insert numeric stats (at HL) of a character into "examine character" window text
Used by the routine at 31370.
Input
HL Points to strength of a character
35837 PUSH HL Store HL (pointer to strength)
35838 LD A,(HL) Load strength into A
35839 PUSH HL Store HL (pointer to strength)
35840 LD HL,45941 Point HL at "strength" 99 in "EXAMINE [CHARACTER]" window text
35843 CALL 36647 Splice numeric data A as a string into a string at HL
35846 POP HL Restore HL (pointer to strength)
35847 INC HL Advance HL to happiness
35848 LD A,(HL) Load happiness into A
35849 PUSH HL Store HL (pointer to happiness)
35850 LD HL,45963 Point HL at "happiness" 99 in "EXAMINE [CHARACTER]" window text
35853 CALL 36647 Splice numeric data A as a string into a string at HL
35856 POP HL Restore HL (pointer to happiness)
35857 INC HL Advance HL to stamina
35858 LD A,(HL) Load stamina into A
35859 PUSH HL Store HL (pointer to stamina)
35860 LD HL,45984 Point HL at "stamina" 99 in "EXAMINE [CHARACTER]" window text
35863 CALL 36647 Splice numeric data A as a string into a string at HL
35866 POP HL Restore HL (pointer to stamina)
35867 INC HL Advance HL to spell power
35868 LD A,(HL) Load spell power into A
35869 PUSH HL Store HL (pointer to spell power)
35870 LD HL,46002 Point HL at "spell power" 99 in "EXAMINE [CHARACTER]" window text
35873 CALL 36647 Splice numeric data A as a string into a string at HL
35876 POP HL Restore HL (pointer to spell power)
35877 INC HL Advance HL to food level
35878 LD A,(HL) Load food level into A
35879 LD HL,46024 Point HL at "food level" 99 in "EXAMINE [CHARACTER]" window text
35882 CALL 36647 Splice numeric data A as a string into a string at HL
35885 POP HL Restore HL (original pointer to strength)
35886 RET Return
Prev: 35815 Up: Map Next: 35887