• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Dynamic costs in a TableDynamic

barrelv

Well-known member
I have a dynamic table that add magic runes to magic gear. Each Rune has both a money cost (which I have working) and a power cost (which isn't working right).

I was trying to track the power cost by using the addpick parameter, but that only does 1-per-add. Any way to get the table to have the reduction be based off of a value on the Thing? or do I need to implement a second set of the 'spend money' process specifically for the power cost?
 
You're tracking the power cost with a resource, right?

So take a look at whatever you're using to add to the resSpent of that resource - you're just adding +1 per item, right? Can you change that to instead use the value of a field?

From what I remember glancing over IK, the power cost isn't the same as a cash cost - when you remove one of the abilities in the armor/weapon, you get the power back, but you wouldn't get the cash back. If I'm remembering that correctly, then the resource is the correct way to handle the power available vs. power currently in use.
 
Last edited:
wow, I'm a dummy. completely forgot that I'm actually spending the resource via an eval script on the thing.

Thanks again. problem solved.
 
Back
Top