In short, I and multiple other people have had to overload Actor's getTalentFullDescription, and preUseTalent and postUseTalent to account for function costs. To avoid conflicts and for later possible function costs, I propose actually adding them to everything. In order to remove the only major cost, I've done all the copy-pasting.
http://pastebin.com/rBmWCPM0
this contains both the description and preUse in their entirety
http://pastebin.com/VzG2p1bN
this contains the missing postUse
Use util.getVal for resources other than mana (code inside)
Moderator: Moderator
Re: Use util.getVal for resources other than mana (code insi
I'm sorry, I'm too lazy to pore over that to see what's original and what you've changed.
What problems are you running into? I've been using functions for resource costs without any problems, using the existing hooks in preUse, postUse, and fullDescription. I'm having trouble imagining reasonable situations where these hooks would be insufficient. Did you notice these hooks? (I didn't at first, somebody had to point them out to me-- DarkGod, I think.)
What problems are you running into? I've been using functions for resource costs without any problems, using the existing hooks in preUse, postUse, and fullDescription. I'm having trouble imagining reasonable situations where these hooks would be insufficient. Did you notice these hooks? (I didn't at first, somebody had to point them out to me-- DarkGod, I think.)
Re: Use util.getVal for resources other than mana (code insi
You can do this completely with hooks as of 1.0.1
My feedback meter decays into coding. Give me feedback and I make mods.
Re: Use util.getVal for resources other than mana (code insi
applied
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Use util.getVal for resources other than mana (code insi
No you can't. The old code will run. The old code will break.HousePet wrote:You can do this completely with hooks as of 1.0.1