Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Kalus
Beginner


Joined: 01 Dec 2000
Posts: 27

PostPosted: Thu Nov 21, 2002 12:51 pm   

safety triggers
 
I'm pretty good at simple triggers and alias usage, but i was thinking of making a more complicated script and have no real idea how to go about it. I'd like to have triggers check "where" every few seconds to tell me if anyone new has appeared in the area, warning me both if someone arrives or if someone leaves. The mud output looks like this when I type where

Players in your vicinity:
-------------------------
[Nerocellen ] - On a Winding Trail
[Zagor ] - Lurking about


It says lurking about for anyone who is currently sneaking or the room name for those who are not. I'd really appreciate any advice...or if someone has a really good idea how to do this actually code for it. Thanks for your time





Kalus
Reply with quote
Kalus
Beginner


Joined: 01 Dec 2000
Posts: 27

PostPosted: Thu Nov 21, 2002 12:53 pm   
 
i also wanted to mention that i'd like to make it so the results of where weren't displayed unless something had changed....possibly using some type of #GAG, but not leaving blank lines on the screen

Kalus
Reply with quote
Daniel
Beginner


Joined: 13 Oct 2000
Posts: 20
Location: Germany

PostPosted: Thu Nov 21, 2002 1:16 pm   
 
Hello Kalus,

try this:
#alarm +10 {where}
#trigger {^~[*~] - (*)} {#if %1="Lurking about" {#col red} {#gag}}

this is not tested but should work :)

Hope this helps

Daniel
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net