ID:167432
 
I need a Verb that makes it where only i can turn day on or night on OR unless if someone know's how to make a time system and have darkness gather at exactly 7:00P.M.

ILL GLADLY TAKE IT Please.
Not a good idea, in my opinion, but if you want to do it... Can't you just check world.time?


--Vito
var/day = 0
mob
verb
Turnondayornight()
if(src.ckey = "volksblade")
if(day)
world << "ITS NIGHT!!"
else
world << "ITS DAY!!"
else
usr << "You can't use this!!!"
In response to Chrome Solider
does this Work?
In response to VolksBlade
VolksBlade wrote:
does this Work?

Of course..It changes day to night and night to day on command and only you can use it. :D
In response to Chrome Solider
no see it only tells you if it is night or day see i need where i take this "Night.dmi" and put it allllll over my map and then have it invisible intill it's night time which then it become's visible and hence night delusion is made bu once it turns daytime it become's invisible again.
In response to Chrome Solider
Chrome Solider wrote:
> var/day = 0
> mob
> verb
> Turnondayornight()
> if(src.ckey = "volksblade")
> if(day)
> world << "ITS NIGHT!!"
> else
> world << "ITS DAY!!"
> else
> usr << "You can't use this!!!"
>


that will not work every time you click it it will say its day

> var/day = 0
> mob
> verb
> Turnondayornight()
> if(src.ckey = "volksblade")
> if(day)
> world << "ITS NIGHT!!"
> else
> world << "ITS DAY!!"
> day=!day
> else
> usr << "You can't use this!!!"
>


that should do it!
In response to The Riddler
Oh yah thanx forgot to change the variable.. :D
In response to VolksBlade
All you said is that you wanted it to turn day or night(Which my system does) .Also, you said you would take the code..SO TAKE IT!!! 0_0

But heres your revision:
var/day = 0
mob
verb
Turnondayornight()
if(src.ckey = "volksblade")
if(day)
world << "ITS NIGHT!!"
world << "NIGHT.DMI ALL OVER MAP!!!"
else
world << "ITS DAY!!"
world << "NIGHT.DMI GO INVISIBLE!!!"
day=!day
else
usr << "You can't use this!!!"
In response to Chrome Solider
if you want to add night add a overlay to all turfs for night then remove it for daytime!
In response to The Riddler
you people make no sence, how about this when i click that verb everything exept the stuff with the luminosity gets turned black
In response to VolksBlade
Ok same as above, add this to your code:
for(var/obj/o in world)
if(o.luminosity)
o << "TURN BLACK"


But on a serious note : DO NOT ASK FOR CODE; Ask for how to do something instead. You have to make it by following the advice of others. You simply asked for code, and I gave you some(You didn't say it had to work).
In response to Chrome Solider
where do i add that to the code?
VolksBlade wrote:
Iunless if someone know's how to make a time system

It hasn't been updated in awhile, but, meh. =/
Click me!
In response to Hell Ramen
ok i see the time thing but how would i go and add my "night.dmi" to the night time? and why did the time start at 0:0:0?