• 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

How do I get Stone of Good Luck to add bonus?

dropbear8mybaby

Well-known member
I'm still new to all this and scripting isn't something I'm very good at since I have trouble wrapping my head around it, to be honest. So I've tried a bunch of ways to figure this out but can't get it to work. I've managed to get the +1 to initiative to work by copying some of the scripting from Alert, but can't seem to get the scripting from anything else that adds an ability bonus to work and I'm not sure even why it's not working.
 
In my opinion, the scripting on the Stone of Good Luck was badly design. But that just my opinion.

The skill bonuses from a Luck Stone can be found as Situational bonuses by moving your cursor over the ability score itself.

Personally I'd have applied the bonus to the actual skills.
 
In my opinion, the scripting on the Stone of Good Luck was badly design. But that just my opinion.

The skill bonuses from a Luck Stone can be found as Situational bonuses by moving your cursor over the ability score itself.

Personally I'd have applied the bonus to the actual skills.

It lists it under each ability score on the sheet as well but doesn't add it to the actual skills. Is there any way to switch this so that it adds to all the skills? I just can't figure out how to do it myself otherwise I'd just go ahead with it. I'm not very good at scripting unfortunately and still trying to figure out a lot of HL's functionality, and just sort-of stumbling along blindly with it.
 
Last edited:
Do you know how to use the editor to create copies of things?

If so, create a copy of the Stone of Good Luck in either an existing personal .user file or a new one if you prefer.

Replace the existing Eval Script with the following one:

doneif (field[gIsAttuned].value = 0)

hero.child[svAll].field[Bonus].value += 1
foreach pick in hero from BaseSkill
eachpick.field[Bonus].value += 1
nexteach

hero.child[Initiative].field[Bonus].value += 1

This gets rid of the Situation bonus and adds the bonus directly to the skills themselves. In addition, since Initiative counts as a skill (see Bard, Jack of all Trades) I added that bonus also since HL forgot it.

Also, I added the tagid of the original Stone of Good Luck to the field labeled 'Replaces Thing Id' over on the right. I did this so I wouldn't have 2 copies. The updated version replaces the original.

Let me know if this helps.
 
Back
Top