Unknown2005-06-05 03:39:53
This is probably relatively basic for most, but I have no idea how to do it.
Basically, I want to create a single macro that works off of variables so that if there are say 5 variables in a list, it does something related to the variable of the greatest value.
So for instance, there's var1, var2, var3, var4 and var5. Var3=10 while the rest =1, and since Var3's value is the biggest it does something based on Var3.
Is that clear enough, and if so, how do I do it? I use the latest version of zMUD
Basically, I want to create a single macro that works off of variables so that if there are say 5 variables in a list, it does something related to the variable of the greatest value.
So for instance, there's var1, var2, var3, var4 and var5. Var3=10 while the rest =1, and since Var3's value is the biggest it does something based on Var3.
Is that clear enough, and if so, how do I do it? I use the latest version of zMUD
Sudoxe2005-06-05 05:34:10
Check out the Sort, Item, and Pop functions.