• 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

Multiple attributes associated to a skill?

ShadowWalker

Well-known member
I'm trying to create a system where the skills have three attributes associated with the skill and the attributes could be duplicated.
So a skill could have STR, DEX, DEX, or even DEX, DEX, DEX.
Using linkage won't work as you can only have one.
Tags you can only have one of each.
I thought maybe tags saying STR1, DEX2 or DEX3 for the above examples.

Any suggestions on what would be the best way to do this?

I have something similar to do with occupations. They have skills associated with them and a starting value for that skill. Not sure how to associate a value to a skill within the occupation.
 
Each linkage can only be assigned to a single attribute, but there's nothing stopping you from setting up 3 different linkages on that component, and then each of them can be assigned to one of the attributes that skill needs.

The tag system will also work - you can use tagcount to count the number of tags from each attribute.

For your occupations, there's two options. If the skills are always there, and you just want to add a value to them, do like races in Pathfinder or d20 do - use a script to assign values.

If skills are added by the user, depending on what that character needs, like in Shadowrun, then you can bootstrap the skill with an assigned field value of the correct amount.
 
Last edited:
How do I setup multiple linkages using the same component?

<linkage linkage="attribute"/>

gives an error if there is more than one.
I tried adding an id="" to it and that gives an error.
 
You're giving each linkage a different name, right?

Code:
<linkage linkage="attribute1"/>
<linkage linkage="attribute2"/>
<linkage linkage="attribute3"/>
 
That's what I was missing. When I read the information on linkage it describes the linkage="" as the unique id for the component. I had not thought of adding a number to it.

Thanks.
 
When I try bootstrapping a skill to an occupation and assigning a value to a field it complains about the skill being unique. Is there a way around this?
 
That worked thanks.

I went looking for uniqueness and user once and didn't see anything under things in the kit. I created a new item to figure out what I had to do.
Had to change the compset as it was forcing things to be unique.
 
I am working on a game system which uses one or two linked attributes for skills. So I made the following edit to the skeleton traits.str to change the linkage from "attribute" to two linkages, "attribute1" and "attribute2".

Code:
    <linkage linkage="attribute1" optional="no"/>
    <linkage linkage="attribute2" optional="yes"/>
Then in thing_skills.dat, I created a skill:
Code:
<thing
    id="skAcro"
    name="Acrobatics"
    compset="Skill"
    isunique="yes"
    description="">
    <fieldval field="trtAbbrev" value="Acro"/>
    <fieldval field="CR" value="SB"/>
    <fieldval field="TN" value="7"/>
    <link linkage="attribute1" thing="attrRfl"/>
  </thing>
However, now when compiling the data files I'm getting an error referencing proceedures.dat

Hero Lab was forced to stop compilation after the following errors were detected:

Code:
Syntax error in script for Procedure 'DshRolls' on line 6
  -> Non-existent linkage 'attribute' used by script
Not a terribly helpful message. Line 6 of what file? (I think the line reference may also be in error, as the procedure DshRolls starts on line 626 of procedures.dat).

Anyway, Shadowwalker, how did you get past this after implementing multiple linked attributes?

I'm only just beginning to get my head around the skeleton data files. I've not yet dug into what this procedure does as I really just wanted to get one skill into the system and test it out. :)
 
Last edited:
Code:
Syntax error in script for Procedure 'DshRolls' on line 6
  -> Non-existent linkage 'attribute' used by script
Not a terribly helpful message. Line 6 of what file? (I think the line reference may also be in error, as the procedure DshRolls starts on line 626 of procedures.dat).
Actually it tells you allot of information. So in the Procedure "DshRolls" line 6 of that specific script NOT the file line number has an issue.

It is trying to use a linkage called "attribute" but you renamed them to attribute1 and attribute2 so its correct in that it can't be found.

I would recommend something like Notepad++ or TextPad that can search a directory of files for specific words. In this case search for DshRolls will let you know which file to open and then in that procedure fix line 6 of the script to reference either attribute1 or attribute2.
 
Thanks ShadowChemosh,

I'm actually using Sublime Text, and said directory search is how I found the reference in procedures.dat. :) I didn't however see the correlation between the error message being line 6 of the procedure in question :).

Now I need to decode the procedure to understand what to modify (sigh). Since I'm such a neophyte I'm not sure if my attribute1/atttribute2 implementation will really work. So I'm trying to avoid hacking up the rest of the skeleton files until I know I'm on the right path or not.
 
Back
Top