Senior Member
Join Date: Aug 2010
Posts: 576
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
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. |
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 |
#3 |
Senior Member
Join Date: Aug 2010
Posts: 576
|
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.
|
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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!
|
#5 |
Thread Tools | |
Display Modes | |
|
|