Lone Wolf Development Forums  

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


Thread Tools Display Modes
Junior Member
Join Date: Jun 2018
Posts: 9

Old June 1st, 2020, 08:41 AM
I'm trying to script the Shadow Sentinel Feat into Hero Lab. This is the description of the Feat:

Prerequisites: Proficient with Stealth skill, proficient with at least one martial weapon, Dexterity 17 or higher, must have either the Uncanny Dodge class feature or the ability to attack more than once when you take the Attack action on your turn without using a bonus action

You defend a persecuted culture in which stealth is not merely part of your arsenal, but the backbone of your martial traditions. Whether you are a gloaming guardian of the dusk elves, a Vistani whose defensive precision protects your kin from outsiders prejudiced by false stereotypes, a crag dwarf or deep gnome in a besieged settlement, or a ruthless halfling nomad of the desert wastes, you train at moving unseen not for cowardly purposes, but as an honored champion of your people. This feat confers the following benefits:

You learn the minor illusion and prestidigitation cantrips if you don’t already know them.

You gain darkvision within 60 feet. If you already have darkvision, its range increases by 60 feet.

When you take the Dodge action on your turn, an indistinct shadow obscures you. Within the space in which you end that turn, bright light becomes dim light, and dim light becomes darkness until the end of your next turn. Anything within darkness created by this effect is heavily obscured.

If you hit more than once with a weapon attack against the same target during your turn, on the second hit, you can choose for the area around the target struck to darken, as if with twilight. Within a 5 feet sphere centered on the target, bright light becomes dim light, and dim light becomes darkness until the end of your next turn. The target must make a Wisdom save (DC = 8 + your proficiency bonus + your Dexterity modifier) or have its speed reduced by half until the end of its next turn. Anything within darkness created by this effect is heavily obscured.

I set the cantrips as Spell-Like Abilities, but I suspect there is a more elegant way to do this.

When I try to set the Darkvision, I am using this script:

~ If darkvision Thing lives then process
if (hero.childlives[raDarkVis] <> 0) then
~ If we already have a darkvision value then increase by 60 otherwise set to 60
if (hero.child[raDarkVis].field[Value].value > 0) then
hero.child[raDarkVis].field[Value].value += 60
hero.child[raDarkVis].field[Value].value = 60

However it says the field 'Value' is non-existent.

Finally, I'm not sure how to require the martial weapon, and the Uncanny Dodge/multiple attack prerequisite.

Overall I'm a little out of my depth for such a complicated Feat, so I'm turning to the forum for some advice.

Thanks so much!

Last edited by DeathSheep; June 1st, 2020 at 08:44 AM.
DeathSheep is offline   #1 Reply With Quote
Senior Member
Join Date: May 2016
Posts: 602

Old June 1st, 2020, 10:52 AM
You can always look at how the forest gnome adds the minor illusion cantrip or how the Illusionist adds the cantrip, both are code in the community pack.

For darkvision, the fields to use are abValue and abValue2, this thread has a discussion about it and which ones to use and why. Basically abValue is the field for the base range, abValue2 is for the extension amount.

The eval rules you would need to find out proficiency are really complex. For the class features you can look at the feat Martial Adept from the community, it shows how that feat looks for the Superiority Dice feature and shows how to set the DC for this ability.

Finding out if someone is proficient with a martial weapon is two checks, one easy, one complex.
The easy:
Check to see if the hero has ArmProfGrp.WepMartial tag - if they do, they are proficient in all martial weapons and no need to search further.

The hard:
Grab all the WepProf.??? tags from the hero. Loop through all BaseWep things and when one matches one of those tags you just grabbed, check to see if it also has the wProfReq.Martial tag. If it does, you are proficient in a martial weapon and you can mark this feat valid.

The hard part would be something to put into a procedure like the one that checks if you're able to cast spells (5CHasSpells I think).
dungeonguru is offline   #2 Reply With Quote

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:13 AM.

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