Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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.
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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..... Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
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 |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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.
|
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
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 |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
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. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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?
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
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.?] 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. |
#8 |
Thread Tools | |
Display Modes | |
|
|