SphereCommunity
Ageless Houses? - Printable Version

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



Ageless Houses? - Reflex - 04-29-2012 11:03 PM

I tried looking through the housing system the community scp housing system. I didn't see anywhere to make the house ageless? Is this feature possible with the default script and if so how ?


RE: Ageless Houses? - Shaklaban - 04-30-2012 06:57 AM

set that to zero:

HOUSE_DECAY_TIMER 20 //House decay timer, in days (0=Decay Off)

if you want just some of the houses ageless, you can set their tables timer to -1.


RE: Ageless Houses? - Reflex - 04-30-2012 10:54 AM

I see a lot of people talk about "Tables" what do you mean its table? how would I for example view the house sign's table ?


RE: Ageless Houses? - Shaklaban - 04-30-2012 11:59 AM

i mean the house sign.


RE: Ageless Houses? - Reflex - 04-30-2012 01:56 PM

Ah, ok.
Anyone else wondering.. Just set your house sign's timer to -1 and make sure your house.scp script has at least the ageless return

Code:
[Function HouseSys_GetHouseAge]
Local.MaxTime=<eval <DEF.scp.House_DecayTimer>*24*60*60>
If <TAG0.DEMOLITION_PENDING>
Return 1062497
Elseif <Eval (<Local.MaxTime>*99) / 100> < <Timer>
Return 1043010 //Like New
Elseif <Eval (<Local.MaxTime>*75) / 100> < <Timer>
Return 1043011 //Slightly
Elseif <Eval (<Local.MaxTime>*50) / 100> < <Timer>
Return 1043012 //Somewhat
Elseif <Eval (<Local.MaxTime>*25) / 100> < <Timer>
Return 1043013 //Fairly
Elseif <Eval (<Local.MaxTime>*4) / 100> < <Timer>
Return 1043014 //Greatly
Elseif <timer> == -1
RETURN 1043009 //Ageless
Else
Return 1043015 //Collapse
Endif