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
Mephistopholies
Newbie


Joined: 03 Jun 2006
Posts: 5

PostPosted: Mon Jun 05, 2006 9:01 am   

Spawn window - Possible?
 
Hi,

There are other mud clients that will for instance, spawn a window whenevr you are sent a tell, and whenever someone sends you a tell, it will go to that "message" window that is open -

IE can you make a window that will 'save' all messages that fit a certain pattern (such as "playerx tells you: blah blah player text here")

Thanks!
-Meph
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Mon Jun 05, 2006 9:06 am   
 
#TR {{You tell|tells you}} {#CAP Tells}
_________________
Discord: Shalimarwildcat
Reply with quote
Mephistopholies
Newbie


Joined: 03 Jun 2006
Posts: 5

PostPosted: Mon Jun 05, 2006 10:02 am   
 
Wow thats perfect!
awesome, thanks.


Here is another question: Is it possible for something like 'you are surrounded by a white aura' to trigger a timer window, so I have like a stopwatch for my sanctuary spell? (assuming I can tell the client exactly how long my sanc spell lasts)

-Meph
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jun 05, 2006 11:23 am   
 
You could do this with the status window.

First, you need a trigger that will fire when sanctuary is casted:

#TRIGGER {You are surrounded by a white aura} {#VAR sanct {60};#T+ sanctTimer}

What this trigger does is that once it sees the message for the sanctuary spell, it resets a variable called @sanct to the amount of seconds specified in the trigger (60 in this case.) Next, it enables an alarm which we haven't created yet that will be called "sanctTimer". The alarm would be:

#ALARM "sanctTimer" {*1} {#IF (@sanct > 0) {#ADD sanct -1} {#T- sanctTimer}}

This alarm is set to fire every second. Each second it will check to see if @sanct has reached 0. If it has, then the alarm is disabled. If it hasn't, then 1 is substracted from the @sanct.

Now that you have this in place, you can display it in the status window. You do this with this command:

#STW {Sanctuary: @sanct}

You can put the status window wherever you want, or hide it if you don't want to see it anymore.
_________________
Kjata
Reply with quote
Mephistopholies
Newbie


Joined: 03 Jun 2006
Posts: 5

PostPosted: Mon Jun 05, 2006 9:25 pm   
 
Once again, I am amazed at the helpfulness of these forums.

These forums are the reason I'll pay for zmud. But anyway,

thank you for sharing your wealth of knowledge with me!
-Meph
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