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
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Fri Aug 29, 2003 12:12 am   

Stringlist question
 
Ok, I have looked through the archives and still can't even BS my way through this one.
I have a Variable roomstodo {13513|25235|12321|} etc its about 55 numbers long.
what i've been trying to do is when i am done doing what i want in that room i move to the next one.
so i made a trigger
Pattern {Ok all done with this room!}
Value #EXECUTE %item( @roomstodo, @pointer/55+1)

Bleh my alt-tab wont let me paste the rest but anyways
I think i have a #ADD pointer 1 after the #EXEC line.
I can get it to send 13513. but then I cannot for the life of me figure out how to then move on to the next number in the variable
when it recieves "Ok all done with this room!" text again
AM I close? hehe been reading the help files like mad and maybe thinking to hard on this one.

Any help appreciated.
Z
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Aug 29, 2003 12:28 am   
 
If you don't need to keep the list you could use %pop instead of %item. Although it would seem your problem is the "@pointer/55+1", I don't understand from your description why you would need to divide, and of course since integer math is used 1 through 54 divided by 55 will result in 0.
Reply with quote
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Fri Aug 29, 2003 12:43 am   
 
Bleh dunno where or why i got that /55 part in there
ok the %pop(roomstodo) works but is there a similier command that does the same thing cept not delete the numbers in the list?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 29, 2003 12:53 am   
 
%item( @roomstodo, @pointer)
Reply with quote
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Fri Aug 29, 2003 2:55 am   
 
Well hell Rofl, Thank ya Vary Mooch!
Cool
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