|
BooRadders Newbie
Joined: 06 May 2002 Posts: 0 Location: United Kingdom
|
Posted: 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! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|