eastern-flames/eastern flames/scripts/x_skillstuff/x_skillstuff.gml

44 lines
783 B
Plaintext
Raw Permalink Normal View History

2022-08-15 17:51:51 +00:00
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,
}