• 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

Adding Pre-Req's

Spence

Well-known member
I have never been able to figure out how to enter Pre-Req's. I have read the user files for the various files, but they are never laid out like the actual program.

If I want to add a Prereq for an edge I do so using the Pre-Req button that opens the prereq window (jpg prereq 01). The Hero Lab Kit when adding Edges (pg444) says that each pre-req should be entered separately. But the example (see jpg prereq 02) show multiple pre-reqs as a single script.

The example

<thing
id="edgSweep"
name="Sweep"
compset="Edge"
isunique="yes"
description="Description goes here">
<fieldval field="edgMinRank" value="0"/>
<tag group="EdgeType" tag="Combat"/>
<exprreq message="Strength d8 required."><![CDATA[
#trait[attrStr] >= 4
]]></exprreq>
<exprreq message="Fighting d8 required."><![CDATA[
#traitfound[skFighting] >= 4
]]></exprreq>
</thing>


Contains multiple pre-reqs.

I assume that

<exprreq message="Fighting d8 required."><![CDATA[#traitfound[skFighting] >= 4 ]]></exprreq>

Is the part that sets the requirement to have a Fighting Skill of d8 or better.

I also assume that the portion <exprreq message="Fighting d8 required."> is created when Fighting d8 required
is entered in the block titled 'Message'.

That leads me to believe that <![CDATA[#traitfound[skFighting] >= 4 ]]> is the part of the expression that will be entered into the block labeled 'Pre-Requisite Script' and that the number '4' equals or is greater than d8.

At first I assumed that d4 = 1, d6 = 2, d8 = 3, d10 = 4 and d12 = 5 but then how could the example use '4' to indicate a Fighting Skill of d8 or better.

So my question is, if I wanted to enter a pre-req requirement of 'Smarts d8+' exactly what would I enter into the HL pre-requisite pop up fields? (see jpg prereq 03)

If I have one good working example shown as it is actually used I can usually figure the rest out.

I attached 3 images.

I understand I can be dense sometimes, but I am creating a SW users file for Thrilling Tales and have entered all the new Hindrances and Edges, but cannot get the pre-reqs to function correctly and apparently I can't seem to understand the manual/tutorial :(
 

Attachments

  • prereq 01.jpg
    prereq 01.jpg
    76.1 KB · Views: 5
  • prereq 02.jpg
    prereq 02.jpg
    158.9 KB · Views: 3
  • Prereq 03.jpg
    Prereq 03.jpg
    347.2 KB · Views: 6
Last edited:
Expr-reqs are actually a subset of pre-reqs. Since most prereqs are a yes-no question or a comparison, you could either enter this:

Code:
if (#traitfound[skFighting] >= 4) then
@valid = 1
endif

As a prereq, or this:

Code:
#traitfound[skFighting] >= 4

As an Expr-req, and you'll get the same result. It saves typing to enter it as an Expr-req.

I suggest you use the "New (Copy)" button on the bottom left hand corner of the editor to see how some of the existing edges handle their prereqs/exprreqs. I'm not familiar with Savage Worlds, but looking through a few, I find the Thief edge, with an exprreq of:

Agility d8 required.
#trait[attrAgi] >= 4

From reading through the Savage Worlds file creation walkthrough in the wiki, I know that their trait values * 2 = the die size, so 2 = d4, 3 = d6, 4 = d8, etc.

For future reference, there's a specific forum for questions relating to the Savage Worlds files.
 
Expr-reqs are actually a subset of pre-reqs. Since most prereqs are a yes-no question or a comparison, you could either enter this:

Code:
if (#traitfound[skFighting] >= 4) then
@valid = 1
endif

As a prereq, or this:

Code:
#traitfound[skFighting] >= 4

As an Expr-req, and you'll get the same result. It saves typing to enter it as an Expr-req.

Thanks,

That helps a lot

I suggest you use the "New (Copy)" button on the bottom left hand corner of the editor to see how some of the existing edges handle their prereqs/exprreqs.

Copy, check...

I can tell it's been a long day :o



From reading through the Savage Worlds file creation walkthrough in the wiki, I know that their trait values * 2 = the die size, so 2 = d4, 3 = d6, 4 = d8, etc.

Face --- Palm ---- you get the picture ;)

For future reference, there's a specific forum for questions relating to the Savage Worlds files.

Can't seem to win here :(

I knew that, but was thinking of this as a HL question instead of a SW one...
 
Back
Top