The Dink Network

Big heart

January 25th 2010, 06:08 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
I want an enemy to always drop a big heart when killed. What do I put in the void die to achieve that?
January 25th 2010, 06:49 AM
knightgl.gif
castman
Peasant He/Him Brazil
Some day I'll finish my mod... Some day... 
To make it by the beautyfull way you must change it at "emake" script

Add there (on emake.c):

void heart ( void )
{
//lets give 'em a large heart
int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
sp_script(&crap, "heart");
return;
}

At the monster "void die" change the 'external' command to:

external("emake", "heart");

This will call the script "emake" and run the "heart" void procedure which is create a big heart

January 25th 2010, 07:07 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Nice, works like a charm now.