Reset Password
Existing players used to logging in with their character name and moo password must signup for a website account.
- Brotox 36s
- Napoleon 1m Bad bish is bad.
- vantablack 2m
- geoux 20m
- Lycanthorph 3m
- pfh 14s
- ComradeNitro 10m
- FancyPenguin 35m
- Mench 9m I do Facebook and Website stuff.
- Brozilla 56s
c Mephisto 1s Malt doch nicht immer den Teufel an die Wand.
- Rangerkrauser 7s youtu.be/d5axbaGBVto
- Vera 4m https://twitter.com/dril/status/218160412510785536
- BCingyou 7s
- Vivvykins 2m
- Sara 3s
- Kisaki 5s Don't Stop Music...
- waddlerafter 31s
- attaboy 1s
- Dumpster 6m
- Inryhk 14m
- Scarlyt 8m Sindome is ace.
- arm0r3r 6m
- jsmith225 36m
- Malanth 1h
- RealHumanBean 18s Something?
- MrJDucky2 3m I'm actually a Duck in real life. Honest <3
a Cerberus 48m Head Builder & GM when I need to
- villa 42s
- Storm 11m
- Solshine 11m
- whatislove00 1m https://www.youtube.com/watch?time_continue=795&v=fpbOEoRrHyU
- Melpothalia 5m That's Mrs. Broken Brain [Bottom Text] to you!
- Jameson 6m making the eternal black firmament my side bitch
- Wonderland 8m
- Grey0 3s
- maxxieway26 2h
- Cyberpunker 8s
- Malestrom 14s
j Johnny 1h New Code Written Nightly. Not a GM.
And 29 more hiding and/or disguised
Connect to Sindome @ moo.sindome.org:5555 or just Play Now

Time
Refrence it.

I looked though the posts on here, and didn't find anything.  Sorry if this has been adressed before.  I was wondering if there was a way to reference the time of day in a script.  So as to customize messages, such as goodbyes etc.  Like instead of just saying 'See ya later', It could be 'Have a good night..."  or 'Good morning'.

Presently this is not supported.

However if your writing a script that requires it, I'de be happy to add it.

Would something that gave you the present hour in 24 hour format do? Or would you prefer some constant strings ("dawn", "morning", "noon", "afternoon", "evening", "night")?

-Kevlar

PS. Great question BTW. Keep em comming.

I think it would come in really handy if it was 24 hour format.  That would allow for so much more to be done, then if it was Morning, Noon, etc.

You now can now:

time_hour "current_hour"
if greaterthan %current_hour 20 or lessthan %current_hour 5
 // Do night here
elseif greaterthan %current_hour 4 or lessthan %current_hour 11
 //Do morning here
elseif greaterthan %current_hour 10 or lessthan %current_hour 16
 //Do afternoon here
else
 //Do evening here, because there's nothing else it could be.
endif

You can also use time_minute, and time_second for minute and second values.

Will this do?

-Kevlar

Thats awesome.

Hmm.. I tried compiling a script that uses the above code, and it gets errors.  I tried compiling that exact script above and I get the same errors.

----
time_hour "current_hour"
if greaterthan %current_hour 20 or lessthan %current_hour 5
// Do night here
elseif greaterthan %current_hour 4 or lessthan %current_hour 11
//Do morning here
elseif greaterthan %current_hour 10 or lessthan %current_hour 16
//Do afternoon here
else
//Do evening here, because there's nothing else it could be.
endif
----
Error while running 'a', on line 2:
Error while calling 'if' with '21, 20, 21 and 5'
Error while calling 'greaterthan' with '21 and 20': Type mismatch
----

Am I missing something?
----

No, I don't think you are. Looks right to me.

I'll check it this evening. 24 is on at 9DST, and I'll be sittin in front of a computer then, so expect a fix tonight.

-Kevlar

Sorry bout that.

It's fixed now.

-Kevlar

P.S. In case your curious: The problem was that I had split apart a string in order to get the number, and had forgot to convert it back to an integer. When it went to do the 'greaterthan' or 'lessthan', it knew it couldn't compare a string to an integer, so it blew up.