|
You can make a function by your self, just make an array with all the skills and the energy cost.
Example:
local EnergyCost = { };
EnergyCost["Sinister Strike"] = 40;
EnergyCost["Eviscorate"] = 35;
EnergyCost["Backstab"] = 60;
etc.
I don't know the Energy values, but I guess you get my point.
Then you can either use
EnergyCost["Sinister Strike"]
Or you can make a function;
function SpellCostByName(arg1)
local cost;
cost = EnergyCost[arg1];
return cost;
end
Then you can use SpellCostByName("Sinister Strike") to get the energy cost.
|