|
Sivan Beginner
Joined: 06 Nov 2000 Posts: 20
|
Posted: Sun Jun 01, 2003 9:54 pm
Who trigger |
I would like to create a trigger that does a who command on two players when someone kills someone else. When someone kills themself I would not like it to fire.
Below is the output from the mud.
Player vs Player kill:
player1 killed by player2.
Player kills himself:
player1 killed by player1.
Does anyone know how to write this so that the trigger will fire only when it is a player1 vs player2 kill?
Thanks |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jun 01, 2003 10:50 pm |
#TRIGGER {(%w) killed by (%w).} {#IF ("%1" <> "%2") {who}}
Kjata |
|
|
|
Sivan Beginner
Joined: 06 Nov 2000 Posts: 20
|
Posted: Mon Jun 02, 2003 3:31 am |
Thanks Kjata
|
|
|
|
Sivan Beginner
Joined: 06 Nov 2000 Posts: 20
|
Posted: Mon Jun 02, 2003 3:38 am |
Hm, I just tried the trigger Kjata and it does an entire WHO listing. I wanted it to work on only the persons involved in the pk.
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Jun 02, 2003 12:51 pm |
I don't know the command your MUD uses to do a who on specific people and you didn't provide it. I'll guess it's something like:
who playername
In that case the trigger is:
#TRIGGER {(%w) killed by (%w).} {#IF ("%1" <> "%2") {who %1;who %2}}
Kjata |
|
|
|
Sivan Beginner
Joined: 06 Nov 2000 Posts: 20
|
Posted: Tue Jun 03, 2003 11:03 pm |
That worked.
Thanks |
|
|
|
|
|