Sofus Posted October 2, 2006 Share Posted October 2, 2006 I have a "scripting problem". I am trying to script a sensible use for the otherwise worthless spell "Shillelagh" And since Jaheira has been yelling "Weapon has no effect !" for weeks now - I never bothered getting her a +something weapon - I was thinking that would be a perfect criteria for using Shillelagh. So the question is. How do I Detect that ? Either the "weapon has no effect" or just the fact that I'm using a non magical weapon. The only thing I can think of, is either a load of specific HasItemEquiped() for each non magical weapon in the game, or some advanced calculation based on proficiency and damagebonus checks. Using one of the 3 damagebonus stats from stats.ids doesn't work on its own, since the returned value includes bonuses from proficiencies and basestats. And doing HasItemEquiped() wouldn't tell me if I was actually using the weapon, but only if it was in a quickslot (as far as i know.) Any ideas ? Link to comment
This topic is now archived and is closed to further replies.