View Single Post
CNYGamer
Member
 
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59

Old May 15th, 2016, 09:45 AM
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
This is ensuring that only one shapechange form can be selected at a time. abilActive is the hybrid form and abilAct2 is the raven form.

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
I haven't really gotten the hang of getting at the various data structures in Hero Lab. Would anyone be able to show me the real code I need in place of the pseudocode above?

Thanks!
CNYGamer
CNYGamer is offline   #1 Reply With Quote