help with script
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) |
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!
|
All times are GMT -8. The time now is 01:20 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.