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?