2022-08-15 02:35:57 +00:00
|
|
|
//global.units = 5;
|
2022-08-23 01:28:48 +00:00
|
|
|
global.units = [[],[],[]];
|
2022-08-15 02:35:57 +00:00
|
|
|
|
|
|
|
enum ARMY {
|
|
|
|
US,
|
|
|
|
THEM,
|
2022-08-22 22:37:11 +00:00
|
|
|
GREEN,
|
2022-08-15 02:35:57 +00:00
|
|
|
}
|
|
|
|
//exit;
|
2022-08-18 20:47:07 +00:00
|
|
|
|
2022-08-15 02:35:57 +00:00
|
|
|
|
|
|
|
function unit(personaldata_, classdata_, stats_) constructor {
|
|
|
|
name = personaldata_.name;
|
2022-08-16 02:04:23 +00:00
|
|
|
idle = personaldata_.idle;
|
|
|
|
up = personaldata_.up;
|
|
|
|
down = personaldata_.down;
|
2022-08-19 01:47:44 +00:00
|
|
|
aitype = personaldata_.aitype;
|
2022-08-15 17:51:51 +00:00
|
|
|
alignment = noone;
|
|
|
|
var i;
|
|
|
|
for (i=0; i<array_length(stats_); i++) {
|
|
|
|
self[$stats_[i].name] = stats_[i];
|
|
|
|
}
|
2022-08-15 02:35:57 +00:00
|
|
|
global.unitdata[$name] = self;
|
|
|
|
}
|
|
|
|
|
2022-08-15 17:51:51 +00:00
|
|
|
|
2022-08-15 02:35:57 +00:00
|
|
|
|
|
|
|
function archetypedata() constructor {
|
|
|
|
//PERSONALDATA AND CLASSDATA ARE THE SAME THINGS
|
|
|
|
}
|
|
|
|
|
|
|
|
function c_addunit(unit, alignment) {
|
|
|
|
//log(5);
|
|
|
|
//log(global.units);
|
2022-08-18 20:47:07 +00:00
|
|
|
|
2022-08-15 02:35:57 +00:00
|
|
|
}
|
|
|
|
|
2022-08-18 20:47:07 +00:00
|
|
|
//c_addunit(un.chara, ARMY.US);
|
2022-08-15 02:35:57 +00:00
|
|
|
#macro un global.unitdata
|