Monster Attributes?

JeffPack

New member
How do you retrieve the monster attributes? Specifically I'm looking to grab the "Experience" value set in the details and add it to myScore. I was able to get it to work with the following code in Adventure_HandleHurtMonster.asm

Code:
LDA ObjectWorth,y
STA temp
LDA myScore+2
CLC
ADC #$01
CMP #$0A
BCS reachedMaxScore
		
AddValue #$07, myScore, temp, #$00
	

;;;;;;;;;;;;; UPDATE HUD
		
LDA #$01 ;; amount of score places?
STA hudElementTilesToLoad
LDA DrawHudBytes
ORA #HUD_myScore
STA DrawHudBytes

It seems like there's some black magic setup stuff going on where the monster data is stored in x but then I'm lost as to how to retrieve the stuff I'm looking for. Is there ANY documentation on this stuff?
 
Top Bottom