Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
doneif (hero.tagis[source.WiSRules] = 0)
~ We're an NPC, and subject to feat taxes, so we're done
doneif (hero.tagis[WiSRules.PayFeatTax] <> 0)
~ Check if we're a Kapenia Dancer, and bail out if not
doneif (hero.tagcount[ClassVary.arMagKapen] = 0)
perform hero.child[fwsWepFoc].assign[thing.skipprereq]
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen + tagis[GTarget.?] = 0)
~get the wFtrGroup tag from our choice or GTarget tag
if (tagis[GTarget.?] <> 0) then
perform this.pulltags[GTarget.?,wFtrGroup]
else
perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
endif
~if we didn't find a wFtrGroup tag, there's nothing more we can do
doneif (tagis[wFtrGroup.?] = 0)
~ Get the list of weapons in the group.
var searchexp as string
searchexp = tagids[wFtrGroup.?,"|"]
~ Tag the hero has having weapon focus for each weapon
~ in order to satisfy pre-requisites for feats that
~ require weapon focus with a specific weapon.
foreach thing in BaseWep where searchexp
if (eachthing.tagis[WepFocus.?] <> 0) then
perform hero.assignstr[eachthing.tagids[WepFocus.?, ","]]
endif
nexteach
~ Iterate through the weapons currently in the hero's possession
~ and apply the bonus to those that the hero is proficient with.
foreach pick in hero from BaseWep
var proceed as number
proceed = 0
~ Must be part of this weapon group.
if (eachpick.tagmatch[wFtrGroup,wFtrGroup,initial] <> 0) then
proceed += 1
endif
~ Hero must be proficient with the weapon.
if (eachpick.tagcount[Helper.Proficient] <> 0) then
proceed += 1
endif
~ Yay, passed both tests. Award them their shiny +1.
if (proceed > 1) then
perform eachpick.assign[Broadcast.WepFocus]
endif
nexteach
~ Finally, tag the hero as having group weapon focus.
var boundary as number
var group as string
boundary = pos(searchexp, ".") + 1
group = mid(searchexp, boundary, length(searchexp))
perform hero.assignstr["WepGFoc." & group]
Invalid syntax for tag template
Location: 'eval' script for Thing 'fwsWepFoc' (Eval script #1) near line 32
Invalid tag expression specified for 'foreach' statement
Location: 'pre-requisite rule' script for Thing 'fCoverFirV' near line 9
var tagexpr as string
if (hero.tagis[WepFocus.?] <> 0) then
tagexpr = "wCategory.Firearm & (" & hero.tagids[WepFocus.?] & ")"
else
@valid = 0
done
endif
foreach thing in BaseWep where tagexpr
@valid = 1
nexteach
debug "Tag expression is: " & tagexpr
Tag expression is: wCategory.Firearm & (WepFocus.wAasenMort,WepFocus.wMHAirPist,WepFocus.wMHAirRifl,WepFocus.wArcPistol,WepFocus.wArcRifle,WepFocus.wAutograpn,WepFocus.wAxeMusket,WepFocus.wBlunderbu,WepFocus.wBombardHv,WepFocus.wBombardLt,WepFocus.wBombardSt,WepFocus.wBuckGun,WepFocus.wCannon,WepFocus.wCannFiend,WepFocus.wGRCannGre,WepFocus.wGRCannHvy,WepFocus.wGRCannLgt,WepFocus.wGRCannSct,WepFocus.wMHHKMP5,WepFocus.wMHHKMP5K,WepFocus.wMHM4Carbi,WepFocus.wMHUzi,WepFocus.wCulverin,WepFocus.wDartGun,WepFocus.wDeathRay,WepFocus.wDblHackbu,WepFocus.wGRDragon,WepFocus.wDragMuske,WepFocus.wDragPisto,WepFocus.wEMPPistol,WepFocus.wEMPRifle,WepFocus.wFirelance,WepFocus.wMHFlameth,WepFocus.wFlaTh1917,WepFocus.wMHFlareGn,WepFocus.wFlareGun,WepFocus.wMPBBGatgn,WepFocus.wGRGorgon,WepFocus.wGravPisto,WepFocus.wGravRifle,WepFocus.wMHM792,WepFocus.wGRHarpy,WepFocus.wHotchkiss,WepFocus.wIdRifle,WepFocus.wInfPistol,WepFocus.wLasPistol,WepFocus.wLasPist2,WepFocus.wLaserRifl,WepFocus.wLMGMadsen,WepFocus.wMHM2HB,WepFocus.wMHM60,WepFocus.wMHTTMG,WepFocus.wGRMedusa,WepFocus.wMHNetLaun,WepFocus.wMHPntBlGn,WepFocus.wMHBer92F,WepFocus.wMHBer93R,WepFocus.wMHCM1911,WepFocus.wMHCDE10mm,WepFocus.wMHDerring,WepFocus.wMHDestEgl,WepFocus.wMHFalcon4,WepFocus.wMHGlock17,WepFocus.wMHGlock20,WepFocus.wMHMAC10,WepFocus.wMHSITESM9,WepFocus.wMHSkorpin,WepFocus.wMHTEC9,WepFocus.wMHWalPPK,WepFocus.wGRPrivate,WepFocus.wMHCPython,WepFocus.wMHPathfin,WepFocus.wMHRugerSv,WepFocus.wMHSWM29,WepFocus.wMHAK47,WepFocus.wMHBarLtFy,WepFocus.wMHHKG3,WepFocus.wMHHKPSG1,WepFocus.wMHM16A2,WepFocus.wMHOICW,WepFocus.wMHRem762,WepFocus.wMHSterAUG,WepFocus.wMHTACMIL,WepFocus.wMHWinch94,WepFocus.wMSRDConcs,WepFocus.wMSRDCryon,WepFocus.wMHLAW,WepFocus.wMHBene121,WepFocus.wMHBerM3P,WepFocus.wMHBrnBPS,WepFocus.wMHMoss12G,WepFocus.wMHSawShot,WepFocus.wMPSCEGRSG,WepFocus.wMHSkFmSpr,WepFocus.wGRStinger,WepFocus.wMHSpWatGn,WepFocus.wGRSwivGun,WepFocus.wMHTaser,WepFocus.wGRTitan,WepFocus.wMHWaterCn)
Tag expression is: wCategory.Firearm & (WepFocus.wBlunderbu)
Tag expression is: wCategory.Firearm & (WepFocus.wBlunderbu,WepFocus.wLance)
I've noticed recently that when I equip a shield an ACP is being applied to my attacks as if I'm not proficient with it. It happens when I use the first 2 option in the newest update.
Melee -2 = +0 (BAB) +2 (dexterity mod) -2 (ACP from armor) -2 (ACP from shield)
Melee -2 = +0 (BAB) +2 (dexterity mod) -2 (ACP from armor) -2 (ACP from shield)