View Single Post
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