Junior Member
Join Date: Jul 2008
Posts: 17
|
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 |
#1 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Quote:
That way, if for some reason more skills that are unlinked come into play, you’re already accounting for it. Working on - |
|
#2 |
Junior Member
Join Date: Jul 2008
Posts: 17
|
Quote:
|
|
#3 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Very welcome
Working on - |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
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. |
#5 |
Thread Tools | |
Display Modes | |
|
|