• 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

Restricting something on the basis of Racial Ability

tatteredking

Well-known member
With the Sundered Skies settings, I've ended up having to have 13 different elf and 21 different wildling races, because one of their racial abilities allows for a choice. The choice results in a different ability.

I'm trying to deterimine an alternate way to restrict by race. Up until now, if I want to restrict something to all elves, I've used

Code:
hero.tagis[Race.racElf1] + hero.tagis[Race.racElf2] + ... hero.tagis[Race.racElfn] <> 0

It gets tedious having to write that out a lot.

I'm trying to determine if there is a way to restrict something by a racial ability that is unique to elves. Would something along these lines work?

Code:
hero.tagis[Ability.racElfSite] <>0
 
I take it you are already using factions for something else, it would seem to me you could use factions to pick those specializations and only have to do one elf then.

With the Sundered Skies settings, I've ended up having to have 13 different elf and 21 different wildling races, because one of their racial abilities allows for a choice. The choice results in a different ability.

I'm trying to deterimine an alternate way to restrict by race. Up until now, if I want to restrict something to all elves, I've used

Code:
hero.tagis[Race.racElf1] + hero.tagis[Race.racElf2] + ... hero.tagis[Race.racElfn] <> 0

It gets tedious having to write that out a lot.

I'm trying to determine if there is a way to restrict something by a racial ability that is unique to elves. Would something along these lines work?

Code:
hero.tagis[Ability.racElfSite] <>0
 
I agree that using the Faction mechanism to specify the "type" of elf would be the optimal way of handling this. If you're already using the Faction mechanism, we'll be adding a secondary mechanism of the same type that can be used with the next major update of the Savage Worlds data files.

If you want to stick with your current method, you can readily leverage wildcards within tag templates and tag expressions. Assuming all of your various flavors of Elf have unique ids like "racElfxxxx", you can easily use a wildcard template to identify a match on *any* elf race. Simply use the code below to detect any Elf flavor:

Code:
if (hero.tagis[Race.racElf?] <> 0)

The '?' means that the rest of the tag will match anything. So this translates to matching any hero that has a Race tag that starts with "racElf" and has anything after that. It's exactly designed for situations like you're facing and there's a detailed writeup in the wiki that delves into lots of other powerful capabilities you can leverage when working with tag templates, tag expressions, and wildcards.

Hope this helps....
 
factions are currently being used for Deity, as AB Powers and some Edges are specified to certain deities. With Sundered Skies, I'm running into situations where there are things restricted by Deity, as well as things restricted by Faction(organized group). To make the different elven sub-races a Faction would entail having a third faction setting.

I've tried using wildcards and I have always got an error. I will definitely try again
 
Wildcards are used with new power and power points edges, I found that out when I did not name my new arcane background edges with the standard edgArc naming system.

Such as.
hero.tagis[Edge.edgArc?] <> 0

factions are currently being used for Deity, as AB Powers and some Edges are specified to certain deities. With Sundered Skies, I'm running into situations where there are things restricted by Deity, as well as things restricted by Faction(organized group). To make the different elven sub-races a Faction would entail having a third faction setting.

I've tried using wildcards and I have always got an error. I will definitely try again
 
How about giving everyone one free adge to use to select a religious background edge. Then they can choose who they worship that way and leave the factions open for your specializations.
 
OK so I tried the wildcard and it worked, not sure why it didn;t before.

Free Edge to pick a religeous background. Hmm....that's not a bad idea :)
 
Back
Top