Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
I have a race that is proficient with all exotic weapons. Any ideas on how to code this?
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Yep use this script. It has to be set on the Race itself it won't work on a racial special.
First/600 Code:
~ Make proficient in all exotic weapons foreach thing in BaseWep where "wProfReq.Exotic" perform eachthing.pulltags[WepProf.?] nexteach 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
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
Cool! Thanks!
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Sorry this is not 100% correct actually. As these are exotics weapons the Helper.ExoticProf needs to get on the weapons when they are added to the hero.
You should add this to after the above: Code:
var sTags as string ~ Pull all the weapon tags sTags = tagids[WepProf.?,"|"] ~ Loop through all the weapon picks and set hepler tag foreach pick in hero from BaseWep where sTags perform eachpick.assign[Helper.ExoticProf] nexteach 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. |
#4 |
Member
Join Date: Oct 2013
Posts: 46
|
I am still unsure how this all works. I added it to an eval script in the shadar-kai race I wanted to make but it seems to not be working.
The shadar-kai race is proficient in all exotic weapons. What am I doing wrong with what you have posted that makes it not work? |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Also what "Timing" do you have set for the script and what is the script on? It sounds like you put the eval directly on the Race but wanted to check as it was made to work on a race Thing. Here is a script that works when placed on a Racial Special instead: First/20000 Code:
~if we've been replaced, get out now doneif (tagis[Helper.SpcReplace] <> 0) ~ Build all tags on us foreach thing in BaseWep where "wProfReq.Exotic" perform eachthing.pulltags[WepProf.?] nexteach ~ push them all to hero perform hero.pushtags[WepProf.?] ~ Cycle through and apply the Helper.ExoticProf tag to all exotic weapons. var sTags as string ~ Pull all the weapon tags sTags = tagids[WepProf.?,"|"] ~ Loop through all the weapon picks and set helper tag foreach pick in hero from BaseWep where sTags perform eachpick.assign[Helper.ExoticProf] nexteach 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. |
|
#6 |
Member
Join Date: Oct 2013
Posts: 46
|
Sorry I got back to this so late but thank you very much! this worked amazingly well!
|
#7 |
|
|