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
Sivan
Beginner


Joined: 06 Nov 2000
Posts: 20

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jun 01, 2003 10:50 pm   
 
#TRIGGER {(%w) killed by (%w).} {#IF ("%1" <> "%2") {who}}

Kjata
Reply with quote
Sivan
Beginner


Joined: 06 Nov 2000
Posts: 20

PostPosted: Mon Jun 02, 2003 3:31 am   
 
Thanks Kjata

Reply with quote
Sivan
Beginner


Joined: 06 Nov 2000
Posts: 20

PostPosted: 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.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Sivan
Beginner


Joined: 06 Nov 2000
Posts: 20

PostPosted: Tue Jun 03, 2003 11:03 pm   
 
That worked.

Thanks
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