• 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

ability prereq

EightBitz

Well-known member
I'm working from the skeleton game system, and I'm adding abilities. I'm looking for a way to set the existence or absence of an ability as a prerequisite for another ability. For example, two of the abilities I'm adding are "Attractive" and "Unattractive" (abAttr and abUnattr). Obviously, these are mutually exclusive. So if someone chooses both, they should both report as invalid.

Also, there's an "Alien" ability, and there are many other abilities for which "Alien" is a prerequisite. For example, "Extra Limb".

I've tried something like this:

Code:
<!-- Define any appropriate pre-requisites for the ability
    <exprreq iserror="yes" message="Strength 5 required."><![CDATA[#trait[abAttr] = 0]]></exprreq>

But I'm told that abAttr cannot be found. When I look at this sort of thing in Pathfinder, there's a #hastrait function, but nothing like that seems to exist in the skeleton system.

Is there a simple way to do this?
 
I highly recommend studying the Savage Worlds Walkthrough in the authoring kit if you're going to be creating a new game system - that's a record of what was done as the skeleton files were turned into the Savage Worlds files, so you can read how a great many things were accomplished there.

http://hlkitwiki.wolflair.com/index.php5/Savage_Worlds_Walk-Through

Go to the "Hindrance Support" page there, then to the "Identification for Prereqs" section of that page. That's where they set up the basic mechanism behind their version of #hastrait[].

Once you've got those identity tags added, can you figure out how to test for the presence of a tag?
 
I don't know.

I'll have to see. I'm not as good at learning from documentation as I am at learning from reverse engineering. I'll take what you gave me and see what I can do with it.
 
In that case, on the link I provided, I recommend checking out the "Where to find the source" section, so that you have a more complete game system to study from than just the skeleton files themselves. For example, there are examples of similar things in the thing_edges.dat file. (Edges areSavage World's most common type of "ability").
 
And if I want an ability to require another ability, I change the "yes" to "no".

<pickreq ispreclude="no" thing="abMnUnAttr"/>
 
And if I want an ability to require another ability, I change the "yes" to "no".

<pickreq ispreclude="no" thing="abMnUnAttr"/>
 
Back
Top