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
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 65

Old November 23rd, 2021, 09:29 AM
I've seen this brought up a few times, but haven't seen a working answer yet. I want to create an ability that checks for Darkvision. If you don't have it, then it gives you 60' Darkvision. If you do have it, then it increases Darkvision by 30'. Has anybody come up with a way to do this?
DeathSheep is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 604

Old November 25th, 2021, 03:31 PM
I think you're looking to start at this thread.

Basically Darkvision thing looks for two field values -- abValue and abValue2

abValue is the base distance granted
abValue2 is used to extend existing Darkvision

There are some cases where having a high abValue on an item that exceeds the character's existing darkvision abValue causes a math error that requires more logic in any scripting. I think this logic might have went into the Dragon Masks but I'm not sure.
dungeonguru is offline   #2 Reply With Quote
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 65

Old November 28th, 2021, 01:50 PM
So everything can be encapsulated in the bootstrap for Darkvision and you don't have to do anything further in eval scripts? Like this:

Code:
    <bootstrap thing="raDarkVis">
      <autotag group="Value" tag="60"/>
      <assignval field="abValue2" value="30" behavior="maximum"/>
      </bootstrap>
DeathSheep is offline   #3 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 604

Old November 29th, 2021, 11:15 AM
I think that's the way the .user file looks - I just fill out fields in the editor and don't think I've used the behavior modifier on the field.

I tried to do some deeper digging but since a lot of the senses logic is hidden to us that's about all I learned.
dungeonguru is offline   #4 Reply With Quote
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 65

Old November 29th, 2021, 12:02 PM
Thanks! That did the trick!
DeathSheep is offline   #5 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 04:13 PM.


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