Scripting question
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 |
Try adding it as a penalty (if there is one) as #competencepenalty.
|
Unspecified scripting error. :(
|
Quote:
Code:
hero.childfound[kDiplomacy].field[PenComp].value -= 1 |
Thank you, that did the trick!
|
All times are GMT -8. The time now is 10:46 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.