Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old March 1st, 2014, 11:58 PM
I have a feat that says:

Quote:
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?
blzbob is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 3rd, 2014, 05:21 AM
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.
Aaron is offline   #2 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old March 3rd, 2014, 08:29 PM
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.
blzbob is offline   #3 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old March 10th, 2014, 05:46 PM
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.
blzbob is offline   #4 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 10th, 2014, 08:29 PM
Sorry blzbob. I'll try and work up an example tomorrow, but I am about to crash for the night.
Aaron is offline   #5 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old March 10th, 2014, 09:52 PM
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.
blzbob is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 11th, 2014, 01:26 PM
Sorry I never answered your PM blzbob.

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

Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

var searchexpr as string
var names      as string

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

~ Do a search for these weapons as Things. Not as Picks. This means the weapons
~ have not been selected yet by a user.
foreach thing in BaseWep where searchexpr
   ~ 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.
   perform eachthing.pulltags[wType.?]
nexteach

~ 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".
names = tagnames[wType.?,","]

~ Change the live name to combine this feats ThingName and the name
~ of the weapon damage type.
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.

Last edited by ShadowChemosh; March 11th, 2014 at 01:30 PM.
ShadowChemosh is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 11th, 2014, 02:13 PM
And ShadowChemosh saves the day again! Thanks for the assist, man.
Aaron is offline   #8 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old March 11th, 2014, 08:40 PM
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.
blzbob is offline   #9 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:20 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.