/////////////////////////////////////////////////////////////////////
// VOC1.S - Vocation map 1
/////////////////////////////////////////////////////////////////////

SETUP

    IF !gd_PLACED_VOC1_MONSTERS

        PlaceC                  V1_SKEL_1   pV1_SKEL_1A
        AddControl              V1_SKEL_1   MoveCDir    pV1_SKEL_1B
        AddControl              V1_SKEL_1   MoveCDir    pV1_SKEL_1A
        SequenceLoops           V1_SKEL_1
        SwitchOnSightOfPlayer   V1_SKEL_1   AttackDemo2

        PlaceC                  V1_SKEL_2   pV1_SKEL_2A
        AddControl              V1_SKEL_2   MoveCDir    pV1_SKEL_2B
        AddControl              V1_SKEL_2   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_2   MoveCDir    pV1_SKEL_2C
        AddControl              V1_SKEL_2   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_2   MoveCDir    pV1_SKEL_2A
        AddControl              V1_SKEL_2   Capture     cM_GUARD_STAND2
        SequenceLoops           V1_SKEL_2
        SwitchOnSightOfPlayer   V1_SKEL_2   AttackDemo2

        PlaceC                  V1_SKEL_3   pV1_SKEL_3A
        AddControl              V1_SKEL_3   MoveCDir    pV1_SKEL_3
        AddControl              V1_SKEL_3   MoveCDir    pV1_SKEL_3A
        SequenceLoops           V1_SKEL_3
        SwitchOnSightOfPlayer   V1_SKEL_3   AttackDemo2

        SWITCH RAND-3
            CASE 0
        		PlaceC          V1_SKEL_4   pV1_SKEL_4A
            CASE 1
        		PlaceC          V1_SKEL_4   pV1_SKEL_4B
            CASE 2
        		PlaceC          V1_SKEL_4   pV1_SKEL_4C
        ENDSWITCH
        AddControl              V1_SKEL_4   Capture     cM_GUARD_STAND1
        AddControl              V1_SKEL_4   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_4   Capture     cM_GUARD_STAND3
        SequenceRandomlySelects V1_SKEL_4
        SwitchOnSightOfPlayer   V1_SKEL_4   AttackDemo2

        PlaceC                  V1_SKEL_5   pV1_SKEL_5A
        AddControl              V1_SKEL_5   MoveCDir    pV1_SKEL_5A
        AddControl              V1_SKEL_5   MoveCDir    pV1_SKEL_5B
        AddControl              V1_SKEL_5   MoveCDir    pV1_SKEL_5C
        AddControl              V1_SKEL_5   MoveCDir    pV1_SKEL_5D
        AddControl              V1_SKEL_5   MoveCDir    pV1_SKEL_5E
        SequenceRandomlySelects V1_SKEL_5
        SwitchOnSightOfPlayer   V1_SKEL_5   AttackDemo2

   		PlaceC                  V1_SKEL_6   pV1_SKEL_6
        AddControl              V1_SKEL_6   Capture     cM_GUARD_STAND1
        AddControl              V1_SKEL_6   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_6   Capture     cM_GUARD_STAND3
        SequenceRandomlySelects V1_SKEL_6
        SwitchOnSightOfPlayer   V1_SKEL_6   SetScriptFlagControl    gd_V1_SKEL_ATTACK

   		PlaceC                  V1_SKEL_7   pV1_SKEL_7
        AddControl              V1_SKEL_7   Capture     cM_GUARD_STAND1
        AddControl              V1_SKEL_7   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_7   Capture     cM_GUARD_STAND3
        SequenceRandomlySelects V1_SKEL_7
        SwitchOnSightOfPlayer   V1_SKEL_7   SetScriptFlagControl    gd_V1_SKEL_ATTACK

        PlaceC                  V1_SKEL_8   pV1_SKEL_8A
        AddControl              V1_SKEL_8   MoveCDir    pV1_SKEL_8B
        AddControl              V1_SKEL_8   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_8   MoveCDir    pV1_SKEL_8C
        AddControl              V1_SKEL_8   Capture     cM_GUARD_STAND2
        AddControl              V1_SKEL_8   MoveCDir    pV1_SKEL_8A
        AddControl              V1_SKEL_8   Capture     cM_GUARD_STAND2
        SequenceLoops           V1_SKEL_8
        SwitchOnSightOfPlayer   V1_SKEL_8   AttackDemo2

        PlaceC                  V1_SPIDER_1   pV1_SPIDER_1A
        AddControl              V1_SPIDER_1   MoveC    pV1_SPIDER_1B
        AddControl              V1_SPIDER_1   MoveC    pV1_SPIDER_1A
        SequenceLoops           V1_SPIDER_1
        SwitchOnSightOfPlayer   V1_SPIDER_1   SpiderAttack

        PlaceC                  V1_SPIDER_2   pV1_SPIDER_2A
        AddControl              V1_SPIDER_2   MoveC    pV1_SPIDER_2A
        AddControl              V1_SPIDER_2   MoveC    pV1_SPIDER_2B
        AddControl              V1_SPIDER_2   MoveC    pV1_SPIDER_2C
        AddControl              V1_SPIDER_2   MoveC    pV1_SPIDER_2D
        SequenceLoops           V1_SPIDER_2
        SwitchOnSightOfPlayer   V1_SPIDER_2   SpiderAttack

        Add gd_PLACED_VOC1_MONSTERS
    ENDIF

	IF mj_FOUND_BLOODMASTER
		IF !gt_PLACED_THARD_VAN_9
			Add gt_PLACED_THARD_VAN_9
			PlaceC THARD_VAN_9 pVAN_9
			Wander THARD_VAN_9
			SwitchOnSightOfPlayer THARD_VAN_9 AttackDemo2
			PlaceC THARD_VAN_10 pVAN_10
			Wander THARD_VAN_10
			SwitchOnSightOfPlayer THARD_VAN_10 AttackDemo2
		ENDIF
	ENDIF

	playmusic rpg26.wav
END

VIG TempSetup FALSE

    SetWeather  0 0 0 0 0 0 0 0
	PlaceBeehive pHIVE1 300
	
END

/////////////////////////////////////////////////////////////////////

VIG V1SkelAttack    gd_V1_SKEL_ATTACK && !gd_V1_SKEL_ATTACKING
    AttackDemo2 V1_SKEL_6    
    AttackDemo2 V1_SKEL_7

    Add gd_V1_SKEL_ATTACKING
	
END

/////////////////////////////////////////////////////////////////////
