; st_def and act_def
; inputs:
; $1 type
- ; $2 hp
- ; $3 atk
- ; $4 shiled
- ; $5 moves
- ; $6 initiative
- ; $7 y pos
- ; $8 x pos
- ; $9 custom p0 value
+ ; $2 flags
+ ; $3 hp
+ ; $4 atk
+ ; $5 shiled
+ ; $6 moves
+ ; $7 initiative
+ ; $8 y pos
+ ; $9 x pos
+ ; $10 custom p0 value
#macro act_def
.db $1 ; type
- .db $2, $2 ; hp hp max
- .db $3, $3 ; atk atk max
- .db $4, $4 ; shiled shield max
- .db $5, $5 ; moves moves max
- .db $6 ; initiative
- .db $7 ; y pos
- .db $8 ; x pos
- .db $9 ; p0
+ .db $2 ; flags
+ .db $3, $3 ; hp hp max
+ .db $4, $4 ; atk atk max
+ .db $5, $5 ; shiled shield max
+ .db $6, $6 ; moves moves max
+ .db $7 ; initiative
+ .db $8 ; y pos
+ .db $9 ; x pos
+ .db $10 ; p0
#endmacro
; loads NULL into a 16 bit register
unit_demo_1:
st_def 0x00, unit_demo_1_update, unit_demo_1
- act_def ACT_T_DEMO_1, 1, 1, 1, 1, 1, 2, 2, 0
+ act_def ACT_T_DEMO_1, 0, 1, 1, 1, 1, 1, 2, 2, 0