The Dink Network

Forcing Respawns

March 5th 2019, 11:18 PM
anon.gif
Ghostlight
Ghost They/Them
 
So Ive noticed enemies can respawn over time, which makes grinding easier in longer dmods and the main game for exp. But is there a way to force the respawn/refresh of normal without going into each individual enemy script?
Aslo without just changing the void die() and external to make a new enemy spawn, because that could get messy.
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.
March 6th 2019, 07:28 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
editor type 0?

if not, then 8 only takes 1 minute to respawn