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


Joined: 27 Oct 2001
Posts: 1

PostPosted: Sat Nov 17, 2001 6:28 am   

EmlenMud Rating Triggers
 
I'm trying to write a set of rating triggers for an Emlen using Zmud 6.22. I tried using some new state triggers and some lists, but just couldn't get it to work out... I kept getting output to the mud where it didn't belong.

For those who don't play Emlens, rating is a list of the top ten rated players (based on stats... which can change with spells) on both sides of the mud. Changes in rating can be used to determine who is logged in on the other side.

When I type the rating command, I get something along these lines:
[Top Ten Rated Players]
* #1 Ammo <white space here> ----> 487 <Rating>
* #2 Kashiro ----> 456 <Rating>
etc... through 10. I want it so that when I type rating, I get a popup message saying "Blah's rating has changed from blah to blah."

If anyone could help me with this, I would really appreciate it.

Charley
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sat Nov 17, 2001 11:30 am   
 
Create a variable @Ratings to store everyone's rating in, then use this trigger to compare ratings and update them.


#TR {^~* ~#%d (%w)%s----~> (%d) ~<Rating~>} {
#IF (%db(@Ratings, %1) <> %2) {#MESSAGE %1's rating has changed from %db(@Ratings, %1) to %2}
#ADDKEY Ratings %1 %2
}



Troubadour
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