Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old December 7th, 2013, 12:11 PM
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:
Quote:
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:
Quote:
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
blzbob is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 7th, 2013, 12:42 PM
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!

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old December 7th, 2013, 04:02 PM
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!
blzbob is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:34 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.