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
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 17th, 2011, 08:34 AM
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.
ShadowChemosh is offline   #11 Reply With Quote
Slywolfe
Member
 
Join Date: Jun 2011
Posts: 36

Old September 17th, 2011, 09:24 AM
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.
Slywolfe is offline   #12 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 11:26 AM.


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