|
Ill Newbie
Joined: 22 Sep 2003 Posts: 4 Location: USA
|
Posted: Mon Sep 22, 2003 2:31 am
Hopefully simple. |
This is probobly a pretty simple question considering that all the other stuff people have been asking is way over my head..
is there a way that I could have a trigger that would say stun someone from a list, if they were to walk into a room, a variety of ways..
(also I have no idea how this list would work.. would it be a database or a variable or something? I dunno)
for example..
I had a list of names:
Ugh
Percival
Phrexian
Dyne
Dante
and a list of endings..
flies in from
stalks in from
lumbers in from
arrives from
sneaks in from
could I get a return like..
Percival flies in from the west.
[stun percival]
-?
I dunno if that's possible.. or if the solution would be too complicated for me to understand or what..
if you'd be kind enough to help, I'd be very appreciative,
Ill
PS: www.tempusmud.com - wikkid mud. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Sep 22, 2003 3:17 am |
All of this goes in the command line, the same place you type stuff to the MUD. The first part makes your list, it's a variable. The trigger uses the list like a wildcard.
#ADDITEM stunlist {Ugh}
#ADDI stunlist {Percival}
#ADDI stunlist {Phrexian}
#ADDI stunlist {Dyne}
#ADDI stunlist {Dante}
#TR {^({@stunlist}) * from the} {stun %1}
For more information check zMUD's help for ADDITEM, TRIGGER, Introduction to Triggers, and Pattern Matching. |
|
|
|
|
|
|
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
|
|