Weapon Proficiency/focus/specialization as a prereq
I'm looking to setup several feats that require specific prerequisites, as indicated in the title. I know, for instance, that I can check for weapon focus in general with "tagis[WepFocus.?]", but I will need to check proficiency, focus, and specialization for specific weapons. Does anyone know how I can do this?
Thanks, Illvatar |
WepProf.? exists for any exotic weapon proficiencies, specific martial weapon proficiencies, or a class that grants a specified list of weapons.
#hasfeat[fWepSimple] #hasfeat[fWepMart] are the other items you're after. Complain to Rob and Colen that WepSpec.? (along with WepGrFoc.? and WepGrSpec.?) don't exist, although by looking at the script for Weapon Focus, I can see how to make a version of those feats that does add the appropriate tag. The way to find this is to add something that grants the proficiency you want (and I suggest you try getting at it multiple ways, for example Light Crossbow proficiency comes with fWepSimple, but a Wizard gains WepProf.wCrsLight), then View menu, Floating Info Windows, Show Hero Tags - keep that list up, and watch what's added as you add classes and feats. Here's an example PreReq from Pathfinder 8 - the class in question requires proficiency in any type of crossbow: Code:
if (hero.tagis[WepProf.wCrsHand] + hero.tagis[WepProf.wCrsHeavy] + hero.tagis[WepProf.wCrsLight] + hero.tagis[WepProf.wCrsRpHvy] + hero.tagis[WepProf.wCrsRpLgt] + #hasfeat[fWepSimple] <> 0) then Code:
if (tagis[WepProf.wPFSawtoot] <> 0) then |
That sounds great, but I can't figure out how to get Floating Info Windows to highlight so I can select it. Any ideas?
<edit> Ah, I have to turn on Data File Debugging. I've been working without that so far. I suspect this will help a lot. Thanks mgehl. </edit> |
Weapon Proficiency/focus/specialization as a prereq
At 01:24 AM 8/14/2008, you wrote:
Quote:
if (hero.tagis[WepProf.wCrs>] + #hasfeat[fWepSimple] <> 0) then * @valid = 1 * endif In addition to being simpler, if someone adds a new crossbow proficiency, the code works without needing any changes. |
Weapon Proficiency/focus/specialization as a prereq
At 03:51 AM 8/14/2008, you wrote:
Quote:
|
Re: Weapon Proficiency/focus/specialization as a prereq
Rob, his edited version answered his own question.
I forgot to tell him that the floating info windows are only available if you have debugging turned on. From experience in AB and CV, I knew to turn on debugging as soon as I got HL, and I can forget about that when I'm analyzing a product. Rob, may I suggest a section at the beginning of the authoring documentation covering things like what the debugging tools can offer, how to access them, and details of how to write additional files, namely that you can't edit the files in the source folder, you have to create a new file. Quote:
|
All times are GMT -8. The time now is 07:28 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.