a bit of a mess? surely not
This commit is contained in:
parent
47cae629df
commit
0ead044da1
14 changed files with 289 additions and 16 deletions
44
eastern flames/scripts/x_skillstuff/x_skillstuff.gml
Normal file
44
eastern flames/scripts/x_skillstuff/x_skillstuff.gml
Normal file
|
@ -0,0 +1,44 @@
|
|||
enum SKILLS {
|
||||
NULL,
|
||||
FIGHT, //1
|
||||
LUNA,
|
||||
#region size
|
||||
_DEBUG,
|
||||
_CONSOLE,
|
||||
SIZE,
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
global.x_skillmanager = {
|
||||
ReferenceskillList: array_create(SKILLS.SIZE),
|
||||
Bindskill: function(skill, index) {
|
||||
ReferenceskillList[index] = skill;
|
||||
},
|
||||
}
|
||||
|
||||
function c_getskillbyid(index) {
|
||||
var skill = global.x_skillmanager.ReferenceskillList[index];
|
||||
if(skill == 0){
|
||||
log("skill index " + string(index) + " isnt bound! make sure to bind that shit!");
|
||||
return global.x_skillmanager.ReferenceskillList[SKILLS.NULL]
|
||||
}
|
||||
return skill;
|
||||
}
|
||||
function c_getidbyskill(skill){
|
||||
return skill.idnum;
|
||||
}
|
||||
|
||||
global.defdata = {
|
||||
myhooks: {}, //make ondie
|
||||
name: "DEFAULT skill DATA",
|
||||
description: "LOL",
|
||||
tooltip: "IM FUNNY",
|
||||
sprite: s_guy2,
|
||||
usage: SKTYPE.NORMAL,
|
||||
}
|
||||
|
||||
enum SKTYPE {
|
||||
NORMAL,
|
||||
HIDDEN,
|
||||
}
|
12
eastern flames/scripts/x_skillstuff/x_skillstuff.yy
Normal file
12
eastern flames/scripts/x_skillstuff/x_skillstuff.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "x_skillstuff",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue