 |
Odoth Wanderer

Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Mon Feb 21, 2005 1:57 am
Trouble using string lists |
I'm working on a script to capture on calculate stuff like average exp per kill for instance. The problem I'm running into is that I'm using stringlists to store exp history and I've just realized stringlists will only store unique entries. Sample of what I'm doing:
#show Your average exp over the last %numitems( @exp_history) is: %eval( @exp_total/%numitems( @exp_history))
I use an if statement to keep @exp_history at 10 items.
I'm sure there's a better way to do this, i just don't know how  |
|
_________________ *ribbit* |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 21, 2005 3:34 am |
Actually, #ADDITEM only adds unique entries. If you use %additem(), you can add duplicates.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Odoth Wanderer

Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Mon Feb 21, 2005 4:29 am |
AHA!
It works, thanks.  |
|
_________________ *ribbit* |
|
|
 |
|
|