The Dink Network

Reply to Re: Forcing Respawns

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:
 
 
March 6th 2019, 05:33 AM
duck.gif
toof
Peasant He/Him
I disagree. 
Not sure if this is the right answer, but you could make a generic script for each type of enemies you want to incorporate (enemies INC lol ), and just attach that one to bonca, slayer, slime, whatever...

void die( void )
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6); 
//The above part makes sure that when this enemy dies it will only return after 6 minutes
//(So it isn’t back if you re­enter the screen immediately)
...


I don't have experience in writing enemy scripts, so you can just wait for someone else to reply, but I think that modifying void(die) void, is unavoidable.