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
Quatar
Junior Member
 
Join Date: Aug 2011
Posts: 21

Old December 8th, 2011, 10:46 AM
Hi

I'm trying to manually add a feat to Herolabs that increases the damage of Composite Bows by +2, but I'm not sure really how to reliably recognize them.

So far I went with this, and it seems to work well enough.

Code:
foreach pick in hero from BaseWep where "IsWeapon.wCompLong" 
  eachpick.field[wDamBonus].value += 2
nexteach

foreach pick in hero from BaseWep where "IsWeapon.wCompShort" 
  eachpick.field[wDamBonus].value += 2
nexteach
But is there a better way to do it?
Quatar is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 8th, 2011, 11:14 AM
Code:
where "IsWeapon.wCompLong | IsWeapon.wCompShort"
So you only need a single foreach.

There's not a tag or anything else that specifically distinguishes composite bows from regular bows, so looking for each of the composite weapons specifically is probably the best you can do.
Mathias is online now   #2 Reply With Quote
Quatar
Junior Member
 
Join Date: Aug 2011
Posts: 21

Old December 8th, 2011, 03:32 PM
Ah thank you that's working.
I've been looking for an OR, but wasn't able to find it. I had tried OR and || but didn't think of a single |

"IsWeapon.wComp?" did work as well, but I feared it might suddenly trigger on other weapons that start with Comp for some reason, even though I didn't know if there are any.
Quatar is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 8th, 2011, 03:45 PM
Yes, a ? in a tag expression matches anything after that point, but I agree that I wouldn't trust users to only use "wComp" for new composite weapons that were added, and wouldn't trust that with all the content that could possibly be added, that some weapon that isn't a composite bow won't end up beginning its Id with "wComp"
Mathias is online now   #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 08:12 PM.


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