• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help adding to Natural

Lawful_g

Well-known member
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.
 
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.
 
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?
 
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.
 
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.
 
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:
Back
Top