• 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

Replace Class Ability with Feat Description

blzbob

Well-known member
So I am entering an archetype for the alchemist that allows them to craft and maintain devices with a GP value based on their level. I managed to get that script working perfectly. What I'm trying to do now is add a feat that will increase the level by 1 when chosen. I tried looking at Boon Companion (the only feat I can think of that does this) but I think that the script is more complex than I want. What I thought about doing was to have the new feat just replace the old ability. I can't get it to compile and I'm not sure why. I simply did a cut and paste then adjusted the values to be what I want them to be.

Spagyric Device gp limit Script:
if (field[xCount].value >= 20) then
field[livename].text = "Spagyric device limit 293,250 gp"

elseif (field[xCount].value = 19) then
field[livename].text = "Spagyric device limit 228,250 gp"

elseif (field[xCount].value = 18) then
field[livename].text = "Spagyric device limit 176,500 gp"

elseif (field[xCount].value = 17) then
field[livename].text = "Spagyric device limit 136,500 gp"

elseif (field[xCount].value = 16) then
field[livename].text = "Spagyric device limit 105,000 gp"

elseif (field[xCount].value = 15) then
field[livename].text = "Spagyric device limit 80,000 gp"

elseif (field[xCount].value = 14) then
field[livename].text = "Spagyric device limit 61,500 gp"

elseif (field[xCount].value = 13) then
field[livename].text = "Spagyric device limit 46,600 gp"

elseif (field[xCount].value = 12) then
field[livename].text = "Spagyric device limit 36,000 gp"

elseif (field[xCount].value = 11) then
field[livename].text = "Spagyric device limit 27,350 gp"

elseif (field[xCount].value = 10) then
field[livename].text = "Spagyric device limit 20,700 gp"

elseif (field[xCount].value = 9) then
field[livename].text = "Spagyric device limit 15,3500 gp"

elseif (field[xCount].value = 8) then
field[livename].text = "Spagyric device limit 11,000 gp"

elseif (field[xCount].value = 7) then
field[livename].text = "Spagyric device limit 7,800 gp"

elseif (field[xCount].value = 6) then
field[livename].text = "Spagyric device limit 5,350 gp"

elseif (field[xCount].value = 5) then
field[livename].text = "Spagyric device limit 3,500 gp"

elseif (field[xCount].value = 4) then
field[livename].text = "Spagyric device limit 2,000 gp"

elseif (field[xCount].value = 3) then
field[livename].text = "Spagyric device limit 1,000 gp"

elseif (field[xCount].value = 2) then
field[livename].text = "Spagyric device limit 500 gp"

elseif (field[xCount].value = 1) then
field[livename].text = "Spagyric device limit 250gp"
endif



Extra Devices Script:
if (field[xCount].value >= 20) then
field[livename].text = "Spagyric device limit 293,250

gp"

elseif (field[xCount].value = 19) then
field[livename].text = "Spagyric device limit 293,250

gp"

elseif (field[xCount].value = 18) then
field[livename].text = "Spagyric device limit 228,250

gp"

elseif (field[xCount].value = 17) then
field[livename].text = "Spagyric device limit 176,500

gp"

elseif (field[xCount].value = 16) then
field[livename].text = "Spagyric device limit 136,500

gp"

elseif (field[xCount].value = 15) then
field[livename].text = "Spagyric device limit 105,000

gp"

elseif (field[xCount].value = 14) then
field[livename].text = "Spagyric device limit 80,000 gp"

elseif (field[xCount].value = 13) then
field[livename].text = "Spagyric device limit 61,500 gp"

elseif (field[xCount].value = 12) then
field[livename].text = "Spagyric device limit 46,600 gp"

elseif (field[xCount].value = 11) then
field[livename].text = "Spagyric device limit 36,000 gp"

elseif (field[xCount].value = 10) then
field[livename].text = "Spagyric device limit 27,350 gp"

elseif (field[xCount].value = 9) then
field[livename].text = "Spagyric device limit 20,700 gp"

elseif (field[xCount].value = 8) then
field[livename].text = "Spagyric device limit 15,350 gp"

elseif (field[xCount].value = 7) then
field[livename].text = "Spagyric device limit 11,000 gp"

elseif (field[xCount].value = 6) then
field[livename].text = "Spagyric device limit 7,800 gp"

elseif (field[xCount].value = 5) then
field[livename].text = "Spagyric device limit 5,350 gp"

elseif (field[xCount].value = 4) then
field[livename].text = "Spagyric device limit 3,500 gp"

elseif (field[xCount].value = 3) then
field[livename].text = "Spagyric device limit 2,000 gp"

elseif (field[xCount].value = 2) then
field[livename].text = "Spagyric device limit 1,000 gp"

elseif (field[xCount].value = 1) then
field[livename].text = "Spagyric device limit 500gp"
endif
 
You shouldn't use xCount ever directly. You should have put the count into abValue. By using abValue you can easily adjust the value up or down from outside Things.
Code:
field[abValue].value += field[xCount].value
Then have all your "IF" statements check the field[abValue].value instead.

Then all your feat had to do was run at a timing about 100 before your script and do:
Code:
#value[UNIQUE_ID_OF_CLASS_SPECIAL] += 1

Done!
 
That was beautiful. I knew I was making it harder than it needed to be! Now to do a few more things and I will be done with SGG/RGG: Alchemist Discoveries. I think I'm 95% done, maybe more!
 
Back
Top