|
Mephistopholies Newbie
Joined: 03 Jun 2006 Posts: 5
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Mon Jun 05, 2006 9:06 am |
#TR {{You tell|tells you}} {#CAP Tells}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Mephistopholies Newbie
Joined: 03 Jun 2006 Posts: 5
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Mephistopholies Newbie
Joined: 03 Jun 2006 Posts: 5
|
Posted: 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 |
|
|
|
|
|