• 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

Check for feats from within item container

willuwontu

Well-known member
Right now I'm remaking an item power called splitting (imported from 3.5) which does

Code:
Any missile fired from a splitting weapon, or an arrow or bolt enchanted with the splitting ability, breaks into two identical missiles before striking the intended target.
V-shaped engravings adorn a splitting weapon or splitting ammunition.
The splitting ability of a ranged weapon (must be a bow, crossbow, arrow, or bolt) only functions if its wielder has the Precise Shot feat.
Any arrow or bolt fired from a splitting weapon magically splits into two missiles in mid-flight. Both missiles are identical, sharing the nonsplitting properties of the original missile; for example, a +1 splitting arrow splits into two +1 arrows in mid-flight. Both missiles strike the same target. Make a separate attack roll for each missile using the same attack bonus.

Code:
if (#hasfeat[fPointBlnk] > 0) then
	if (hero.child[Attack].field[tAtkBase].value >= 5) then
		perform parent.assign[Helper.ExtraRanHi]
	endif
	if (hero.child[Attack].field[tAtkBase].value >= 10) then
		perform parent.assign[Helper.ExtraRanHi]
	endif
	if (hero.child[Attack].field[tAtkBase].value >= 15) then
		perform parent.assign[Helper.ExtraRanHi]
	endif
endif

The issue is that even though my test hero has the feat, it's not showing up. when i test without the requirement it works fine

I've also tried this too

Code:
doneif (hero.tagis[HasFeat.fPointBlnk] = 0)

	if (hero.child[Attack].field[tAtkBase].value >= 5) then
		perform parent.assign[Helper.ExtraRanHi]
	endif
	if (hero.child[Attack].field[tAtkBase].value >= 10) then
		perform parent.assign[Helper.ExtraRanHi]
	endif
	if (hero.child[Attack].field[tAtkBase].value >= 15) then
		perform parent.assign[Helper.ExtraRanHi]
	endif

Any idea on what would be causing the issue and what i could do to fix it?
 
"The splitting ability of a ranged weapon (must be a bow, crossbow, arrow, or bolt) only functions if its wielder has the Precise Shot feat"

So while you can add the ability the ability only works if you have the feat.

Final 9500
 
Last edited:
Back
Top