Senior Member
Join Date: May 2016
Posts: 608
|
Could use some help figuring this one out.
In some of the new materials, warlocks with Devil's Sight get the ability to see in magical darkness and the statblock reads: Senses darkvision 120 ft. (penetrates magical darkness) I've been able to figure out darkvision regenerates its name string at Render 10000, so I put the following in Render 15000 and it works everywhere but on the Race tab under Racial Abilities (although hitting the ? button shows correct as does the printing). Code:
hero.child[raDarkVis].field[livename].text = replace(hero.child[raDarkVis].field[livename].text, ")", ", penetrates magical darkness)", 1) hero.child[raDarkVis].field[sbName].text &= " (penetrates magical darkness)" hero.child[raDarkVis].field[shortname].text &= " (penetrates magical darkness)" |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Pretty sure that section of the UI pulls the name from field[thingname].text not the livename field. Meaning it can't be changes via scripts.
If you really want to make that change you can affect a Things name but remember this actually changes the Things name not the pick. Code:
perform state.thing[raDarkVis].amendthing[name,"Darkvision (penetrates magical darkness)"] I don't honestly recommend it as it can really mess with most scripts "assumptions" of what Darkvision name is. Last thing is if you wanted to add more "text" for what Penetrates magical dankness does you can add text to "DescAppend" field on the Pick. Code:
hero.childfound[raDarkVis].field[shortname].text &= "{b}Penetrates Magical Darkness:{/b} Blah blah blah blah" 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. |
#2 |
Senior Member
Join Date: May 2016
Posts: 608
|
Thanks for the tips on child vs. childfound. I hadn't thought of the case of adding another source of darkvision to the monsters but anything is possible.
I tried to make a copy of Darkvision but LW has some references to a "Darkvis sortas" that doesn't copy over and I'm not sure how that is defined or if I really want to keep barking up that tree given diminishing return on investment at this point. |
#3 |
|
|