• 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

A configurable that doesn't add picks

I was wanting to implement the magus' arcane pool weapon enhancement options into the game, to save from having to add multiple adjustments for each possible combination of powers being added to the weapon. I figured a configurable would be the smoothest way to add these, as it would be able to track bonus amount available, be able to have a restricted list of options, and contain entire descriptions of each power, etc.

I created the configurable, and bootstrapped it from a replacement for the cMagArPool. This gets the configurable to show up. I also scripted the method of choosing how many are available:

Code:
var bonuscount as number
bonuscount = (#featlevelcount[Magus] - 1) / 4
bonuscount = round(bonuscount,0,-1)+1
field[cfgMax1].value = bonuscount

I created a Candidate Expression that lists just the bonuses availble for use:
Code:
thingid.ipFUZBonus|thingid.iDancing|thingid.iFlaming|thingid.iFlamBurst|thingid.iFrost|thingid.iIcyBurst|thingid.iKeen|thingid.iShock|thingid.iShockBrst|thingid.iSpeed|thingid.iVorpal
(including one I made to represent a +1 bonus, since it was not a thing previously)

This displays the configurable choices perfectly. Items are shown in the list, complete with descriptions and everything. Items are only 'available' if there is enough points left. The problem comes when they are selected. Since there is no weapon for them to be added to, it throws a bunch of errors.

Is there a way to create a new 'container' for these picks to be added to, and then I can script each of their effect to the weapon as part of an eval script on the cMagArPool thing?
 
Back
Top