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.
|