Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
Tickkid
Junior Member
 
Join Date: Jul 2008
Posts: 17

Old October 5th, 2020, 08:51 PM
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
Tickkid is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,273

Old October 5th, 2020, 09:12 PM
Quote:
Originally Posted by Tickkid View Post
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.

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #2 Reply With Quote
Tickkid
Junior Member
 
Join Date: Jul 2008
Posts: 17

Old October 5th, 2020, 09:22 PM
Quote:
Originally Posted by TCArknight View Post
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.
Tickkid is offline   #3 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,273

Old October 6th, 2020, 04:55 AM
Quote:
Originally Posted by Tickkid View Post
Thank you, this is a good idea. Time to dive into some Tag and Tag groups. Really appreciate the response.
Very welcome

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,950

Old October 6th, 2020, 07:26 AM
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.
Mathias is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:53 AM.


Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.