Trying something new here, the idea is that when you reach 8 good creatures a party of horned reapers are spawning in your dungeon.
When you have 0 creatures the timer should end, and kill all the horned reapers.
It somewhat functions in that way that it kills the horned reapers when you have 0 creatures but only when the bonus timer hits 0. And not when you reach 0 creatures.
The thing that doesn't function at all, is when the timer hits 0, and you have one or more creatures left, it should also kill the horned reapers.
Code:
IF(PLAYER0,GOOD_CREATURES == 8)
SET_TIMER(PLAYER0,TIMER2)
BONUS_LEVEL_TIME(2500)
QUICK_OBJECTIVE(3,"These horny's are here to purge your dungeon",PLAYER0)
ADD_PARTY_TO_LEVEL(PLAYER_GOOD,THE_PURGE,-1,1)
ENDIF
IF(PLAYER0,GOOD_CREATURES == 8)
SET_TIMER(PLAYER0,TIMER3)
ENDIF
IF(PLAYER0,TIMER2 > 2500)
BONUS_LEVEL_TIME(0)
IF(PLAYER0,TOTAL_CREATURES == 0)
KILL_CREATURE(PLAYER_GOOD,HORNY,MOST_EXPERIENCED,5)
ENDIF
ENDIF
IF(PLAYER0,TIMER3 > 2500)
IF(PLAYER0,TOTAL_CREATURES >= 1)
BONUS_LEVEL_TIME(0)
KILL_CREATURE(PLAYER_GOOD,HORNY,MOST_EXPERIENCED,5)
ENDIF
ENDIF