![]() |
Self-repair - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Self-repair (/Thread-Self-repair) |
Self-repair - Van Glan Bloom - 03-10-2017 11:21 PM What is the function for the weapons make self-repair? RE: Self-repair - Shamino - 03-11-2017 04:45 AM In ITEMDEF, TYPE or EVENT. ON=@Damage IF (<SelfRepair>) RETURN 1 ENDIF RE: Self-repair - Coruja - 03-11-2017 12:37 PM SELFREPAIR is an item property, not an function if you set SELFREPAIR=x on the item, it will automatically enable self repair behavior everytime the item get damaged, it will have a chance of x/10 to get repaired (+1 durability) instead get damaged (-1 durability). You can control this chance directly on the property using SELFREPAIR=1 up to SELFREPAIR=10 |