Member
Join Date: Feb 2012
Posts: 95
|
ive been trying to get a mount to apply resistance to cold to its rider. got close but as of yet still generating errors.
ive tried both of the following: #applybonus[hero.master.child[xDamRsCold], 10] and hero.master.child[xDamRsCold].field[abValue].value = 10 got further with the second attempt as it compiled without error, however when adding the mount herolab generates an error stating that the field doesn't exist. does any one have an idea on this? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
The transition is slightly wrong. Remove the "hero" from it and it should work:
Code:
#applybonus[master.child[xDamRsCold], 10] Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Member
Join Date: Feb 2012
Posts: 95
|
that reports a syntax error in eval script for thing, incorrect parameter count for macro reference in script.
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
ShadowChemosh was just modifying what you gave him, so his still included your error - #applybonus needs three entries, not the two you gave it. Also, #applydr is the correct macro to use for applying a DR, not #applybonus.
The macros won't work in this case, though, because they're usually not set up to allow transitions other than hero. You'll need to write out the full code: Code:
master.child[cDamRsCold].field[abValue].value = maximum(master.child[cDamRsCold].field[abValue].value, 10) |
#4 |
Member
Join Date: Feb 2012
Posts: 95
|
Quote:
|
|
#5 |
|
|