Senior Member
Join Date: Dec 2010
Location: Northeast Quadrant
Posts: 128
|
How would I go about creating script for a feat that lets me use a two handed slashing weapon as a black blade?
The black blade seems to be some fairly unique scripting that I can't even find, so I have no idea the best way to go about it. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Black blades are hard coded and not copyable from the editor. Modifying the candidate expression involves going into the Black Blade weapon gizmo, and overwriting the gCustMagic pick's gItemExpr field, which is set at Final 20000. This is the script that sets it right now:
Final 20000 gizmo.child[gCustMagic].field[gItemExpr].text = #magicgearexpr[] & " & (IsWeapon.wRapier | IsWeapon.wSwordCane | (wClass.OneHanded & wType.S))" Your new script will need to have a different start to it, since the above script is running in the same container as the gizmo, but your feat will be starting on the hero. I'd suggest setting the phase and priority to Final 21000. Hope that helps. |
#2 |
|
|