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
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 09:56 AM
Thread Necromany for the win!

5 years dead is not enough to protect your threads from me! Muhuhahahahaaaaaa*wheeze*haaaaaaa!


Quote:
Unfortunately it won't work with weapons right now
...
We're planning to do some things that make it possible in the future, but they probably won't happen for a little while.
Any progress on having Weapon Focus (et. al) added with a pre-selected choice?

Last edited by lifer4700; January 10th, 2013 at 01:58 PM. Reason: This thread was pulled out of an existing thread from the d20 Forum.
lifer4700 is offline   #1 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 11:02 AM
Update:

While creating an Archetype in the Pathfinder game system, I want to give my Archetype specific bonus feats at various levels.

I am using a technique where I create a Class Special using ClSpecWhen so it shows up on the list of class abilities for the user, then the Class Special bootstraps the Feat, using the bootstrap Conditions to verify level.

Overall, everything is working perfectly, until I get to the feats that have a choice, and I want to pre-select the choice.

Weapon Focus (Longbow) at 2nd level
Bootstrap: fWepFoc
- Group Id: Target - Tag Id: wLongbow

Point Blank Master (Longbow) at 6th
Bootstrap: fPointBMas
- Group Id: Target - Tag Id: wLongbow
- Group Id: thing - Tag Id: skipprereq


Both feats are being added at the proper level.
Both are even being pre-selected properly and the user can't change.
Great!

However, here's the problem I'm getting.

While Weapon Focus works perfectly without complaint or error.

Point Blank Master works, but complains:
Invalid tag expression specified for 'foreach' statement
Location: 'eval' script for Thing 'fPointBMas' (Eval Script '#1') near line 23



So I coped the fPointBMas feat, and examined line 23 of the script. It's the last "foreach" line.
Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)
      
      ~ If we haven't chosen anything, get out now
      doneif (field[usrChosen1].ischosen + tagis[Target.?] = 0)
      
      ~ Assign the appropriate tag to all weapons that meet the criteria
      var id as string
      id = field[usrChosen1].chosen.idstring
      
      if (tagcount[Hero.MartVersa] + hero.tagcount[Hero.MartMaster] <> 0) then
        perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
        id = tagids[wFtrGroup.?," | "]
        
        foreach thing in BaseWep where id
          if (eachthing.tagmatch[wFtrGroup,wFtrGroup,initial] <> 0) then
            perform eachthing.amendthing[description,eachthing.field[descript].text & "{br}{br}{b}Addition from Point Blank Master{/b}: You do not provoke attacks of opportunity for firing this weapon."]
            endif
          nexteach
      else
        id = field[usrChosen1].chosen.idstring
        foreach thing in BaseWep where "IsWeapon." & id
          perform eachthing.amendthing[description,eachthing.field[descript].text & "{br}{br}{b}Addition from Point Blank Master{/b}: You do not provoke attacks of opportunity for firing this weapon."]
          nexteach
        endif

This section of code appears to add the flavor text of the feat to the weapon description for all weapons that match a field called usrChosen1. Weapon Focus does not have this issue because it does not modify any weapon description.

Do I have to set this field manually? What should go in there? By the code I would guess that in my case it would be "wLongbow", but I have zero clue how to set this.

Also, I looked at regular character with Point Blank Master, and the usrChosen1 field contains a dash character "-", which is the same thing the feat contains on my archetype. In fact, I see zero differences between the debug fields between the two feats (other than abOrder), so I'm not even sure what the issue is.



I tried using Fields on the class special...
Field Id: usrChosen1 - Value: wLongbow
...but this did nothing to prevent the error.


Next, I tried setting the Field on the Bootstrap itself...
Field Id: usrChosen1 - Value: wLongbow - Assign (default, not sure what this does)
...but then I got a new error:

Hero Lab was forced to stop compilation after the following errors were detected:
Thing 'cL47PBMast' - Conditional bootstrap is not allowed with the value assignment on 'user' field 'userChosen1'
Thing cL47PBMast' - Menu field 'userChosen1' referenced in bootstrap may only be used with 'thing', 'pick', or 'hero' behavior


So, I tried each of those (thing, pick, hero) in turn, instead of 'Assign', which removed the 2nd line of the error (about menu field), but I still got the 1st line of the error (about the conditional bootstrap)...


Any suggestions?

Last edited by lifer4700; January 10th, 2013 at 11:50 AM.
lifer4700 is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 10th, 2013, 12:18 PM
Field value assignments cannot be used to set the value of a menu-style field. usrChosen1 is a menu-style field.

That's why Pathfinder uses the Target mechanism, but that mechanism has not been added to d20 yet.
Mathias is offline   #3 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 01:03 PM
Thank you for your reply.

So, what does that mean for me? (Pathfinder)
Do I just move on, and tell my players to ignore the error since everything works?
lifer4700 is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 10th, 2013, 01:05 PM
Wait, are you asking about d20, or about Pathfinder?

You're posting in the d20 forum, but you keep mentioning Pathfinder.
Mathias is offline   #5 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 01:23 PM
Oh! I apologize, I found this post via search, and did not realize it was under the D20 forum.

My question is for Pathfinder.
lifer4700 is offline   #6 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 01:44 PM
Currently, I have the user pick longbow or shortbow at 1st level, similar to how the Weapon Master fighter archetype does, and I have that implemented without problem.

Ultimately, I want the Weapon Focus and the Point Blank Master to assign whichever weapon type the player chose.
lifer4700 is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 10th, 2013, 01:52 PM
Can you think of any races that grant specific weapon focuses?

Aboleth has Weapon Focus (Tentacle)
Angel, Astral Deva has Weapon Focus (Warhammer)
(looking up those would require you to own the Bestiary 1 package)
Redcap and Charda appear to be races that everyone could access that have specific weapon focuses.

On the Race tab in the editor, you can make a copy of those races, and then look at the details of that bonus feat on that race, and see how they do it.

If you have the package that includes the Varisia book from a few months ago, the Kapenia Dancer archetype grants a specific weapon focus as a bonus feat.
Mathias is offline   #8 Reply With Quote
lifer4700
Senior Member
 
Join Date: Nov 2011
Location: Michigan
Posts: 182

Old January 10th, 2013, 02:07 PM
I looked up all of those, and they assign the Weapon Focus just as I do.

However, my problem is not with Weapon Focus. It's with Point Blank Master.
lifer4700 is offline   #9 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 10th, 2013, 02:26 PM
This appears to be a bug - Point Blank Master isn't set up properly to make use of Target tags.

I've added that to our to-do list.
Mathias is offline   #10 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 08:51 AM.


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