• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Eval script help

Unseelie

Well-known member
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).

~ 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. :)
 
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]
 
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.
 
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. :)
 
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.
 
You can totally accelerate a Youtube video. It's in the same Settings menu where you can select a different playback quality.
 
Back
Top