The Dink Network

Reply to Problem with script

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 2004, 04:24 PM
wizardg.gif
chaotic
Peasant He/Him
 
Grr.. I assigned this script to a sprite and whenever it runs it, it runs the die procedure after the main procedure and the sprite hasn't even died... makes me so frustrated...

void main( void )
{
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 2);
sp_timing(&current_sprite, 0);
sp_defense(&current_sprite, 4);
sp_base_walk(&current_sprite, 380)
sp_strength(&current_sprite, 4);
sp_touch_damage(&current_sprite, 4);
sp_hitpoints(&current_sprite, 100);
sp_target(&current_sprite, 1);
sp_exp(&current_sprite, 100);
unfreeze(1)
unfreeze(&current_sprite)
screenlock(1)
}
void die( void )
{
if (get_sprite_with_this_brain(9, &current_sprite) == 0)
{
spawn("killer")
screenlock(0);
}
}