SphereCommunity
Extracting Weapon DAMAGE Value - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Extracting Weapon DAMAGE Value (/Thread-Extracting-Weapon-DAMAGE-Value)



Extracting Weapon DAMAGE Value - mlyon83 - 05-29-2013 01:52 AM

For custom combat (RETURN 1), how would I set VAR.SHOW_WPN_DAMAGE to gather the DAMAGE= value of a weapon?

ie.

[ITEMDEF i_axe]
NAME="axe"
DAMAGE={4 13}

Thanks!


RE: Extracting Weapon DAMAGE Value - RanXerox - 05-29-2013 02:10 AM

You can reference the damage low,high values of a weapon using ARMOR. You can use STRARG or STREAT to split it up.