REM KDK Level 9 (slow version)

SET_GENERATE_SPEED(350)

MAX_CREATURES(PLAYER0,32)
START_MONEY(PLAYER0,1550)

REM Creature_Availability

CREATURE_AVAILABLE(ALL_PLAYERS,FLY,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SPIDER,1,1)

ADD_CREATURE_TO_POOL(FLY,7)
ADD_CREATURE_TO_POOL(SPIDER,19)

REM Room_Availability

ROOM_AVAILABLE(ALL_PLAYERS,TREASURE,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,LAIR,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,GARDEN,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,TRAINING,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,RESEARCH,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,BARRACKS,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,GUARD_POST,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,BRIDGE,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,PRISON,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,TORTURE,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,TEMPLE,1,1)

REM Spells

MAGIC_AVAILABLE(ALL_PLAYERS,POWER_HAND,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_IMP,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SLAP,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SIGHT,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_CALL_TO_ARMS,1,1)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_SPEED,1,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_PROTECT,1,0)

REM doors & traps
TRAP_AVAILABLE(ALL_PLAYERS,POISON_GAS,1,0)
DOOR_AVAILABLE(ALL_PLAYERS,STEEL,1,0)

REM ----------------------------------------------------------------

REM CREATE_TEXT(2,81 "THIS LAND IS RULED BY FOUR POWERFUL WIZARDS.  IF YOU CAN OVERCOME THEM, YOU WILL CONQUER THEIR DOMAIN.")
DISPLAY_OBJECTIVE(81,PLAYER0)

IF(PLAYER_GOOD,WIZARD == 0)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,KNIGHT,-1,1,7,3000)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,THIEF,-1,3,5,3000)
    ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,ARCHER,-1,3,5,3000)
    IF(PLAYER_GOOD,KNIGHT == 0)
        REM CREATE_TEXT(5,82"CONGRATULATIONS, THIS LAND IS YOURS.")
        DISPLAY_OBJECTIVE(82,PLAYER_GOOD)
        WIN_GAME
    ENDIF
ENDIF

IF(PLAYER0,HORNY > 0)
    REM CREATE_TEXT(6,83"THE HORNED DEMON HAS ARISEN.  TRY NOT TO ANGER HIM, LEST HE GOES INTO A WARP SPASM.")
    DISPLAY_INFORMATION(83,PLAYER0)
ENDIF

IF_AVAILABLE(PLAYER0,POWER_DISEASE == 1)
    REM CREATE_TEXT(1,84"YOUR RESEARCHERS HAVE GIVEN YOU THE DISEASE SPELL.  CAST IT ON ENEMY CREATURES AND IT WILL DEVASTATE THEIR DUNGEON, SPREADING LIKE HELLFIRE.")
    DISPLAY_INFORMATION(84,PLAYER0)
ENDIF

IF(PLAYER0,VAMPIRE > 0)
    REM CREATE_TEXT(3,85"A VAMPIRE HAS ARISEN FROM YOUR GRAVEYARD, NOURISHED BY THE DEAD AND FALLEN.  TREAT HIM AND HIS KIND WELL FOR THEY WILL BE POWERFUL ALLIES IN BATTLE")
    DISPLAY_INFORMATION(85,PLAYER)
ENDIF

IF_AVAILABLE(PLAYER0,GRAVEYARD == 1)
    REM CREATE_TEXT(4,86"YOU HAVE RESEARCHED A GRAVEYARD.  HERE THE DEAD WILL BE TAKEN, AND FROM WITHIN A POWERFUL CREATURE WILL ARISE...")
    DISPLAY_INFORMATION(86,PLAYER0)
ENDIF

IF_AVAILABLE(PLAYER0,STEEL == 1)
    REM CREATE_TEXT(7,87"YOU HAVE MANUFACTURED A STEEL DOOR.  THIS IS THE MOST POWERFUL PHYSICAL DOOR.")
    DISPLAY_INFORMATION(87,PLAYER0)
ENDIF
