Page 1 of 1
Use util.getVal for resources other than mana (code inside)
Posted: Sun Apr 28, 2013 9:01 pm
by Umbrall
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
Re: Use util.getVal for resources other than mana (code insi
Posted: Mon Apr 29, 2013 6:34 am
by nate
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.)
Re: Use util.getVal for resources other than mana (code insi
Posted: Mon Apr 29, 2013 11:20 am
by HousePet
You can do this completely with hooks as of 1.0.1
Re: Use util.getVal for resources other than mana (code insi
Posted: Tue Apr 30, 2013 8:36 pm
by darkgod
applied
Re: Use util.getVal for resources other than mana (code insi
Posted: Wed May 01, 2013 12:08 am
by Umbrall
HousePet wrote:You can do this completely with hooks as of 1.0.1
No you can't. The old code will run. The old code will break.