The Dink Network

Reply to Re: Me comment

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 4th 2002, 12:45 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
: Ya, wait(1); is easily noticeable.. but it doesn't screw the world if there's a knight following Dink, and when Dink walks to the next screen the knight isn't there right away.. It's only a beauty problem, really.

: I don't understand.. 'Dink can't run several scripts at same time', do you mean two loops or two scripts overally? Two scripts work, I've never needed two loops at same time.

: BTW, how is it possible to create a no-wait loop, that doesn't only re-run when the screen is changed, story changes etc. I found loop without wait(); only to tilt my computer..

Read DinkC Reference v3.0 under the wait command for a better understanding of Dink's ability to multi-task.

Here is an example of a no-wait loop:

&mydumbvar = 5;

loop:

&gold += 4;

&mydumbvar -= 1;

(&mydumbvar > 0) goto loop;

So basically, in order for a no-wait loop to work, you have to have the end of the loop happen because of something happening within the loop. &mydumbvar will eventually become less than 0, because it decreases from within the loop.

However, if you had the loop above, except making the execution of the loop like:

(&story == 45) goto loop;

Then it would freeze, because &story will never change, because Dink will only run the the code that is in the loop.