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
Ikonoklast
Junior Member
 
Join Date: Aug 2010
Posts: 8

Old February 18th, 2013, 08:46 AM
I am creating a race (Taddol) and I am having a problem getting their Two-Weapon Fighting racial feature working. The feature grants access to Two-Weapon Fighting and then allows the hero to ignore the dex requirement for Improved Two Weapon Fighting and Greater Two-Weapon Fighting if they choose to select it. Does anyone have any suggestions on how to go about this?

Thanks,
Ikonoklast is offline   #1 Reply With Quote
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old February 18th, 2013, 09:48 AM
Are you creating these as Racial Specials? I would go that route and give the feats as abilities.

Web site - Cheese Weasel Logistics - www.cheeseweasel.net
Twitter - @CheeseWeaselGMZ
For user created content check out www.d20pfsrd.com and www.cheeseweasel.net
For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5
chiefweasel is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 18th, 2013, 10:22 AM
You can do a "new copy" against Improved Two Weapon Fighting and Greater Two-Weapon Fighting feats in the editor. Then use the "Replace Thing ID" on the right side to fill in the the CORE Unique ID for the feats. This allows you to change the feat to act differently.

Remove the Dex check out of "Expr-Req" and move that logic down to the "pre-reqs" instead.

Then what you want to do is be able to say if you have a 13 Dex or this Taddol race that we are valid. You can't exactly do an "OR" statement in HL. Sometimes what you do is do two different checks and add the results together and say <> 0. In this case think its easier for two IF statement checks instead.

Code:
~ assume we are NOT valid
@valid = 0
~ See if we have a 13+ dex and if so we are valid
if (#attrvalue[aDEX] >= 13) Then
   @valid = 1
endif
~ See if we are the Taddol race and if so we are valid
if (#hasrace[rTaddol] <> 0) Then
  @valid = 1
endif
@valid is a special "system" variable so we don't define it we just set it as a Boolean data type. 0 = False, 1 = True.

For Mathias so I don't get in trouble for not showing a shorter way we can do the following to mean the same thing:
Code:
~ If we have a 13+ dex we are valid so get out NOW
validif (#attrvalue[aDEX] >= 13)

~ If we are the Taddol race we are valid so get out NOW
validif (#hasrace[rTaddol] <> 0)
Both sets of code do the same thing with the 2nd one being better. But I often use normal IF statements to get people started as they seem they have a higher chance for some to have seen a "IF" statement before.

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   #3 Reply With Quote
Ikonoklast
Junior Member
 
Join Date: Aug 2010
Posts: 8

Old February 18th, 2013, 02:27 PM
Thanks that worked great.
Ikonoklast is offline   #4 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 01:36 AM.


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