Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 19th, 2010, 05:49 PM
Making a racial custom special that adds to an Otyugh's number of Tentacle attacks. I have it working with a crude script, but I have been trying to make things more elegant, so I would like to ask for help. Here is what I have so far.

foreach pick in hero from BaseNatWep where "IsWeapon.wTentacle & SpecSource.rOtyugh"
var bonus as number
bonus = eachpick.tagvalue[Value.?] + 1

perform eachpick.tagreplace[Value.?,Value." & bonus & "]

nexteach

The problem is with the second Value tag, how do I define it? As I have it now it gives me an invalid syntax for tag template error.
Lawful_g is offline   #1 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 19th, 2010, 08:38 PM
Another question, how would one use a Racial Custom ability to replace a natural attack? For example a Tail slap replaced with a Stinger instead.
Lawful_g 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 November 20th, 2010, 10:01 AM
Quote:
Originally Posted by Lawful_g View Post
foreach pick in hero from BaseNatWep where "IsWeapon.wTentacle & SpecSource.rOtyugh"
I am thinking this won't work as SpecSource.rOtyugh is not a tag on BaseNatWep. At least I can't find it when I add an Otyugh. My take is that you are trying to find a specific tentacle added by the Otyugh. You would probably need to add a special tag to add to the Natural Weapons during its bootstrap and then use that User tag to help find the natural weapon.

As the Racial Custom Special is already attached to a specific race can't you just safely assume any Tentacle found is from the Otyugh?

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
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old November 20th, 2010, 11:19 AM
Code:
 
perform eachpick.delete[Value.?]
perform eachpick.assignstr["Value." & bonus]
should work - only assignstr[], not assign[] or tagreplace[], can assign a string that's generated by an expression - the others have to assign a specific tag.

Natural weapons aren't usually tagged according to the race they came from, though, so I don't think there's a way to make sure you're altering the Otyugh's tentacle - this will alter every tentacle on the character.


If you assign the "Hide.Weapon" tag to a weapon, it will not be shown anywhere - you could use that to hide the original and then bootstrap a new one.
Mathias is offline   #4 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 20th, 2010, 02:47 PM
Thanks for the input guys. I realized that the script would modify all tentacles, so I purposefully put a SpecSource tag on the natural weapon when I bootstrapped it to the race so only it would be affected. And ShadowChemosh, I can't assume any tentacle there is must be from the race, there are feats (Aberration Blood) and I am sure a prestige class or two that adds tentacle attacks. Rare though that situation may be, I am thinking ahead here.

Thanks for the info Mathias on assignstr and Hide.Weapon. I'll put those to good use and try them out now.
Lawful_g is offline   #5 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old December 13th, 2010, 02:40 AM
Quote:
Originally Posted by Mathias View Post
If you assign the "Hide.Weapon" tag to a weapon, it will not be shown anywhere - you could use that to hide the original and then bootstrap a new one.
Is that a typo? Hide.Weapon doesn't exist in d20, so maybe it is a Pathfinder only thing?

Last edited by risner; December 13th, 2010 at 03:09 AM.
risner is offline   #6 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old December 13th, 2010, 07:40 AM
I haven't tried it in d20 yet, but it definitely works in the pathfinder system.
Lawful_g is offline   #7 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old December 13th, 2010, 08:36 AM
Quote:
Originally Posted by Lawful_g View Post
I haven't tried it in d20 yet, but it definitely works in the pathfinder system.
Ok, doesn't in d20.

Know a way to hide in d20? I've tried deleting wMain and a number of other things.
risner is offline   #8 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old December 13th, 2010, 01:01 PM
What ability are you trying to add? Maybe start a post in the d20 forum and I'll meet you there?
Lawful_g is offline   #9 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old December 13th, 2010, 01:13 PM
Quote:
Originally Posted by Lawful_g View Post
What ability are you trying to add? Maybe start a post in the d20 forum and I'll meet you there?
I'm in the Wild Shape Forms thread.
risner is offline   #10 Reply With Quote
Reply

Thread Tools
Display Modes

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 06:07 AM.


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