Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
When choosing something from a Dropdown box in HL you are actually picking/pointing to the actual Thing. You don't have to know which ability score or Thing is in what position of the drop down you just use the chosen thing. Hmm let me show you as it will make more sense:
Phase: Pre-Attributes Priority: 10000 Code:
~ if not equipped get out now doneif (field[gIsEquip].value = 0) ~ If ability score one chosen give bonus If (field[usrChosen1].ischosen <> 0) Then #enhancementbonus[field[usrChosen1].chosen, 4] Endif ~ If ability score two chosen give penalty If (field[usrChosen2].ischosen <> 0) Then field[usrChosen2].chosen.field[Penalty].value += -2 Endif 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. |
#11 |
Member
Join Date: Jun 2011
Posts: 36
|
Okay, that makes a whole lot of sense.
Only one problem ... Your script isn't working, either. Nothing happens when I equip the item. Edit: NVM ... I added a whole new custom ring, and it worked just fine! Thanks so much! Now to figure out how to glue the hair back on my head ... Last edited by Slywolfe; September 17th, 2011 at 09:32 AM. |
#12 |
|
|