Create a +2 Attack/Damage, -2 AC ability
I'm trying to create and activated ability that grants +2 to hit and +2 to damage, while applying a -2 to AC, I've got the ability and description created as a special ability for the race, but can't figure our how to add the modifiers.
|
You can manipulate Armor Class with something like:
hero.child[ArmorClass].field[Bonus].value += 2 The to hit and damage are a bit trickier. You might try a script like: foreach pick in hero from BaseWep eachpick.field[Bonus].value += 2 nexteach This would add a +2 bonus to hit and damage to all weapons, even those not equipped so you might want to narrow it down like: foreach pick in hero from BaseWep where "wGroup.Natural" eachpick.field[wDamExtra].text &= " plus 10 (3d6) poison" nexteach which would limit it to weapons that are natural weapons only. Foreach loops can be intensive on processing and slow down the client unless you limit their scope. EDIT: Timing is important here, you probably want to look at other things that do similar and play with the timing on the scripts and test them out. |
Take a look at the Great Weapon Master feat. It adds a checkbox to activate an ability that grants -5 to your to hit modifiers and a +10 to your damage. Using that plus dungeonguru's AC code, you may be able to cobble together what you want to do here.
Then I think you'd just need to bootstrap that to the race, though I could be wrong there. |
All times are GMT -8. The time now is 11:43 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.