View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 18th, 2020, 04:32 AM
Quote:
Originally Posted by Provos View Post
I made another adjustment this is for the spell: Rage effect but I can't get the armor penalty working. Any suggestions?

Code:
<<Post-Levels (Users) 10000>>
   ~ If we're not enabled, get out now
      if (field[pIsOn].value = 0) then
        done
        endif

        
      ~ Add a +1 Morale Bonus to will saves
      #applybonus[BonMorale, hero.child[vWill], 1]

        ~ Add a +2 Morale bonus to our Strength
	#applybonus[BonMorale, hero.child[aSTR], 2]
	
	    ~ Add a +2 Morale bonus to our Constitution
	#applybonus[BonMorale, hero.child[aCON], 2]
	
		~ Add a -2 Armor bonus to our armor class
	#applybonus[tACArmor,hero.child[ArmorClass],-2]
Timing. Your applying the bonus to tACArmor which will get over-written by the system later than this script. You can either change the timing or change which field you are manipulating. I would try changing the field first. ArmorClass contains all the bonus types, so pick one of those.

Also, you should generally avoid the phases with "(Users)" in the name. If there's ever another update to the core system, it could come with the removal of these phases.
Sendric is offline   #27 Reply With Quote