44 lines
783 B
Plaintext
44 lines
783 B
Plaintext
|
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,
|
||
|
}
|