//global.units = 5; global.units = [[],[]]; enum ARMY { US, THEM, } //exit; global.unitdata = {}; var mydata = { name: "chara", desc: "the first fallen human", skills: ["SKILLS.LUNA"], idle: s_momiji, up: s_momijiup, down: s_momijidown, } function unit(personaldata_, classdata_, stats_) constructor { name = personaldata_.name; idle = personaldata_.idle; up = personaldata_.up; down = personaldata_.down; alignment = noone; var i; for (i=0; i