• 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

Scripting question

Greylin

Well-known member
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
 
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
 
Back
Top