• 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

Implementing Multiattack/Improved Multiattack

Quintain

Well-known member
All,

I'm attempting to port the Improved Multiattack feat from the Draconomicon (3.5) into Pathfinder.

I have the basics down as a copy of much of the existing multiattack feat can be used for the pre-requisites.

Where I'm fuzzy is where in the editor do you apply the reductions to the penalties for secondary weapons? The multiattack feat does this in the same manner (just different values), but I haven't been able to find anywhere that these adjustments are applied so that they are reflected in the character stats.

Any help would be appreciated.
 
For future readers here is the feat:
3.5 said:
Prerequisite Multiattack (MM) , Three natural weapons,
Benefit The usual -5 penalty on attack rolls for secondary attacks does not apply to your secondary attacks with natural weapons. The damage bonus for such attacks is still only 1/2 your Strength bonus, if any.
Normal Without this feat, your secondary natural attacks take a -5 penalty (or a -2 penalty if you have the Multiattack feat).


So really what we want to do is find all the Secondary natural attacks and give a bonus of either +2 or +5 based on if they already have the Multiattack feat. I know they "should" already have that feat as its part of the prereq but I hate to "assume" in coding. Especially when you never know about another Racial Special or Magic item that could be applying the affects of Multiattack.

So first I find if the tag that Multiattack puts on is on the hero and decide if I give a +5 or +2 bonus. Then I look through all weapons but I filter the list by natural weapons and all NOT Primary Attacks. This is because HL puts the tag Helper.NatSecond and Helper.NatPrimary on a Primary attack and only "Helper.NatSecond" on the secondary attacks. So the best way is to use "!" which means NOT a Primary tagged attack.

Then its simply a matter of giving the bonus we decided on at the top of the script to the attack bonus only part of the weapon.


Phase: Pre-Levels Priority: 11000
Code:
~ If we do have Multiattack then only give a +2 bonus
If (Hero.tagis[Hero.MultiAtt] <> 0) Then
   field[abValue].value += 2
~..Otherwise give a +5 bonus so we get the penalty to zero
Else
   field[abValue].value += 5
Endif

~ Loop through All natural Secondary Weapons
foreach pick in hero from BaseWep where "wGroup.Natural & !Helper.NatPrimary"
   ~ Give the bonus to attack only
   eachpick.field[wAttack].value += field[abValue].value
nexteach

Hope that helps
 
Thansk for the assist:

I put Multiattack on a character portfolio that I had under the weapons tab in "other weapons" a Bite and Claw x2 entries.

Now, the improved multiattack is showing as an error. Not exactly sure what the error is, however.

I only had Bite and Claw x2 as weapons (Your adjustments file was used to add them to my character).

Under the wClass and wCategory fields of the natural weapons, they are showing as "Light" and "Melee Weapon".

Could the natural attacks from the ARG be mis-coded as light melee attacks and not tagged as primary/secondary natural attacks?
 
I'd guess the error is in the 3 natural attacks pre-req. You might be counting the claws as 1 attack, rather than checking for the x2 tag on them.
 
Here's the script for checking for the 3 or more natural attacks. It's a direct copy from the multiattack feat:


var total as number
var numattacks as number
foreach pick in hero from BaseNatWep

~ If this weapon uses the number of hands of the race, add that
~ number of attacks
if (eachpick.tagis[Helper.RaceHands] <> 0) then
total += herofield[tNumHands].value

~ Otherwise, add the number of attacks the weapon has, which should
~ always be at least 1
else
numattacks = eachpick.tagmax[Value.?]
numattacks = maximum(numattacks,1)
total += numattacks
endif
nexteach
if (total >= 3) then
@valid = 1
endif
 
Ok, it appears the problem was that I put the above rule in Eval Rules section vs the Eval scripts section.

Once I put it in the eval script section, the error went away.
 
Back
Top