The Dink Network

Assigning local and global variables to the loop:

May 3rd 2005, 04:31 AM
pig.gif
May 3rd 2005, 07:58 AM
pq_frog.gif
Ric
Peasant They/Them Canada
 
mabey
May 3rd 2005, 02:14 PM
anon.gif
spacehoggy
Ghost They/Them
 
Sorry about that confusing last post,I did it during sience and my teacher saw me doing the post, and i accidently posted it. what i meant to say was, Is there any way to have 2 or more loop: commands in one script by assigning variables or whatever to them. cheers.
May 3rd 2005, 03:16 PM
spike.gif
you can't assign variables to a loop.
May 3rd 2005, 03:31 PM
pig.gif
dang, so its impossible to have more than one loop in a script? that sucks.
May 3rd 2005, 05:16 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Ehm?

If we're talking about the same thing, then a loop is like this?

loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}

I haven't checked but ehm yeh, I think it's possible to then have a second loop after that, so:

loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}
loopagain:
&twovar += 1;
wait(250);
if (&twovar > 50)
{
goto loopagain;
}
May 3rd 2005, 11:32 PM
goblins.gif
igloo15
Peasant He/Him
 
don't see why it wouldn't be possible. in another note you can't have string variables in dinkc can you. Basically a local variable like
String myString = "hello";
Is this possible if not then lets hope its possible in windmere
May 4th 2005, 05:43 AM
anon.gif
spacehoggy
Ghost They/Them
 
Ahh cool, you just give the loop another name. cheers simeon.