Junior Member
Join Date: May 2014
Posts: 2
|
I need the collective wisdom of the crowd. I am trying to create a racial ability that adds +1 to AC when an ally is next to the creature. I wanted to code this as a user activated ability, but for the life of me, I can't get the AC to change. This is the script:
Quote:
Secondly, I have created a bunch of spell casters that when I select spells (via Racial spells tab), I get validation errors for too many spells, even if I just put in one spell. |
|
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
Quote:
I think you want Code:
if (field[abilActive].value <> 0) then hero.child[ArmorClass].field[Bonus].value += 1 endif |
|
#2 |
Junior Member
Join Date: May 2014
Posts: 2
|
dungeonguru thanks for the correct script, works beautifully.
Re Spellcasting. The issue has gone away. I have no idea why. Clearly the fear of your scrutiny caused it to behave. 😊 This is what I was going to say... Quote:
|
|
#3 |
Senior Member
Join Date: May 2016
Posts: 608
|
Quote:
A word of advice I heard a long time ago from ShadowChemosh needs to be passed along from time to time. Using the Test Now button is not 100% bulletproof - there are times when bootstrapped "things" just don't load right and you just need to save your change, exit the editor and restart HL before you get a clean test. The weird test results usually happen for me when I'm messing with adding class abilities, new classes, and definitely configurables or things that open up new tabs in the UI. I normally just reload HL after I get things to Test Now without any obvious errors and then reload before I trust my results. |
|
#4 |
|
|