View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

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 online now   #4 Reply With Quote