M
Melt81
Guest
Just wondering if anyone could give me a general idea of how you guys would store skills in a game. Here's what I mean.
I have a script with all the skills stored within a 2d Array called SkillScript. The game knows which skill is selected based on a globalvariable called sel.
Anyway the effects are formatted like this and when an event performs like say I press enter or something this script is triggered.
My problem is that I want to know if there are other ways of doing this in case this fails.
I have a script with all the skills stored within a 2d Array called SkillScript. The game knows which skill is selected based on a globalvariable called sel.
Code:
//Value
skill[3,2]=20
skill[3,1]=3
skill[3,0]=50
//Target
skill[2,2]=tar
skill[2,1]=tar
skill[2,0]=tar //Global Variable
//Effect
skill[1,2]=DamageTargetScript
skill[1,1]=BurnTargetScript
skill[1,0]=DamageTargetScript //These are basically script names
//Name
skill[0,2] = "Fin Slice" //Kinda continues like this
skill[0,1] = "Scorch"
skill[0,0] = "Gale's Roar"
Code:
SkillScript()
script_execute(skill[1,sel],skill[2,sel],skill[3,sel])