SphereCommunity
Pet system - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: Pet system (/Thread-Pet-system)



Pet system - t9king - 03-28-2020 10:45 PM

How can I write a set of animal age script? For example, if I tame this horse, it will show the survival time immediately. If you don't ride the system for a while, it will automatically clean it up


RE: Pet system - jdchixin - 04-17-2020 08:39 AM

it's easy, you can test pet's age use "ONTRIGGER=TIMER"

like this

ONTRIGGER=TIMER
if <cont.age> > 36000 //about 10 hours
cont.remove
return 1
else
timer=60
return 1
endif