|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Aug 29, 2003 12:53 am |
%item( @roomstodo, @pointer)
|
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: Fri Aug 29, 2003 2:55 am |
Well hell Rofl, Thank ya Vary Mooch!
|
|
|
|
|
|