The Dink Network

Reply to Re: is this script right

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:
 
 
April 27th 2003, 08:51 AM
spike.gif
Yup, it's right, but it'd be nicer if you'd do it like below...

void main( void )
{
int &karl = create_sprite(290, 230, 16, 381, 1);
sp_speed(&karl, 2);
sp_base_walk(&karl, 380);

preload_seq(381);
preload_seq(383);
//preload_seq(385);
preload_seq(387);
preload_seq(389);
}

void talk(void)
{
freeze(1);
freeze(&karl);

choice_start()
"hello"
"have you seen a guy named per"
"nevermind"
choice_end()

if (&result == 1)
{
say_stop("hi whats your name", 1);
say_stop("`2my name is karl", &karl);
}

if (&result == 2)
{
say_stop("have you seen a guy named per", 1);
say_stop("`2meaby.... has he blue clothes on today", &karl);
say_stop("yes!", 1);
say_stop("`2i saw him with a farmer for some minuttes ago", &karl);
say_stop("where did he go", 1);
say_stop("`2 he said he should go northwest", &karl);
}

unfreeze(1);
unfreeze(&karl);
//return;
}

also using wait(); between people talking is recommended.