The Dink Network

Reply to Re: Script that does not work

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 29th 2003, 01:41 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
How about placing something in the hit() procedure of the monster script? Like:

void hit(void)
{
playsound(29, 22050,0,&current_sprite, 0);
int &crap = sp_hitpoints(&current_sprite, -1);
if (&crap <= 25)
{
end();
}
}

Every time Dink hits the monsters, it checks the health of that monster. You could set it to less than 25 or something like that