• 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

One Unlinked Skill

Tickkid

Member
Hi everyone,

I'm working on a game that has one skill that is unlinked. I've figure out how to tell the game that the linkage is optional - but I'm not sure exactly how to keep the net skill roll to keep the linked skill in all of the rest of the attributes except for the one unlinked one. I'm pretty sure it's a nested if. I'm thinking I could reference the skill directly in the IF even, but I'm just not sure the syntax to say that if it is this skill then @value = field[trtFinal].value instead of @value = field[trtFinal].value + linkage[attribute].field[trtFinal].value
 
Hi everyone,

I'm working on a game that has one skill that is unlinked. I've figure out how to tell the game that the linkage is optional - but I'm not sure exactly how to keep the net skill roll to keep the linked skill in all of the rest of the attributes except for the one unlinked one. I'm pretty sure it's a nested if. I'm thinking I could reference the skill directly in the IF even, but I'm just not sure the syntax to say that if it is this skill then @value = field[trtFinal].value instead of @value = field[trtFinal].value + linkage[attribute].field[trtFinal].value
I would think you could give the skill a tag like SkillLink.Unlinked and like you thought, if the tag is present, add the linkage value, otherwise just use the skill trtFinal value.

That way, if for some reason more skills that are unlinked come into play, you’re already accounting for it.
 
I would think you could give the skill a tag like SkillLink.Unlinked and like you thought, if the tag is present, add the linkage value, otherwise just use the skill trtFinal value.

That way, if for some reason more skills that are unlinked come into play, you’re already accounting for it.

Thank you, this is a good idea. Time to dive into some Tag and Tag groups. Really appreciate the response.
 
I'd do:

Code:
@value += field[trtFinal].value

if (islinkage[attribute] <> 0) then
   @value += linkage[attribute].field[trtFinal].value
    endif


That way, you don't need to do two steps (leaving out the linkage and setting the tag) to mean the same thing in two different places.
 
Back
Top