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
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 676

Old July 8th, 2016, 01:34 PM
So I'm dealing with a bunch of different class custom specials that add a claw, gore, or other natural attack to the hero, and I'd like to implement some nice clean prereqs that make sure the hero has the correct number of limbs to "hold" those attacks.

I thought at first I could simply count the hero's HasNatAtt.? tags and compare that to the corresponding hero field for arms/legs/heads. But it turns out that tag is only added to the hero once per attack type, no matter how many of that attack they have.

Has anyone come up with a way to count the number of a given natural attack a hero has, without resorting to something expensive like foreach-ing through weapons?

Oh, and side note to LWD: HUGE thanks for the new tNumLegs and tNumHeads fields, they are going to be super helpful. Any chance of getting similar fields for counting tails and wings in the future?
TheIronGolem is offline   #1 Reply With Quote
Maquiscat
Junior Member
 
Join Date: May 2016
Posts: 22

Old July 8th, 2016, 07:21 PM
Could you explain what you mean by the correct number limbs? You only need a minimum of one limb to do a claw attack
Maquiscat is offline   #2 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 8th, 2016, 07:22 PM
There are hands and leg fields on the hero. Read the most recent update.
AndrewD2 is offline   #3 Reply With Quote
Maquiscat
Junior Member
 
Join Date: May 2016
Posts: 22

Old July 8th, 2016, 07:39 PM
I got that. I am not sure what he is looking for. Is he wanting to check the character has at least one arm to do a claw attack? Or is he assuming that they should have at least two arms for claw?

Or maybe he is asking if there is a way that you can select claw attack once and then it calculates how many claw attacks it has by the number of arms or legs it has?

Last edited by Maquiscat; July 8th, 2016 at 08:06 PM. Reason: Grammar correction
Maquiscat is offline   #4 Reply With Quote
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 676

Old July 8th, 2016, 08:00 PM
Quote:
Originally Posted by Maquiscat View Post
I got that. I am not sure what you are looking for. Are you wanting to check the character has at least one arm to do a claw attack? Or are you assuming that they should have at least two arms for claw?

Or maybe you are asking if there is a way that you can select claw attack once and then it calculates how many claw attacks it has by the number of arms or legs it has?
First one is the closest. I'm trying to make sure the hero has enough "free" limbs to add the attack that the class special grants. So if the hero has one head and already has a gore attack, he can't add another gore attack unless/until he gains a second head.

I'm currently doing this by looping through the hero's existing natural attacks and counting the ones that match the attack I'm validating. But loops are pretty expensive (I've earned more than one rap on the knuckles from ShadowChemosh for using them in the community packages), so I'm checking to see if anyone knows a more efficient way.
TheIronGolem is offline   #5 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old July 9th, 2016, 06:43 AM
There is a procedure NatNum that counts the total number of natural attacks a hero has which may be useful.

I do not think there is a tag that connects specific natural attacks to specific body parts at this time. It would be useful though if there was. For example, Bite could have Helper.NatHead or something like that.
frumple is offline   #6 Reply With Quote
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 676

Old July 9th, 2016, 09:39 AM
Quote:
Originally Posted by frumple View Post
There is a procedure NatNum that counts the total number of natural attacks a hero has which may be useful.
That looks pretty much like what I was doing, although in a more thorough way. Thanks, I'll go ahead and just use that.

Quote:
Originally Posted by frumple View Post
I do not think there is a tag that connects specific natural attacks to specific body parts at this time. It would be useful though if there was. For example, Bite could have Helper.NatHead or something like that.
That would be useful, though perhaps not for this particular purpose because sometimes different natural attacks can occupy the same limb (bite and gore on a head, for example).

Personally, I think it would be ideal if the hero could get one HasNatAtt tag for each instance of a natural attack they have. That way we could simply count those tags and compare it to the corresponding herofield. Admittedly, there may be other logic elsewhere that expects only one copy of that tag to exist, so maybe it's less of a good idea than I think.
TheIronGolem is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 9th, 2016, 03:49 PM
Quote:
Originally Posted by frumple View Post
There is a procedure NatNum that counts the total number of natural attacks a hero has which may be useful.

I do not think there is a tag that connects specific natural attacks to specific body parts at this time. It would be useful though if there was. For example, Bite could have Helper.NatHead or something like that.
Helper.RaceHands sets the number of attacks for a natural weapon to the number of hands the hero has, and reduces that as hands are filled with other weapons.

Helper.RaceHeads and Helper.RaceLegs do the first part (setting the number of attacks to the hero field) but do not do the latter (since you don't lose "free heads/legs" when you equip things).
Aaron is offline   #8 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old July 10th, 2016, 05:01 AM
Quote:
Originally Posted by Aaron View Post
Helper.RaceHands sets the number of attacks for a natural weapon to the number of hands the hero has, and reduces that as hands are filled with other weapons.

Helper.RaceHeads and Helper.RaceLegs do the first part (setting the number of attacks to the hero field) but do not do the latter (since you don't lose "free heads/legs" when you equip things).
Well, unless you get your hands on the Head of Vecna.
frumple is offline   #9 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old July 10th, 2016, 05:57 AM
Have you looked at the Eidolon that a Summoner summons? You can build the eidolon up with points and so it does these sorts of checks.
Farling is offline   #10 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 12:49 AM.


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