The Dink Network

Reply to Re: Screenlocking/Story

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:
 
 
July 29th 2010, 04:09 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
This script will make dink say Goodbye the first time and both hello and goodbye the second time he interacts with the sprite:
void main(void)
{
int &blah = 0;
}

void talk(void)
{
freeze(1);
if(&blah == 1)
say_stop("Hello", 1);
say_stop("Goodbye ", 1);
&blah = 1;
unfreeze(1);
}

This however will say nothing the first time and both the second
void main(void)
{
int &blah = 0;
}
void talk(void)
{
freeze(1);
if(&blah == 1)
{
say_stop("Hello", 1);
say_stop("Goodbye ", 1);
}
&blah = 1;
unfreeze(1);
}


So, as I said, the bracklets are needed if you want to include more then one line in the 'if'.

@Skorn: We are all still learning stuff, but sometimes it's better to learn yourself, the problem with asking for help is that you might just copy the new script and paste it in your own without bothering to figure out what you did wrong. That way you learn nothing.