 |
MadBomber Beginner
Joined: 17 Oct 2002 Posts: 26 Location: USA
|
Posted: Sun Nov 24, 2002 2:37 pm
Counting how many values in a variable |
Is there a command or function that will return to you the amount of values for a variable? Such as capturing your inventory into a single variable, as the "Advanced zMUD Triggers" article shows you how to do. If I had just captured it to a variable, but didnt know how many items were in my inventory, is there a function or command you can use for a variable to stat how many values it has?
Thanks,
MadBomber
--------------------
Currently Using zMUD 6.37aBeta |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Nov 24, 2002 5:41 pm |
If the variable contains a stringlist, you use the %numitems function:
#SH %numitems(@stringlist)
Kjata |
|
|
 |
|
|
|
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
|
|