Register to post in forums, or Log in to your existing account
 
:
Search found 4 matches for:
Page 1 of 1
Author Message
  Topic: List Function Problem
Zenkai

Replies: 8
Views: 5122

PostForum: zMUD General Discussion   Posted: Wed Jan 09, 2002 8:50 am   Subject: List Function Problem
Thanks Kjata, I'll use the countlist function - it will simply my code a lot.

*sigh* That function is listed under database functions, and I don't use the database module so I skipped over it...
...
  Topic: List Function Problem
Zenkai

Replies: 8
Views: 5122

PostForum: zMUD General Discussion   Posted: Mon Jan 07, 2002 12:49 am   Subject: List Function Problem
Sweet! I can code a nested loop.
I should have thought of using my own counter. *kick self*

Here is the code I got to work:

#var list {Athos|Bertrand|Caesar|Bertrand|Caesar|Bertrand}
#var dl ...
  Topic: List Function Problem
Zenkai

Replies: 8
Views: 5122

PostForum: zMUD General Discussion   Posted: Sat Jan 05, 2002 6:12 pm   Subject: List Function Problem
This works for the above example, guess there isn't a pretty
solution for the general case

#var item1 0
#var item2 0
#var item3 0
#var list {Athos|Bertrand|Caesar|Bertrand|Caesar|Bertrand}
#v ...
  Topic: List Function Problem
Zenkai

Replies: 8
Views: 5122

PostForum: zMUD General Discussion   Posted: Sat Jan 05, 2002 2:32 pm   Subject: List Function Problem
zMUD has this function

syntax: %numitemss(list)
description: return the number of items in a stringlist.

example: #SHOW %numitems(Athos|Bertrand|Caesar|Bertrand|Caesar|Bertrand)
displays: 6
...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net