Senior Member
Join Date: May 2013
Posts: 240
|
The soloist PC in my seven-year-long campaign just hit level 20 by killing Treerazer. Her reward is a super-badass custom artifact-level sword personally forged for her by the empyreal lord Bharnarol.
Its stats, per her specification:
Most of that was pretty straightforward to code up, but I've run into issues copying the weapon abilities from the sword onto her melee and natural attacks. I defined an Item Power called Wild, with the following two eval scripts: Code:
~ First/400/1 doneif (container.parent.field[gIsEquip].value = 0) perform container.parent.assign[Helper.PolyOK] Code:
~ Pre-levels/10000/2 doneif (container.parent.field[gIsEquip].value = 0) ~ Get the enhancement bonus of the weapon. var WeaponBonus as number WeaponBonus = container.parent.field[BonEnhance].value perform container.parent.pulltags[Ability.?] foreach pick in hero from BaseWep where "component.BaseNatWep | wCategory.Unarmed" ~ Copy over the enhancement bonus #enhancementbonus[eachpick, WeaponBonus] ~ Copy over the weapon abilities. perform eachpick.pushtags[Ability.?] nexteach Clearly there is more to it than copying some tags over. I spent some time puzzling through the code for a custom Amulet of Mighty Fists, but I failed to grok it. I think it works by assigning a weapon type to the gizmo that powers the item power selection? Maybe? Anyway, I didn't get it. I'm pretty tired right now, which doesn't help. How should I be going about this? |
#1 |
|
|