The Dink Network

Reply to Script(s) Problem(s)

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:
 
 
December 23rd 2005, 07:42 AM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
Dink is going to get some nut from an alktree for his mother, when he gets back is his village on fire, and after dink has fainted and the fire is gone, can dink go and get more nuts, but then is the village on fire again.

//Nut Script
void main( void )
{
sp_touch_damage(&current_sprite, -1);
}

void touch( void )
{
int &junk = free_items();

if (&junk < 1)
{
say("I'm full! I can't pick up anything else.", 1);
return;
}
Playsound(10,22050,0,0,0);
add_item("item-nut",438, 19);

if (&nuttree < 1)
{
&nuttree = 1;
&story = 2;
}

say("I picked up a nut!",1);
sp_active(&current_sprite, 0);

}

//Vision Script
void main( void )
{

if (&story == 2)
{
&vision = 1;

say("OH NO, My village is on fire!! I need to check if mom is ok!", 1);
}

if (&story >= 3)
{
&vision = 2;
}

}