PDA

View Full Version : Need Coding Help (Shadow Help)


Virtue
July 17th, 2010, 10:20 AM
Im converting some more 3.5 giants and I found a cool one Maur the Hunched Giant in the Underdark Book (wanted it cause Im running Second Darkness)

So he has this abilty that allows him to grow to huge increase he Str and Con by 6 + 4 Morale Bonus to his AC and Saves

I want this is be somthing i can turn on and off like Power attack I would like it off and then turn it on like Rage because it only lasts 10 rounds

Can someone help me (shadow you ussually help me on these)

ShadowChemosh
July 18th, 2010, 08:24 AM
Sure. That sounds like a fun Giant actually.

Here is the script I got so far. Phase is First, Priority 20,000


~First 20,000
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ If we are not activated get out now
doneif (field[abilActive].value = 0)

~ Add to size - must come after race and template size set
herofield[tSize].value += 1

~ Increase the size of all our equipment by 1 apart from
~ unarmed strike, which changes automatically
foreach pick in hero from MyGear where "!wCategory.Unarmed"
eachpick.field[gSizeMod].value += 1
nexteach

~ Increase the size of all natural attacks by one size
foreach pick in hero where "wGroup.Natural"
Perform eachpick.assign[Helper.DamageUp]
nexteach

~ Bonus to Str and Con
hero.child[aSTR].field[Bonus].value += 6
hero.child[aCON].field[Bonus].value += 6
~ Give Morale Bonus to AC and all saves
#applybonus[BonMorale,hero.child[ArmorClass],4]
#applybonus[BonMorale,hero.child[svFort],4]
#applybonus[BonMorale,hero.child[svRef],4]
#applybonus[BonMorale,hero.child[svWill],4]


I tested it on one of my custom races and it works just fine. Hope your players have fun trying to kill it.. :)

Virtue
July 18th, 2010, 09:43 AM
Hey Shadow Thanks Ill try it out but i explained it wrong he its weird he is from the underdark book he is huge but cramped down from the tunnels but for 10 rounds a day he gets bigger his weapons dont though cause he has oversized weapon use already

Virtue
July 18th, 2010, 11:06 AM
Works great if you cant make it not grow the weapon its cool I can do the math

ShadowChemosh
July 18th, 2010, 01:30 PM
Their is two specific sections of code that reads through the gear and natural attack to increase their size. So just have to remove that to make the items not grow also.

Here is the script with that removed:

~First 20,000
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ If we are not activated get out now
doneif (field[abilActive].value = 0)

~ Add to size - must come after race and template size set
herofield[tSize].value += 1

~ Bonus to Str and Con
hero.child[aSTR].field[Bonus].value += 6
hero.child[aCON].field[Bonus].value += 6
~ Give Morale Bonus to AC and all saves
#applybonus[BonMorale,hero.child[ArmorClass],4]
#applybonus[BonMorale,hero.child[svFort],4]
#applybonus[BonMorale,hero.child[svRef],4]
#applybonus[BonMorale,hero.child[svWill],4]

Virtue
July 18th, 2010, 08:23 PM
Thanks again