• 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

entitlment for cheaper

jonbartels

Well-known member
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?
 
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

All that matters for determining whether the thing/pick is valid is the first line. The rest handles proper highlighting. So all we need to modify is the first line.

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)

Note that the Hedge Beast Companion merit is not currently in the data files, so I'm assuming you will add it. I used a placeholder unique id for it above that you should change to whatever you choose to use.
 
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.
 
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.

Oops. I was sloppy due to being in a hurry. I wanted to get you an answer to all your questions but I also needed to get out the door to an event - it's Saturday, after all. :-)

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".
 
Back
Top