Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   help with script (http://forums.wolflair.com/showthread.php?t=60815)

Kaleb June 20th, 2018 03:19 PM

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

Mathias June 20th, 2018 04:22 PM

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.

Aaron June 20th, 2018 06:29 PM

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


Kaleb June 20th, 2018 09:30 PM

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.

Aaron June 21st, 2018 05:11 AM

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.