Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Scripting question (http://forums.wolflair.com/showthread.php?t=61034)

Greylin August 6th, 2018 02:52 PM

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

Kendall-DM August 6th, 2018 04:46 PM

Try adding it as a penalty (if there is one) as #competencepenalty.

Greylin August 8th, 2018 03:37 PM

Unspecified scripting error. :(

Sendric August 9th, 2018 11:23 AM

Quote:

Originally Posted by Greylin (Post 269013)
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

Greylin September 15th, 2018 09:48 AM

Thank you, that did the trick!


All times are GMT -8. The time now is 09:19 AM.

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