The Dink Network

Forcing Respawns

March 5th, 11:18 PM
anon.gif
Ghostlight
Ghost
 
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, 05:33 AM
duck.gif
toof
Peasant Male
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, 07:28 PM
peasantmp.gif
Skurn
Peasant Male Equatorial Guinea xbox steam duck bloop
can't flim flam the glim glam 
editor type 0?

if not, then 8 only takes 1 minute to respawn