Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
saintaurik
Member
 
Join Date: Oct 2013
Posts: 46

Old March 30th, 2023, 10:00 AM
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?

Last edited by saintaurik; March 30th, 2023 at 10:01 AM. Reason: typo
saintaurik is offline   #1 Reply With Quote
Dami
Senior Member
 
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,089

Old March 30th, 2023, 10:53 PM
That macro has to be in the format:
#competencebonus[pick, bonus]

Without checking I'd say that should be:
#competencebonus[hero.child[kListen], -1]

Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew).
HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP).

DM and player of D&D since 1980.

Last edited by Dami; March 30th, 2023 at 10:56 PM.
Dami is offline   #2 Reply With Quote
saintaurik
Member
 
Join Date: Oct 2013
Posts: 46

Old April 1st, 2023, 12:27 PM
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?
saintaurik is offline   #3 Reply With Quote
Dami
Senior Member
 
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,089

Old April 1st, 2023, 05:07 PM
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.

Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew).
HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP).

DM and player of D&D since 1980.
Dami is offline   #4 Reply With Quote
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 464

Old April 2nd, 2023, 03:56 AM
Timing of your script?
Lord Magus is offline   #5 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old April 2nd, 2023, 06:09 AM
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!
   doneif (field[gIsEquip].value <> 1)

   #competencebonus[hero.child[kListen], -1]
Edit: sorry. Apparently I glossed over the original post. could be timing. Make sure you set that to something other than the default. Pre-Attributes / 1000 should work fine.

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.

Last edited by Sendric; April 2nd, 2023 at 06:13 AM.
Sendric is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:13 PM.


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