The Dink Network

Reply to Re: doh!

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:
 
 
June 6th 2003, 04:01 PM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Well, since dink doesn;t support while, for, ect loops, goto's are needed, but there is a easier way to write that script (and probably much better for editing. Here is my example.

void talk(void)
{
if (&stick == 3)
{
say_stop("Third text", 1);
&stick += 1;
editor_type(&current_sprite, 1);
}
if (&stick == 2)
{
say_stop("Second text", 1);
&stick += 1;
editor_type(&current_sprite, 1);
}
if (&stick == 1)
{
say_stop("First text", 1);
&stick += 1;
editor_type(&current_sprite, 1);
}
}