Creating a penalty to a skill
I'm trying to create a magic item that when equipped gives a penalty to a skill. The skill in question is Listen. I tried to mess around with things but I just am not getting the proper coding. Here is what I tried.
if (field[gIsEquip].value <> 0) then #competencebonus[hero.child[kListen].field[Pentaly].value -= 1] endif The error I am getting says incorrect parameter count for macro reference. Does anyone know what I might be doing wrong for this to not work? |
That macro has to be in the format:
#competencebonus[pick, bonus] Without checking I'd say that should be: #competencebonus[hero.child[kListen], -1] |
Thanks Dami for helping. It does compile however it does not give the penalty to the listen skill when the item is equipped. Maybe I am missing a setting or something?
|
Maybe it doesn't like the penalty... or something else on the character already gives a Listen competence bonus. I can't find an item in d20 to use as a reference - if you can think of any item that applies a penalty, try looking at how that's coded.
|
Timing of your script?
|
Are you including a line of code to only activate if the item is equipped? The entire script should look like this:
Code:
~ If not equipped get out now! Also make sure there aren't other competence penalties being applied by other things as they won't stack. If it still won't work, please provide the data file and I'll take a look. |
All times are GMT -8. The time now is 04:20 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.