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
AragonT2T
Newbie


Joined: 29 Nov 2006
Posts: 4

PostPosted: Wed May 16, 2007 4:08 am   

Kill Counter
 
Ok here is what im trying to do.

Basically im trying to set up a counter for everything i kill.

The line reads You killed (insert random monster).

thanks.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Wed May 16, 2007 5:07 am   
 
Code:

#TRIGGER {^You killed (*).$} {#var MyKill %addkey( @MyKill, "%1", %eval( %db( @MyKill, "%1")+1))}
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
AragonT2T
Newbie


Joined: 29 Nov 2006
Posts: 4

PostPosted: Wed May 16, 2007 6:22 am   Total newb at this
 
Would i just save that as a text file and import it in?
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Wed May 16, 2007 9:30 am   
 
Just paste it on the command line in zmud and press enter.



Prog
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
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