The Dink Network

Reply to Re: Script Trouble

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 16th 2006, 01:34 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
The script has some bracketerrors as well, try this script:

void use( void )
{
freeze(1);
say_stop("I think I can eat it. Or I can keep it.", 1);
stop_entire_game(1);
wait(200);
choice_start()
set_y 240
set_title_color 15
title_start();
Eat the nut?
title_end();
"Yes"
"Nay"
choice_end()

if (&result == 1)
{
&life += 3;
if (&life > &lifemax)
&life = &lifemax;
say("Yum, that nut's mighty tasty.", 1);
kill_cur_item();
unfreeze(1);
}

//removed two brackets here

if (&result == 2)
{
say("I'd rather keep it.", 1);
unfreeze(1);
}
}
//added one bracket here