Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
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
CNYGamer
Member
 
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59

Old May 15th, 2016, 03:32 PM
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
CNYGamer is offline   #2 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old May 16th, 2016, 04:42 PM
Nice! Good job!
Aaron is offline   #3 Reply With Quote
CNYGamer
Member
 
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59

Old May 17th, 2016, 03:29 PM
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
CNYGamer is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 17th, 2016, 03:44 PM
Quote:
Originally Posted by CNYGamer View Post
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
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.

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.
ShadowChemosh is offline   #5 Reply With Quote
CNYGamer
Member
 
Join Date: Aug 2009
Location: Finger Lakes Region, New York
Posts: 59

Old May 17th, 2016, 04:10 PM
Quote:
Originally Posted by ShadowChemosh View Post
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.
Perfect! That worked nicely. Thanks much.
CNYGamer is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:03 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.