View Single Post
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 18th, 2020, 07:21 PM
The custom ability I'm working on currently lets you make an unarmed attack that deals damage equal to your Intelligence bonus.

The following tags are present:
Helper.WeaponSpec, wCategory.Unarmed, IsWeapon.wUnarmed,, Helper.AllEqMain, wType.P, wCritMult.2

Now, I know that the editor is looking for a wMain tag to tell it what the damage is, but for this ability, the damage is dynamic, and based only on the hero's INT bonus. There doesn't see to be a wMain.0 tag, so how else can I get the ability to appear on the weapon tab to just list the INT bonus as damage?

<post-attributes, 10000>
Code:
~If we're not shown, just get out now
     doneif (tagis[Helper.ShowSpec] <> 1)

~ if we've been disabled, get out now
     doneif (tagis[Helper.SpcDisable] <> 0)

field[abDuration].value += round(field[xTotalLev].value/8,0,-1) + 1

field[abValue].value += hero.childfound[aINT].field[aBonus].value
field[abValue2].value += hero.childfound[aSTR].field[aBonus].value
field[abValue3].value += field[abValue].value - field[abValue2].value

field[dmmBonus].value += field[abValue3].value

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote