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


Joined: 04 Nov 2001
Posts: 11
Location: USA

PostPosted: Wed Nov 07, 2001 4:38 am   

Simple question, maybe?!
 
You're allowed to have 3 characters on at once. If I receive a 'tell' from some, I want it to emote 'thinks that So&So is talking to me!' and I want it to send that exact tell to the main charcter.

Here's what I got so far:

Pattern:
%w tells you '*'

Value:
emote thinks that %1 is talking to me!
tell mainchar ???????

I can't seem to figure out how to get it to tell the main character in the same trigger. Also, the '%1' in the middle of the sentence doesn't work. If you can figure those out, the other question is how do you make the person who is taking to you a different color?

Example:
Fenster thinks that So&So(BLUE) is talking to me!

I played with the #CW, but I failed in my attempts.


Edit:
This could start to get annoying, so a toggle swith might be nice.
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Wed Nov 07, 2001 7:40 am   
 
Why don't you try something like this:

#trigger {(%w) tells you '(*)'} {tell mainchar %1 said '"%2"' to me!}


Iljhar
Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Wed Nov 07, 2001 8:53 am   
 
What you were missing is the brackets around the pattern, which tell zMUD that you want to capture something in a variable.

%w tells you '*' - triggers on the correct line, but doesn't extract the values you want
(%w) tells you '(*)' - should work

(putting the name from %w in %1 and the text in %2)

Lady C.
Reply with quote
Apollyon
Wanderer


Joined: 02 Oct 2001
Posts: 76
Location: USA

PostPosted: Wed Nov 07, 2001 8:31 pm   
 
insteead of telling the main char what the person just told you, you might want to try echos

#trigger {%w tells you, '(*)'} {#echo %1 just told (charname here) '%2'}

then to respond you might wanna try something like this
if your alt char is named bob...
#alias {btell} {:Bob:reply %-1}

whatever, i think echos still work better than one char telling the other what a person said to you, since its faster..
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