Sorry for the double post but here is another problem, as ALL_PLAYERS for the kill command doesn't work for neutral creatures, here is an alternative script, which does not work at all! ( Might be an error as well, though no error log )
Code:
IF(PLAYER0,TOTAL_CREATURES <= 0)
QUICK_OBJECTIVE(6,"You have no creatures left, which means you are defeated keeper!",PLAYER0)
LOSE_GAME
ENDIF
IF(PLAYER0,TOTAL_CREATURES == 1)
MAGIC_AVAILABLE(PLAYER0,POWER_POSSESS,1,1)
ENDIF
IF(PLAYER0,GAME_TURN >= 6000)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_POSSESS,0,0)
ENDIF
IF(PLAYER0,GAME_TURN >= 6000)
IF_CONTROLS(PLAYER0, IMP <= 0)
QUICK_OBJECTIVE(7,"You failed to rescue your imps in time. You have been defeated!",ALL_PLAYERS)
LOSE_GAME
ENDIF
ENDIF
IF(PLAYER0,GAME_TURN >= 5780)
IF_CONTROLS(PLAYER0, IMP <= 0)
ADD_PARTY_TO_LEVEL(PLAYER_GOOD,DEFEAT,+4,1)
ENDIF
ENDIF
As I try to make neutral creatures to die for the death party ( lvl 10 Avatar will show up and defeat all, it is used for fun, as you won't have a chance to defeat him anyway) if player won't make it in time to rescue imps ( captuirng them to own side), well, this method doesn't work anyway because when game turn gets longer, I am defeated anyway.
keeperlog says no errors, maybe I should put as flagged state, but, I do not know