Prev: 34160 Up: Map Next: 34186
34174: Point HL at property (given by E) of character whose index is A
Used by the routines at 30880, 31370, 31722, 31763, 31804, 31842, 31920, 31980, 33312, 34137, 34350 and 55233.
Input
A Character index
E Property of interest (e.g. 0 = strength, 1 = happiness, etc.)
Output
HL Points to property E of character A
34174 ADD A,A Multiply A by 8...
34175 ADD A,A ...
34176 ADD A,A ...
34177 ADD A,E ...and add E...
34178 LD D,0 Load this offset into DE...
34180 LD E,A ...
34181 LD HL,25323 Point HL at start of characters' stats table...
34184 ADD HL,DE ...and add DE to point HL to property E of character A
34185 RET Return
Prev: 34160 Up: Map Next: 34186