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


Joined: 04 Nov 2013
Posts: 2

PostPosted: Mon Nov 04, 2013 4:31 am   

Zmud point calculation help
 
I'm new to zmud and im looking for something very specific, but i have no clue where to even begin.

ok the game has a list of players with a score beside it, it would look like this
---- -----
John 3520.07
Adam 3419.97
James 3111.59
Dan 2588.72
Eddie 2501.86


I want to be able to make a few of those names 2 or 3 lets say John Adam and Dan to be calculated as they rise/fall. so that when i see the list again it would say something like

John 3520.25 (+.18}
Adam 3420.00 (+.03
James 3111.59
Dan 2587.70 (-1.02)
Eddie 2501.86

And I would like those names that i choose to be captured to another window

I appreciate any help anyone can offer thanx in advance
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Nov 05, 2013 11:38 pm   
 
if that is the only thing that is shown, it will be easy.

whoScore=John|Adam|Dan

#TRIGGER {^(%w) (%d.%d)$} {
#IF (%ismember(%1, @whoScore)) {
$score=@scoreTracker.%1
$change=(%2-$score)
#SAYADD { ~($change~)}
#CAP windowName
#ADDKEY scoreTracker %1 %2
}}
_________________
Discord: Shalimarwildcat
Reply with quote
papabearlol
Newbie


Joined: 04 Nov 2013
Posts: 2

PostPosted: Wed Nov 06, 2013 7:38 am   
 
well the entire thing looks exactly like this and i want exactly what i described but just for certain names that i choose

=-=-=-=-=-=-=-=-=-=--= Duris Mud Leader Board =-=-=-=-=-=-=-=-=-=-=-

Name Score
---- -----
Aktosh 3643.07
Tolm 3433.73
Soldon 3122.96
Nicram 3111.77
Xen 2588.72
Iruzlo 2122.14
Majk 2114.12
Tiu 1995.22
Om 1797.05
Deathli 1766.72
Laz 1743.27
Sxt 1711.23
Kli 1634.80
Nilats 1598.62
Zzile 1552.36
Gellz 1508.56
Nib 1482.39
Swex 1459.18
Uzzac 1457.56
Morrigu 1362.02
None 0.00
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