• 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

help with script

Kaleb

Well-known member
I am trying yo get an untyped bonus for the following script what am I doing wrong

preattributes 7000
if (field[gIsEquip].value <> 0) then
#bonus[hero.childfound[skAcrobat], 15]
#bonus[hero.childfound[skStealth], 15]
endif
 
Do you mean #applybonus[], rather than #bonus[]?


But you say you want an untyped bonus, so why add it using the macro for non-stacking bonuses? Why not just add it in - unless you have an ability with very specific rules, untyped bonuses normally stack with each other.
 
The #skillbonus macro is also an option. It only has one parameter, the unique ID of the target skill, because it applies an untyped bonus (which as Mathias noted, stacks with other untyped bonuses).

PreAttr 7000
Code:
doneif (field[gIsEquip].value = 0)

#skillbonus[skAcrobat] += 15
#skillbonus[skStealth] += 15
 
It was the first time I tried using a untyped bonus and I thought untyped bonuses stack with all other bonuses. I used the #enhancementbonus macro and it worked fine and just adjusted the price of the magic item to reflect the slightly less performance of the item.
 
Untyped bonuses do stack with all other bonuses, so you shouldn't use #applybonus with them (because that only applies the higher of the specified bonus or the pre-existing bonus). Hope that clarifies things!
 
Back
Top