SphereCommunity
light to an area? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: light to an area? (/Thread-light-to-an-area)



light to an area? - x77x - 01-07-2015 02:54 AM

how do i make it bright to this area?

Code:
[AREADEF a_hotaka_plains]
NAME=The Army Recruiter's House
GROUP=Tokuno Islands
P=1235,771,3,4
RECT=1223,753,1248,776,4
FLAGS=region_flag_nobuilding|region_flag_underground
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
REGION.SECTORS LIGHT 0    ????



RE: light to an area? - XuN - 01-08-2015 01:48 AM

There's no way to do that since Light is a Sector's property and one Region can hold the 80% of one Sector and another Region the other 20% ... so the only way to to that is to manually change that sector's light ingame and then saving the world (light will be stored in spheredata.scp)


RE: light to an area? - x77x - 01-08-2015 03:54 AM

command?


RE: light to an area? - karma - 01-08-2015 04:44 AM

Consider using @EnvironChange (which fires also when a char enters a sector) and SECTOR.LIGHT=x (don't remember if you need to do this with TIMERF like TIMERF 1, SECTOR.LIGHT= 1 or SECTOR.TIMERF 1, LIGHT=x; time ago without it the server crashed).
If you want to change the whole map light, use MAP.<MAP>.ALLSECTORS LIGHT=x