ZMud - Alarm/Trigger question
ZMud - Alarm/Trigger question
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?
-
- Sojourner
- Posts: 956
- Joined: Thu Feb 21, 2002 6:01 am
- Location: Copenhagen
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.
{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.
Who is online
Users browsing this forum: No registered users and 21 guests