Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
Code:
perform eachpick.delete[Value.?] perform eachpick.assignstr["Value." & bonus] 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. |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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. |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
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. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
I haven't tried it in d20 yet, but it definitely works in the pathfinder system.
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
What ability are you trying to add? Maybe start a post in the d20 forum and I'll meet you there?
|
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
|
#10 |
Thread Tools | |
Display Modes | |
|
|