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


Joined: 06 May 2002
Posts: 0
Location: United Kingdom

PostPosted: Wed Apr 17, 2002 12:35 am   

An easy one for everyone but me ;)
 
All I want to do is make an alias that
1) Takes two strings in parenthesis as the two variables
2) Makes a trigger to replace a string with the two variables that belongs to a class.

Example:
The name of the alias will be namesave
The lazy, red headed fool rests here.

>namesave (Bob) (The lazy, red headed fool)

Makes a trigger belong to class "names" that triggers on:
The lazy, red headed fool
and has a value of:
#sub {The lazy, red headed fool %ansi(low, yellow)(Bob)}

Thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Apr 17, 2002 4:42 am   
 
What makes you think this is easy for everyone else?

To simplify things, I've limited the name to one word. That eliminates the need to parse parentheses in the alias. So now, you just type:
namesave Bob The lazy, redheaded fool

#AL {namesave} {#SUB {%-2} {%-2 %ansi(brown)~(%1~)}

LightBulb
Vague questions get vague answers
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