SphereCommunity
Hitpoints problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Hitpoints problem (/Thread-Hitpoints-problem)



Hitpoints problem - Van Glan Bloom - 05-01-2016 12:38 AM

I have a little problem with the durability/hitpoints of weapons and armors.
Each hit, given or received, the durability of the item goes down. That is, if you have a dagger with 100 durability, we can only give 100 hits until disappears weapon. The same goes for armor.
Is there any place where you can define the probability of the item losing its durability?


RE: Hitpoints problem - Criminal - 05-01-2016 01:28 AM

ON=@HIT
local.ItemDamageChance=50

it mean 50% of probability to get item damaged


RE: Hitpoints problem - Van Glan Bloom - 05-01-2016 03:45 AM

I need add that in script of armors and weapons?


RE: Hitpoints problem - Criminal - 05-01-2016 04:12 AM

add it in a global event for players

[events e_players]
ON=@HIT
local.ItemDamageChance=50
ON=@GETHIT
local.ItemDamageChance=50


RE: Hitpoints problem - Van Glan Bloom - 05-01-2016 05:10 AM

Its working =) Thx Criminal =D