Member
Join Date: Aug 2008
Posts: 71
|
The Barony of the Lesser Ones has listed Intimidation and Persuasion at 3 dots each as prerequisites.
If you have Gentrified Bearing, Hob Kin merits or one dot in the Hedge Beast Companion merit, Intimidation and Persuasion is reduced to 2 dots. How do i achieve this? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Currently, your prereq script will look something like the following for Persuassion:
Code:
validif (#skill[sPersuade] >= 3) if (@ispick <> 0) then altpick.linkvalid = 0 endif Our logic is pretty simple. We start with a requirement of three dots. If one of various merits is possessed, that decreases to two dots. Then we compare against the potentially adjusted number of dots required. All merits forward their identity tag to the character, so you can check there to determine whether a particular merit is possessed. Putting it all together yields the following test logic: Code:
var dots as number dots = 3 if (hero.tagis[mGentBear] <> 0) then dots = 2 elseif (hero.tagis[mHobKin] <> 0) then dots = 2 elseif (hero.tagis[mHedgeComp] <> 0) then dots = 2 endif validif (#skill[sPersuade] >= dots) |
#2 |
Member
Join Date: Aug 2008
Posts: 71
|
I get the following error when i try to compile the data file.
syntax error in 'pre-requisite rule' for thing 'E02' on line 3 -> invalid syntax for tag template. all I did was cut and paste the above code and modified the names to the ones that I'm using. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Quote:
The "tagis" syntax needs to specify a proper tag template, as indicated by the error message. A tag template must have the form "groupid.tagid". All I specified was the tag id. So the merit tags should be "Merit.tagid". For example, "Merit.mGentBear" instead of just "mGentBear". |
|
#4 |
|
|