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
peterphonic
Member
 
Join Date: Aug 2014
Posts: 44

Old September 9th, 2014, 05:11 PM
Hello,

In the following script :

#situational[hero.childfound[ArmorClass],"+ wisdom modifier in deflection bonus",field[thingname].text]

I would like to see the exact bonus, instead of "+ wisdom modifier"

Is is possible to add the value of the wisdom modifier directly into my string?

I tried something like :
#situational[hero.childfound[ArmorClass], "+ hero.child[aWIS].field[aBonus].value in deflection bonus", field[thingname].text]

But this does not work indeed!

Thank you
peterphonic is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 9th, 2014, 05:40 PM
First, you appear to just be adding your wisdom mod to a deflection bonus in which case you would do something like

Code:
field[abValue].value += #attrbonus[aWIS]
#applybonus[tACDeflect, hero.child[ArmorClass], field[abValue].value
but to apply it as a situational you would do

Code:
field[abValue].value += #attrbonus[aWIS]

#situational[hero.child[ArmorClass], signed(field[abValue].value) & " in deflection bonus", field[thingname].text]
note how you use the & to combine the value with the string that's in quotes.

timing also needs to be Post-Attributes

Last edited by AndrewD2; September 9th, 2014 at 07:05 PM.
AndrewD2 is offline   #2 Reply With Quote
peterphonic
Member
 
Join Date: Aug 2014
Posts: 44

Old September 10th, 2014, 03:04 PM
Thx, this works perfectly!
peterphonic is offline   #3 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 10:45 AM.


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