SphereCommunity
weapons durability? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: weapons durability? (/Thread-weapons-durability)



weapons durability? - x77x - 08-26-2017 01:26 AM

weapons break way too fast, wheres the formula?


RE: weapons durability? - darksun84 - 09-07-2017 03:03 AM

ON=@Hit
LOCAL.ItemDamageChance = 0 //For Weapons

ON=@GetHit
LOCAL.ItemDamageChance = 0 //Armors


RE: weapons durability? - x77x - 09-07-2017 03:19 AM

how about 50% or 25% less damage to item?


RE: weapons durability? - darksun84 - 09-07-2017 03:27 AM

You can use the @Damage triggers, you have to apply it to each weapon/armor/shield typedef or use theglobal item events in sphere.ini

Example:
Code:
[TYPEDEF t_less_damage]
ON=@Damage
//Shield is considered an armor
if ((<isweapon>) || ( <isarmor>) )
   argn1 -=  (( <argn1> * 25) / 100 ) //Reduce damage by 25%
endif

You can also use the character event:
http://wiki.spherecommunity.net/index.php?title=@ItemDamage