The Dink Network

Reply to 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 15th 2006, 03:28 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
I've got a problem with my script for a nut. If I "use" it, the entire game should be stopped, but somehow, it doesn't. Also, when choosing to eat the nut, Dink stays frozen, I don't see what I've done wrong. Help please! Hereby the script:

//item nut

void use( void )
{
freeze(1);
stop_entire_game(1);
say_stop("I think I can eat it. Or I can keep it.", 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);
}
}

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