• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Getting at a hero's natural weapon in the editor

CNYGamer

Well-known member
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
   [COLOR="Red"]<Set the value of wBeak.DamageOver to aDEX>[/COLOR]
   perform assign[Helper.ChgDisab2]
endif
if (field[abilAct2].value <> 0) then
   [COLOR="red"]<Clear out the value of wBeak.DamageOver>[/COLOR]
   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
 
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
 
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
      [COLOR="Red"]<Remove Beak from visibility in the weapon section>[/COLOR]
   endif
endif
 
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
      [COLOR="Red"]<Remove Beak from visibility in the weapon section>[/COLOR]
   endif
endif
Try assigning the tag "Hide.Weapon" to the wBeak Pick. Assuming that logic came over from Pathfinder that will hide the weapon from display UI and the printed character sheet.
 
Back
Top