• 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

Need Coding Help (Shadow Help)

Virtue

Well-known member
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)
 
Sure. That sounds like a fun Giant actually.

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

Code:
~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.. :)
 
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
 
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:
Code:
~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]
 
Back
Top