Member
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59
|
I'm trying to implement the wereraven from Curse of Strahd. I have a beak attack set up as a natural weapon. Depending on which form the wereraven is in, it may get its Dexterity bonus to damage on the beak attack.
So basically, in the wereraven's shapechanger racial special, I have the following script: Code:
if (field[abilActive].value <> 0) then perform assign[Helper.ChgDisab2] endif if (field[abilAct2].value <> 0) then perform assign[Helper.ChgDisab1] endif The beak natural weapon is wBeak. The tag on wBeak that I want to change is DamageOver. If in the hybrid form, DamageOver should be set to aDEX. If in the raven form, it's value should be cleared out completely. In pseudocode, I'm trying to basically do the following (pseudocode in red): Code:
if (field[abilActive].value <> 0) then <Set the value of wBeak.DamageOver to aDEX> perform assign[Helper.ChgDisab2] endif if (field[abilAct2].value <> 0) then <Clear out the value of wBeak.DamageOver> perform assign[Helper.ChgDisab1] endif Thanks! CNYGamer |
#1 |
Member
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59
|
Okay, so I retract the question. I did some reading on tags this afternoon and I see now that I was conceptualizing them wrong. They aren't things you set various values to, they are things you set on other things. So I solved my issue with the following syntax:
Code:
if (field[abilActive].value <> 0) then perform assign[Helper.ChgDisab2] perform hero.child[wBeak].assign[DamageOver.aDEX] endif if (field[abilAct2].value <> 0) then perform assign[Helper.ChgDisab1] perform hero.child[wBeak].delete[DamageOver.aDEX] endif |
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Nice! Good job!
|
#3 |
Member
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59
|
I'm wondering, though, if there is a way to get the Beak attack to disappear from the character sheet altogether if the character is in human form. So something like (pseudocode in red):
Code:
if (field[abilActive].value = 0) then if (field[abilAct2].value = 0) then <Remove Beak from visibility in the weapon section> endif endif |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#5 |
Member
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59
|
|
#6 |
Thread Tools | |
Display Modes | |
|
|