Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Add or Increase Darkvision (http://forums.wolflair.com/showthread.php?t=66555)

DeathSheep November 23rd, 2021 08:29 AM

Add or Increase Darkvision
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?

dungeonguru November 25th, 2021 02: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.

DeathSheep November 28th, 2021 12: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:


    <bootstrap thing="raDarkVis">
      <autotag group="Value" tag="60"/>
      <assignval field="abValue2" value="30" behavior="maximum"/>

dungeonguru November 29th, 2021 10: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.

DeathSheep November 29th, 2021 11:02 AM

Thanks! That did the trick!

All times are GMT -8. The time now is 09:42 AM.

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