• 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 Damage Type

blzbob

Well-known member
I have a feat that says:

When you channel energy, you may choose to make an attack roll against all creatures in range. This attack roll has an attack bonus of your base attack bonus plus your Wisdom modifier. Any creature hit by this attack takes weapon damage equal to 1d4 per channeling die, of a type matching damage dealt by your deity’s favored weapon (bludgeoning, piercing or slashing).You are unaffected by this channel damage.

Is there a way to have it list the damage type based on the deity's favored weapon?
 
It'd be possible. First you'd have to check the WepProf tag on the deity pick, using that you'd then be able to do a foreach thing, and pull the damage type tag to the pick running the eval script, and then you can have your ability set the livename based on that tag.
 
Can you point me to a similar ability that I can try to mimic? Off the top of my head I can't think of anything. I'm not very good at the scripts unless they are very simple.
 
I've been trying to figure this out but I can't seem to even get started. I don't have any idea how to do that at all.
 
Sorry blzbob. I'll try and work up an example tomorrow, but I am about to crash for the night.
 
I know that you are all busy and that this is just a small part of what you do. I appreciate the help and I don't ever want to come across as bugging you all.
 
Sorry I never answered your PM blzbob. :(

Anyways here is the finished script running at Final/10000:

Code:
[B][COLOR="DarkGreen"]~ If we're disabled, do nothing[/COLOR][/B]
doneif (tagis[Helper.FtDisable] <> 0)

var searchexpr as string
var names      as string

[B][COLOR="DarkGreen"]~ Create a Search Expression based on the Weapon Proficient tags that are
~ attached to the selected Deity.[/COLOR][/B]
searchexpr = hero.findchild[Deity].tagids[WepProf.?,"|"]

[B][COLOR="DarkGreen"]~ Do a search for these weapons as Things. Not as Picks. This means the weapons
~ have not been selected yet by a user.[/COLOR][/B]
foreach thing in BaseWep where searchexpr
[B][COLOR="DarkGreen"]   ~ Pull all the Weapon Type Tags to our self. So that if the weapon is a 
   ~ Slashing weapon then the tag wType.S will be set onto our self.[/COLOR][/B]
   perform eachthing.pulltags[wType.?]
nexteach

[B][COLOR="DarkGreen"]~ Generate a list of the tagnames from the Weapon Types that we
~ assigned to our self. So that a wType.S will give us "Slashing".[/COLOR][/B]
names = tagnames[wType.?,","]

[B][COLOR="DarkGreen"]~ Change the live name to combine this feats ThingName and the name
~ of the weapon damage type.[/COLOR][/B]
field[livename].text = field[thingname].text & " (" & names & ")"

Pretty much the script does exactly what Aaron said above. I added allot of comments to help explain what the script is doing. Hope it helps. :)
 
Last edited:
Thank you both very much. I know that you all have plenty of things to do and taking the time to explain how a certain script works will help me out quite a bit.

Shadow, I just want to make sure that when I send you a file it's as complete as possible. I don't want you to have to keep providing updates as I correct errors or add features as I figure them out.

I'm going to add this script as soon as HL is done updating to 8.11.
 
Back
Top