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
an4rch1s7
Beginner


Joined: 19 Oct 2002
Posts: 14
Location: USA

PostPosted: Sun Oct 20, 2002 7:54 am   

Capturing line based on its color
 
what im trying to do is capture a line IF its a certain color.. ( lets say red)

so for example

colored in red: Room 1234
colored in blue: you see exits leading west, south, east

how would i make a trig that captures Room 1234 and store it someplace like in a variable?

im trying to use the #tag name and #tag exit commands in zmud so i can get mapper to work with my mud.

so basicly i want to capture a line if its red, and store it someplace, but i want it to refresh and be able to detect the next
occurance of this color and replace the old line in the variable with this fresh one... and the next and the next...

OR someone could just tell me how to #TAG name and #TAG exit based on color =)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Oct 20, 2002 8:00 am   
 
If forget what numbers corespond to what colors. You can readily make triggers to capture what you want and be color sensitive.
In the Settings Editor make a new trigger.
Set the pattern to ^(*)$.
Set the commands to #TAG name {%1}, or #TAG exits {%1}
Then click the options tab.
Select the Line Color option and set the color to whatever is appropiate.

The only caveat to using TAG for anything is you must TAG your prompt as well. As always reconfigure after creating triggers that change the mapper behavior.
Reply with quote
an4rch1s7
Beginner


Joined: 19 Oct 2002
Posts: 14
Location: USA

PostPosted: Sun Oct 20, 2002 9:43 pm   
 
how do i tag prompt? =)

uh.. my prompt looks like


1000h, 1000m ex-
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 20, 2002 11:52 pm   
 
quote:

how do i tag prompt? =)

uh.. my prompt looks like


1000h, 1000m ex-



If you have a prompt trigger already, just put the line "#tag prompt" in the code. Here's a potential trigger, in case you don't have it:

#trigger {(%d)h, (%d)m (?)(?)(?)} {#TAG prompt;#variable Health %1;#variable Mana %2}

li'l shmoe of Dragon's Gate MUD
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