Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Greylin
Member
 
Join Date: Jul 2014
Posts: 46

Old August 6th, 2018, 01:52 PM
Hi, sorry for the basic question. A minor magical monocle that adds +2 Search, +2 Sense Motive, +1 Intimidate (big scary magnified eye), -1 Diplomacy (big scary magnified eye).

I've cribbed the below from other items in Eval Scripts (Pre-Levels, Priority 5000) but the -1 Diplomacy penalty is not working. Can you help please?

--snip--


if (field[gIsEquip].value <> 0) then

#competencebonus[hero.childfound[kSearch], 2]
#competencebonus[hero.childfound[kSenseMot], 2]
#competencebonus[hero.childfound[kIntim], 1]
#competencebonus[hero.childfound[kDiplomacy],-1]

endif
Greylin is offline   #1 Reply With Quote
Kendall-DM
Spy
 
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220

Old August 6th, 2018, 03:46 PM
Try adding it as a penalty (if there is one) as #competencepenalty.
Kendall-DM is offline   #2 Reply With Quote
Greylin
Member
 
Join Date: Jul 2014
Posts: 46

Old August 8th, 2018, 02:37 PM
Unspecified scripting error.
Greylin is offline   #3 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,144

Old August 9th, 2018, 10:23 AM
Quote:
Originally Posted by Greylin View Post
Hi, sorry for the basic question. A minor magical monocle that adds +2 Search, +2 Sense Motive, +1 Intimidate (big scary magnified eye), -1 Diplomacy (big scary magnified eye).

I've cribbed the below from other items in Eval Scripts (Pre-Levels, Priority 5000) but the -1 Diplomacy penalty is not working. Can you help please?

--snip--


if (field[gIsEquip].value <> 0) then

#competencebonus[hero.childfound[kSearch], 2]
#competencebonus[hero.childfound[kSenseMot], 2]
#competencebonus[hero.childfound[kIntim], 1]
#competencebonus[hero.childfound[kDiplomacy],-1]

endif
The Bonus fields cannot drop below zero. I don't know if there's an equivalent macro for applying to the penalty fields, but you can sub in that last line with this:

Code:
hero.childfound[kDiplomacy].field[PenComp].value -= 1
Sendric is offline   #4 Reply With Quote
Greylin
Member
 
Join Date: Jul 2014
Posts: 46

Old September 15th, 2018, 08:48 AM
Thank you, that did the trick!
Greylin is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

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 02:48 AM.


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