
SET_GENERATE_SPEED(500)

MAX_CREATURES(ALL_PLAYERS,15)

START_MONEY(ALL_PLAYERS,10000)


ADD_CREATURE_TO_POOL(DEMONSPAWN,10)
ADD_CREATURE_TO_POOL(SPIDER,10)
ADD_CREATURE_TO_POOL(BUG,5)
ADD_CREATURE_TO_POOL(FLY,5)
ADD_CREATURE_TO_POOL(SORCEROR,5)

		
CREATURE_AVAILABLE(ALL_PLAYERS,DEMONSPAWN,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,FLY,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,BUG,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SPIDER,1,1)
CREATURE_AVAILABLE(ALL_PLAYERS,SORCEROR,1,1)
	

ROOM_AVAILABLE(ALL_PLAYERS,TREASURE,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,GARDEN,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,LAIR,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,TRAINING,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,RESEARCH,1,1)
ROOM_AVAILABLE(ALL_PLAYERS,BRIDGE,1,0)
ROOM_AVAILABLE(ALL_PLAYERS,GUARD_POST,1,0)

		
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,0)
MAGIC_AVAILABLE(ALL_PLAYERS,POWER_PROTECT,1,0)


DOOR_AVAILABLE(ALL_PLAYERS,WOOD,1,0)
TRAP_AVAILABLE(ALL_PLAYERS,ALARM,1,0)


DISPLAY_OBJECTIVE(7,PLAYER0)


CREATE_PARTY(ONE)
	ADD_TO_PARTY(ONE,DWARFA,2,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(ONE,THIEF,3,1000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(ONE,THIEF,3,1000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(ONE,DWARFA,2,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(ONE,DWARFA,2,500,ATTACK_ENEMIES,0)

CREATE_PARTY(TWO)
	ADD_TO_PARTY(TWO,THIEF,3,1000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(TWO,BARBARIAN,5,1000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(TWO,ARCHER,3,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(TWO,ARCHER,3,500,ATTACK_ENEMIES,0)

CREATE_PARTY(THREE)
	ADD_TO_PARTY(THREE,DWARFA,3,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(THREE,DWARFA,3,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(THREE,BARBARIAN,5,1500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(THREE,BARBARIAN,5,1500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(THREE,DWARFA,4,500,ATTACK_ENEMIES,0)

CREATE_PARTY(FOUR)
	ADD_TO_PARTY(FOUR,ARCHER,5,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(FOUR,BARBARIAN,7,2000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(FOUR,DWARFA,6,1000,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(FOUR,ARCHER,5,500,ATTACK_ENEMIES,0)
	ADD_TO_PARTY(FOUR,ARCHER,5,500,ATTACK_ENEMIES,0)


IF(PLAYER0, GAME_TURN > 3000)
	DISPLAY_INFORMATION(8,PLAYER0)
ENDIF


IF(PLAYER0,ENTRANCE > 0)
	SET_TIMER(PLAYER0,TIMER0)
ENDIF



IF(PLAYER0,TIMER0 > 8000)
	DISPLAY_INFORMATION(9,PLAYER0)
	ADD_TUNNELLER_PARTY_TO_LEVEL(PLAYER_GOOD,ONE,1,DUNGEON,0,3,1000)
ENDIF


IF(PLAYER0,TIMER0 > 12000)
	ADD_PARTY_TO_LEVEL(PLAYER_GOOD,ONE,1,1)
ENDIF



IF_ACTION_POINT(2,PLAYER0)
	DISPLAY_OBJECTIVE(10,PLAYER0)
	SET_TIMER(PLAYER0,TIMER1)
ENDIF


IF(PLAYER0,TIMER1 > 2000)
	ADD_PARTY_TO_LEVEL(PLAYER_GOOD,TWO,1,1)
ENDIF


IF(PLAYER0,TIMER1 > 7000)
	ADD_PARTY_TO_LEVEL(PLAYER_GOOD,THREE,1,1)
ENDIF


IF_ACTION_POINT(3,PLAYER0)
	SET_TIMER(PLAYER0,TIMER2)
ENDIF


IF(PLAYER0,TIMER2 > 1000)
	ADD_PARTY_TO_LEVEL(PLAYER_GOOD,FOUR,-1,1)
ENDIF


IF(PLAYER_GOOD,KNIGHT==0)
	DISPLAY_OBJECTIVE(11,PLAYER0)
	WIN_GAME
ENDIF

