Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old October 31st, 2012, 07:43 PM
I have a race that is proficient with all exotic weapons. Any ideas on how to code this?
frumple is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old October 31st, 2012, 09:55 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old November 1st, 2012, 03:35 AM
Cool! Thanks!
frumple is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 1st, 2012, 09:29 AM
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
Otherwise some weapons like Sawtooth saber won't consider themselves to really be proficient.

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.
ShadowChemosh is offline   #4 Reply With Quote
saintaurik
Member
 
Join Date: Oct 2013
Posts: 46

Old June 1st, 2014, 10:18 AM
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?
saintaurik is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 1st, 2014, 11:06 AM
Quote:
Originally Posted by saintaurik View Post
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?
Glad to help but need more info and it is always helpful when a script is not working to "post" the full script into your post. This way we can see if any issues.

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.
ShadowChemosh is offline   #6 Reply With Quote
saintaurik
Member
 
Join Date: Oct 2013
Posts: 46

Old June 22nd, 2014, 12:04 PM
Sorry I got back to this so late but thank you very much! this worked amazingly well!
saintaurik is offline   #7 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:11 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.