Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
I have a feat that says:
Quote:
|
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
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.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
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.
|
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Sorry blzbob. I'll try and work up an example tomorrow, but I am about to crash for the night.
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
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.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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 & ")" 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. |
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
And ShadowChemosh saves the day again! Thanks for the assist, man.
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
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. |
#9 |
|
|