.de act_moves, stat_size ; moves for each turn
.de act_init, 1 ; initiative value
-.de act_melee, 2 ; melee weapon routine
-.de act_ranged, 2 ; ranged weapon routine
-
; custom parameter
.de act_p0, 1
.de act_size, 0
dw $2
dw $3
#endmacro
-
+
+ ; define an actor without state
+ ; to define an actor call
+ ; st_def and act_def
+ ; inputs:
+ ; $1 type
+ ; $2 hp
+ ; $3 atk
+ ; $4 shiled
+ ; $5 moves
+ ; $6 initiative
+ ; $7 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 ; p0
+#endmacro
; loads NULL into a 16 bit register
; inputs:
ret
+unit_demo_1:
+ st_def 0xFF, st_null_fn, st_null
+ act_def ACT_T_NULL, 1, 1, 1, 1, 1, 0