• 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

Dragonborn Variant issues.

Enforcer84

Well-known member
So I'm futzing around with u/colinHasInvaded's dragonborn variant. I've done a pretty good job of getting this stuff to work, but I've run into two problems.

Problem One:
The draconic armor feature lets you choose dex or con as your ac bonus attribute. There is a list for Natural AC bonuses but I'm not sure how to get it to let you choose. If I check both I'm assuming it gives you both...so I wanted to use an array to choose them and then activate the one that you chose...

My first incorrect attempt was an else if like the attribute bonus script. But I'm getting things wrong. I also thought I'd just check the Dex as default and if you chose Constitution option it would change it.

if (field[usrChosen1].ischosen = 1) then
hero.child[ArmorClass].field[CalcAC].value = ConMod
endif

That did nothing. So I hid it while I fretted some more.


My other problem, is one of the optional sub races replaces this armor race ability. I tried to set the tags in the subrace and in a racial special to:
Group Id: RaReplace and Tag Id: name of ability but this doesn't work perhaps it only works for Variant abilities?
 
The variant racial trait Thing has boxes for AC calculation. What you’ll want to do is set up an Array-based menu with Dex and Con as your options for what your AC is based on. If they select the first option, it’ll set a field called usrIndex to 0, and if they select the second drop down option, usrIndex will equal 1.

Check the box for “Armor Class Calculation” and in the AC modifiers menu, check “Constitution Modifier.” You’ll see that these add the Helper.ArmorClass and CalcAC.ConMod tags respectively.

Uncheck them, so they’re not on by default. Then your code should check for that usrIndex field. If it’s the selection for DEX, don’t do anything since that’s the default. If it’s selecting CON, perform.assign each of those tags.

As far as the feature that cancels it goes, just have the code also check to make sure that’s not present on the hero. So doneif (hero.childlives[IDofTheSubraceFeature] <> 0)

Now it’ll still show the array even if that subrace feature is present. If you really want to get fancy, use this code to set up the array (instead of having it present by default), with a doneif to prevent the code if that subrace feature is present.

Code:
doneif (hero.childlives[IDofTheSubraceFeature] <> 0)

field[usrArray].arraytext[0] = "Dexterity"
field[usrArray].arraytext[1] = “Constitution"
 
Last edited:
Back
Top