PDA

View Full Version : Energy costs


Fenyx
14-01-2006, 08:33 PM
I was hoping someone had written a function that would return the energy cost values of rogue abilities (or all spells including rogue abilities).

I'm hoping for an interface similar to : SpellCostByName("Sinister Strike")

This would return a variable number depending on how many talent points you have in sinister strike. Other things would also have to be considered like eviscerate and the madcap set, etc.

If there isn't one then is there a good way to check if someone is getting a set bonus?

Thanks.

- Fenyx

freeri
27-05-2006, 06:15 PM
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.