• 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

How would I get a string of the race ID?

Lawful_g

Well-known member
I am talking about getting the section after the "IsRace." part. For example, IsRace.rElf would return rElf. I came up with something, but in situations where the char has multiple race tags (like Varisian Humans) it gives too much.
 
I am happy to try and help, but I am not getting what you are looking for as it sounds like you are getting the race values correctly. You just want to limit it to a single race tag? Or are you actually trying to convert the TAG into a String data type so that you can try and compare it to another String data type?

Sorry I am just not understanding the question..... :confused:
 
Varisian Humans should have two IsRace tags - their native tag, and rHuman - the presence of IsRace.rHuman allows them to use the favored class options that are defined for Humans.

if you're using them in a foreach, may I suggest an AND?:

Code:
var searchexpr as string
searchexpr = tagids[IsRace.?,"&"]
 
foreach pick in hero from BasrRace where searchexpr

That will search for only the combination of IsRace tags found on the race you're looking up, but don't you know exactly which race you're looking for, in order to have gotten those tags?
 
I am looking up what race the hero is so that I can assign a wEasyRace.Whatevertheyare tag to each weapon of one select type present. So I don't need an and, as a matter of fact it doesn't matter which of multiple IsRace tags I get, I just need any one.
 
So, all weapons are one class easier?

That doesn't need to involve the race.

Pre-Levels/5500:

Code:
foreach pick in hero from BaseWep
  eachpick.field[wClass].value = maximum(eachpick.field[wClass].value - 1, 0)
  nexteach

(Note that a there are a few problems I came across in field[wClass].value - 2-handed use doesn't detect changes to that, for example, that I've fixed for the next update, so you may have to wait until the next update for a thourough testing).
 
Actually it is a magic item that gives weapon familiarity with one selected weapon, for example Greataxe.

I think I can make that work. I'll fiddle some and come back if I have problems. Thanks.
 
Actually it is a magic item that gives weapon familiarity with one selected weapon, for example Greataxe.
Wouldn't that just be Proficient. Weapon Familiarity is when you get to treat all weapons with a Specific race word as martial. So all weapons that start with Orc count as Weapon Familiarity. If you are just picking a single weapon that would just need to apply the Weapon Proficient tag to that one specific weapon wouldn't it?
 
There's a specific mechanic for making a weapon a category easier, without having to match the race or be using two hands:

Code:
perform field[usrChosen1].chosen.pulltags[EasyWeapon.?]
perform forward[EasyWeapon.?]

The EasyWeapon.? tags (along with everything else proficiency related) are checked at Pre-Level/10000, so I'd recommend Pre-Level/9000 or so.

To any HL user who'se reading this, remember, if you're having trouble, tell me the whole problem along with the small piece you're stuck on - there may be a better overall solution.
 
Back
Top