i am cheating
This commit is contained in:
parent
09ade10207
commit
1c893940ac
78 changed files with 466 additions and 94 deletions
38
eastern flames/scripts/unit/unit.gml
Normal file
38
eastern flames/scripts/unit/unit.gml
Normal file
|
@ -0,0 +1,38 @@
|
|||
//global.units = 5;
|
||||
global.units = [[]];
|
||||
|
||||
enum ARMY {
|
||||
US,
|
||||
THEM,
|
||||
}
|
||||
//exit;
|
||||
global.unitdata = {};
|
||||
var mydata = {
|
||||
name: "chara",
|
||||
desc: "the first fallen human",
|
||||
skills: ["SKILLS.LUNA"],
|
||||
sprite: s_guy,
|
||||
}
|
||||
|
||||
function unit(personaldata_, classdata_, stats_) constructor {
|
||||
name = personaldata_.name;
|
||||
sprite = personaldata_.sprite;
|
||||
|
||||
global.unitdata[$name] = self;
|
||||
}
|
||||
|
||||
nu unit(mydata, [st.hp.add(92), st.str.add(20), st.def.add(20)]);
|
||||
|
||||
function archetypedata() constructor {
|
||||
//PERSONALDATA AND CLASSDATA ARE THE SAME THINGS
|
||||
}
|
||||
|
||||
function c_addunit(unit, alignment) {
|
||||
//log(5);
|
||||
//log(global.units);
|
||||
array_push(global.units[alignment], unit);
|
||||
log(global.units[alignment]);
|
||||
}
|
||||
|
||||
c_addunit(un.chara, ARMY.US);
|
||||
#macro un global.unitdata
|
12
eastern flames/scripts/unit/unit.yy
Normal file
12
eastern flames/scripts/unit/unit.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "unit",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue