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
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old August 20th, 2017, 04:12 PM
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:
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)

foreach pick in hero from BaseSkill where “thingid.skBluff | thingid.skDiplo | thingid.skSenseMot”
#situational[each,signed(field[abValue].value) & "bonus against aberrations and creatures of the dark tapestry (GM’s judgment).",field[thingname].text]
nexteach
I get an invalid tag expression, but I can't figure out what the correct tag is... I've been looking at other things, but I haven't found a good example of something that does this.

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.
Unseelie is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 20th, 2017, 06:33 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old August 20th, 2017, 10:19 PM
Quote:
Originally Posted by ShadowChemosh View Post
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]
Thanks.

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.
Unseelie is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 21st, 2017, 01:02 PM
Quote:
Originally Posted by Unseelie View Post
Thanks.

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.
Mathias did a nice Article called "location location location". This covers such concepts as hero.child[] and transitioning to different Picks.

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.
ShadowChemosh is offline   #4 Reply With Quote
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old August 21st, 2017, 05:19 PM
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.
Unseelie is offline   #5 Reply With Quote
Mystic Lemur
Senior Member
 
Join Date: Aug 2013
Location: Alabama
Posts: 254

Old August 21st, 2017, 10:14 PM
You can totally accelerate a Youtube video. It's in the same Settings menu where you can select a different playback quality.
Mystic Lemur is offline   #6 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 08:14 PM.


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