|
Kefka Newbie
Joined: 24 Jul 2002 Posts: 5
|
Posted: Wed Jul 24, 2002 2:56 pm
Newbie question |
Alright, I have a variable full of names...
Variablename: friends
Value: Pinky|Pocky|Picky
I have a trigger that goes off specifically for them:
Pattern: {@friends} says (to you) 'sanc'
Value I want: c sanc whicheverpersonasked
How do I specify it so that it sancs the person from the variable that told me? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jul 24, 2002 3:12 pm |
Enclose the part from the pattern that you want saved in parenthesis. Thus, the trigger's pattern should be:
({@friends}) says ~(to you~) 'sanc'
and then the command is:
c sanc %1
Notice that in the pattern, the "(to you)" part has ~ before each parenthesis. The ~ tells zMUD not to interpret it as a special character, but as something that should appear in the text sent from the MUD.
Kjata |
|
|
|
|
|