The Dink Network

Reply to Re: wrong

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:
 
 
May 29th 2005, 12:55 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
I don't know what you've done with the sprites and visions but assuming that works correctly, let's look at this script.

You can have only 1 void talk(void) procedure in a script so you should remove one of them and place both conversations in there. Second, you need brackets - { and } - for if-statements as well (if (&story < 3) and (&story >= 3)). Also, you can't have a semicolon (; ) after an if-statement (if (&story == 3); is not allowed). The script should look like (or what I can make of it, the &story = 1; line puzzles me a bit):

void talk(void)
{
freeze(1);
freeze(&current_sprite);
if (&story < 3)
{
say_stop("Hello, mother", 1);
wait(250);
say_stop("`5hello darling, what about going to johnny?", &current_sprite);
wait(250);
say_stop("Great idea! Bye mum!", 1);
wait(250);
say_stop("`5remember to come home for dinner!", &current_sprite);
wait(250);
&story = 1;
//?
}
if (&story >= 3)
{
say_stop("Hi, mother", 1);
wait(250);
say_stop("`5it aint dinner time yet.", &current_sprite);
wait(250);
say_stop("uhm... i shall... go, on a picnic, i might not come back on a while", 1);
wait(250);
say_stop("`5Oh, ok.", &current_sprite);
}
unfreeze(1);
unfreeze(&current_sprite);
}