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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Fri Jul 02, 2004 9:06 pm   

Wheel of Time Channel Capture
 
Code:
#CLASS {Channel Capture}
#TRIGGER {tells you} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  :CHANNELS:#CO red
  #GAG
  }
#TRIGGER {you tell} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  :CHANNELS:#CO hi,red
  #GAG
  }
#TRIGGER {you reply} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  :CHANNELS:#CO hi,red
  #GAG
  }
#TRIGGER {you shout} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  :CHANNELS:#CO hi,red
  #GAG
  }
#TRIGGER {bellows} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  #GAG
  }
#TRIGGER {narrates} {
  :NARRATES:#SAYPROMPT {%time( hh:nn)}
  #CAP NARRATES
  :NARRATES:#CO orange
  #GAG
  }
#TRIGGER {chats} {
  :CHATS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHATS
  :CHATS:#CO orange
  #GAG
  }
#TRIGGER {you chat} {
  :CHATS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHATS
  :CHATS:#CO hi,red
  #GAG
  }
#TRIGGER {you narrate} {
  :NARRATES:#SAYPROMPT {%time( hh:nn)}
  #CAP NARRATES
  :NARRATES:#CO orange
  #GAG
  }
#TRIGGER {shouts} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  #GAG
  }
#TRIGGER {you bellow} {
  :CHANNELS:#SAYPROMPT {%time( hh:nn)}
  #CAP CHANNELS
  :CHANNELS:#CO hi,red
  #GAG
  }
#CLASS 0
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Sun Jul 04, 2004 7:38 pm   
 
Assuming that this is for WoTMUD and not some other Wheel of Time MUD, there's a more effective and powerful plugin available.

Consider what happens to this:

* HP:Healthy MV:Fresh >
Player narrates 'on'

* HP:Healthy MV:Fresh >

It'd become:
* HP:Healthy MV:Fresh >

* HP:Healthy MV:Fresh >

which has an extra blank line and prompt which aren't necessarily desired. Now, it's possible to get around these issues with a script, but it's comparatively slower and the text can appear for a split second before being gagged in which case you get intermittent jerking up and down of output as things are shown and subsequently gagged. One way to prevent this with a script is to use #GAGON or similar but that requires one to match every line and explicitly show it on the screen. Also, the spinning timer used for bashes/weaves/etc introduces some more wonderful issues.

The plugin works with zMUD 6 and up and is highly configurable: it can capture and/or gag pretty much all types of communication (Seanchan drawling is an exception and is awaiting completion of a rewrite of the core I'm doing to make it more flexible and extensible). Use #COMMSETUP to bring up the configuration screen and tweak settings.

Timestamps can be very easily enabled here but colors aren't really done through this interface. Instead, you'll want to click on the Comms window it uses and create triggers for it that color things to your liking. Make sure you save the settings for the window when you're done so the triggers will be there next time you open zMUD.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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