• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Weapon Focus for cleric with deity's favored weapon?

ebpatton

Well-known member
I want to give clerics weapon focus with their deity's favored weapon, but not give them WF if they have no deity. I'm trying to add this using an archetype (thinking this was best).

How do I do this?
 
Step one, bootstrap weapon focus with a bootstrap condition and a Custom tag to mark which feat (if there happen to be multiple weapon focus feats) you need to target later.

Step two, create an eval script which finds the deity selection for this hero. If it finds one, have it do whatever is necessary to fulfill the feat's bootstrap condition. Also have it pull the WepProf tag from the deity and change it into a Target tag.

Step three, create another eval script to find the feat you bootstrapped (using the custom tag you bootstrapped it with to target) and push the Target tag to that.
 
You create Custom tags through the "User Tags" button at the bottom of the central column of the editor. Click that, then New Tag, then for the unique ID something like "DeiWeapFoc". Save and test now. Then click on the bootstrap button in the upper right, find the bootstrap for the feat, click the "tags" button and add the tag. The Group ID is "Custom" and the Tag ID is "DeiWeapFoc" (or whatever you decided).

While you're still looking at the bootstrap, you can also click on the Condition button to set up your bootstrap condition. I'm assuming this is on some race or class ability, so it should have an abValue field we can use for the condition. Click the button, for phase choose First and for priority choose 500. In the box for the expression you can put "fieldval:abValue = 1". That means "We are satisfied and should add this bootstrap when the abValue field of the bootstrapping thing is 1".

Save and close until you're back to the main window. Now we're going to add the first eval script, the one which fulfills the condition and pulls the target tag. Remember that this needs to take place before the First 500 timing we set on the condition.

First 400
Code:
~ Use findchild to find a deity on this hero and set the focus to it. We don't need anything more than the component because there is never going to be more than one deity present on a hero at any one time.
perform hero.findchild[Deity].setfocus

~ If we didn't find a deity, then we have no focus and should do nothing further.
doneif (state.isfocus = 0)

~ If we got this far, we have a deity, so fulfill our bootstrap condition
field[abValue].value = 1

~ Use the focus previously established and pulltags to transform the WepProf tag on the deity (representative of their favored weapon) into a Target tag on us.
perform focus.pulltags[WepProf.?,Target]

Now the second eval script does need to occur before the Weapon Focus feat does its thing, but doesn't need to be quite as early

First 10000
Code:
~ Find the copy of Weapon focus we marked with a custom tag and set it to be the focus of this script.
perform hero.findchild[BaseFeat,"Custom.DeiWeapFoc"].setfocus

~ If, for some reason, that feat isn't found then do nothing further
doneif (state.isfocus = 0)

~ Push the Target tag we got last eval script from ourselves to the focus
perform focus.pushtags[Target.?]

Usual disclaimer, code not tested, tweak as necessary. Hope that was informative!
 
It doesn't seem to be working for me. I added the user tag. Then I went to Tags and added it there. Then I went to Bootstraps for the feat fWepFoc I added the First 500 Condition fieldval:abValue = 1. Then I added the two Eval Scripts.

I thought maybe it wasn't working since clerics don't actually qualify for WF at 1st level, so I added a second cleric level. Then I thought maybe it was just doing it behind the scenes but not explicitly adding the feat, so I equipped the character with the appropriate weapon to check the attack modifier, but it was unchanged. :/
 
Is it possible to make a copy of the weapon focus feat and use it somehow? Not that that's my preferred solution; I don't care. I'm just wondering. I'm playing around with it, but I don't seem to able to make it work. I know how to add feats to the archetype. For example, I give clerics heavy armor proficiency for free. That's easy, since I just add the feat and there's no checking of any kind required. I could just give clerics WF, but I don't want to; I want them to have to have a deity to get it, and only with the deity's favored weapon.
 
I've decided to do something different. I'm just going to give them the feat and require they have a deity if they want to take this archetype, since it's my game. However, I would like to disable the error message about them not meeting the prerequisite for the feat (since at 1st level, a cleric's BAB isn't high enough to take Weapon Focus). I want Hero Lab to ignore this error, ignore the prereq for the feat. How do I do that?
 
Never mind. I just made new feats and blew away the prereqs. I think what I have will work. Thank you very much though.
 
Is there a way to make a new feat so that it doesn't even show up in the feat list? That is, have a feat that's basically invisible except to the class/archetype you assign it to?
 
I see how to make the feat valid only for a specific class. Now what I want to do is make it only valid for a specific archetype.
 
I see how to make the feat valid only for a specific class. Now what I want to do is make it only valid for a specific archetype.
You can just use the macro #hasarchetype[].

Code:
#hasarchetype[XXXXXXXX] <> 0

Where XXXXXXX is the unique ID of your archetype. Place the above into a "Expr-reqs" section.
 
Back to your earlier question, so that you don't have to make a new version of this feat, I'd recommend going to the Class Specials tab in the editor, and make a copy of an ability called "Deflect Arrows (bonus feat)" (it's from the Duelist prestige class). Once you've copied it, look at the Bootstraps button at the top right - you'll see, when looking at the bootstrap added by this ability, that the "Tags" button is lit up - take a look at what tag this adds. By adding the same tag when you bootstrap your bonus feat, you'll skip the prereqs.
 
Last edited:
Back
Top