Forcing Respawns
March 5th 2019, 11:18 PM
Ghostlight
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.
Aslo without just changing the void die() and external to make a new enemy spawn, because that could get messy.
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...
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.
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 reenter 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.