Senior Member
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257
|
I'm trying to write an eval script that gives a bonus to several skills, but it is conditional based on the type of the target (bonus to bluff vs aberrations, for example).
Quote:
My thinking is that it's something that shouldn't actually add to the skills on the sheet, but should be listed as a special condition for a reminder. Clearly I'm off in the weeds at this point. Any help would be appreciated... even if all you can do is point me in the correct direction. |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I would go a little different to leave out the foreach loop. Just too CPU expensive for three skills.
Try this: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.SpcDisable] <> 0) var Text as string ~ Build Text String once Text = signed(field[abValue].value) & " bonus against aberrations and creatures of the dark tapestry (GM’s judgment)." ~ Set situational text onto Bluff, Diplomacy and Sense Motive. #situational[hero.childfound[skBluff],Text,field[thingname].text] #situational[hero.childfound[skDiplo],Text,field[thingname].text] #situational[hero.childfound[skSenseMot],Text,field[thingname].text] 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: Jul 2009
Location: Saratoga, CA
Posts: 257
|
Quote:
For my education, where could I have found the hero.childfound(skill) concept. Is there something I can look at so as to grok how to do this sort of stuff better? I've been watching the tutorials when I can... I wish you could accelerate youtube videos... I just don't have the patience to listen while staring at the screen recording for two hours. |
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#4 |
Senior Member
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257
|
I'm curious. I see under 'Racial Special Ability' something called Situational (skill) Bonus. What is that actually for? I did try using it, and despite setting it for +2, it showed in special as Situational Bonus +0.
|
#5 |
Senior Member
Join Date: Aug 2013
Location: Alabama
Posts: 254
|
You can totally accelerate a Youtube video. It's in the same Settings menu where you can select a different playback quality.
|
#6 |
|
|