ZMud - Alarm/Trigger question

Scripts and support for your favorite MUD client.
Teliel
Sojourner
Posts: 1
Joined: Sat Jan 14, 2006 8:09 pm

ZMud - Alarm/Trigger question

Postby Teliel » Sat Jan 14, 2006 8:14 pm

I want to do something that seems very basic, but I can't figure it out. How would I write a script using alarms/triggers such that if one of my friends enters the room at 2:00 real life, then it says "Good afternoon ___", but if it is 6:00, then "Good evening ___"? And can I do this for a range of times? Say between 2:00 & 5:59?
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Sun Jan 15, 2006 12:11 pm

Not quite sure how much you want the trigger to fire. But if you just want it to work in WD then a pattern like this should be ok:

{Bob|John|Bill} {sneaks|walks} in from the {east|west|north|south}

Bob|John|Bill should be replaced with your buddylist.

Then the trigger should fire something like this:

#if ((%int(%time(hh))) > 8 && (%int(%time(hh))) < 10) {say goodmorning}
#if ((%int(%time(hh))) > 16 && (%int(%time(hh))) < 23) {say goodevening} {say goodday}


As you mabye can see then i use 24h display, with 12h display you have to call %time with some param that return AM PM, and then compare that in the #if aswell.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 21 guests