Having trouble creating a campaign

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Tad_Carlucci
Inactive Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: Having trouble creating a campaign

Post by Tad_Carlucci »

Nothing that I can see.

But to test it, I had to switch from your custom event "move_to" to the standard event "moveto" ... :D
I forked real life and now I'm getting merge conflicts.
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Dayyam! :oops: :D
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Okay, lost again, these are both only half working, as in half the instructions seem to be being ignored entirely, have I messed my syntax up or are crude animations just not doable this way?

Code: Select all

[event]	
    	name=exit_hex
        [filter]
		   side=2
               type=Vampire Bat, Blood Bat, Dread Bat
		   x,y=65,70
		   [/filter]
     first_time_only=no
     [allow_undo] [/allow_undo]
	 {IF_VAR lighthouse_flames equals yes (
      [then]
      {SCROLL_TO 65 70}
     [lock_view]
	    x,y=65,70
	 [/lock_view]
     [sound]
         name=torch.ogg
     [/sound]
               [kill]
                   type=Vampire Bat, Blood Bat, Dread Bat
        	       x,y=65,70
                   animate=yes
               [/kill]

		{PLACE_IMAGE items/lighthouse.png 65 70}   

			   [sound]
		    name=hornsignals/horn-2.ogg
		[/sound] 
    [sound]
		    name=bat-flapping.wav
	[/sound]
	[item]
            x,y=65,70
     		halo=halos/fire-aura1.png
		    team_name=Arlo
            redraw=no
    [/item]			
	[item]
            x,y=65,70
     		halo=halos/fire-aura2.png
		    team_name=Arlo
            redraw=no
    [/item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura1.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura2.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura3.png
		    team_name=Arlo
            redraw=no
    [/item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura3.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura4.png
		    team_name=Arlo
            redraw=no
    [/item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura4.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura5.png
		    team_name=Arlo
            redraw=no
    [/item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura5.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura6.png
		    team_name=Arlo
            redraw=no
    [/item]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura6.png
		    team_name=Arlo
            redraw=no
    [/remove_item]
    [delay]
        time=700
    [/delay]
	    {CAPTURE_VILLAGES 1 65 70 1}
     [unlock_view]
	    x,y=65,70
	 [/unlock_view]
	[/then])}	 
[/event]
The one above deletes the lighthouse and doesn't add and remove the images, the one below seems to be ignoring the delay instructions, any ideas?

Code: Select all

[event]
    name= turn 3
    {SCROLL_TO 48 53}
    [message]
	    speaker=Shem
		message= _  "Release the Fire Fearie to destroy the altar!"
	[/message]
	{LOYAL_UNIT 4 (Fog Clearer) (48) (53)}	
    [modify_unit]
    [filter]
	id=Fog Clearer
	[/filter]
	image=units/glowball.png
	[/modify_unit]
    {MOVE_UNIT type="Fog Clearer" 33 72}

    {SCROLL_TO 33 72}
    [lock_view]
	    x,y=33,72
    [/lock_view]
    [item]
         x,y=33,72
         halo=halos/fire_fearie.png
    [/item] 
    [kill]
	    type="Fog Clearer"
	[/kill]
    [sound]
		    name=fire.wav
	[/sound]
    [sound]
		    name=cave-in.ogg
	[/sound]
    [item]
	     x,y=32,72
		 halo=items/altar.png
	[/item]
    [delay]
	    time=500
	[/delay]
    [item]
	     x,y=32,72
		 halo=items/altar-hot.png
    [/item]
    [delay]
        time=500
    [/delay]
    [item]
        x,y=32,72
        halo=items/rubble-altar.png
    [/item]
    [remove_item]
	    x,y=33,72
		halo=halos/fire_fearie.png
    [/remove_item]

    [remove_item]
        x,y=32,72
        halo=items/altar.png
    [/remove_item]	

    [remove_item]
	     x,y=32,72
		 image=items/altar.png
	[/remove_item]
    [delay]
        time=500
    [/delay]		
    [remove_item]
	     x,y=32,72
		 halo=items/altar-hot.png
    [/remove_item]
    [delay]
        time=500
    [/delay]		
    [remove_item]
        x,y=32,72
        halo=items/rubble-altar.png
    [/remove_item]
    [item]
        x,y=32,72
        image=items/rubble-altar-cold.png
    [/item]
    [delay]
	    time=700
	[/delay]
    [unlock_view]
	    x,y=33,72
    [/unlock_view]
[/event]
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

lua error.png
Hello again, I've tried to get a side using the protect micro ai and am getting this message, I presume this isn't solveable from my side..?
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Having trouble creating a campaign

Post by mattsc »

ZygoUgo wrote:I presume this isn't solveable from my side..?
Actually, just for once there is a very simple work-around for this. This is already fixed here for 1.13.6 and was due to an oversight when the Micro AI code was stream-lined. As you can see from the commit title, it only affects the protect_unit MAI when the (optional) ca_id key is not given. So you can simply add

ca_id=xxx

to the [micro_ai] tag for now, and everything should work. (Replace 'xxx' with whatever you want, or even keep it as 'xxx'.)
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Brilliant, thankyou :)
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Hello there peeps, I am having a dilemma where upon side 4 who are teamed only with themselves become friendly when side 2, specifically the giant spiders, are petrified. I need side 4 to stay enemies for the level to work. I have tried everything I can think of to stop this happening, but alas I cannot attack side 4, could this be a bug? Is it known at all? Thanks for any help!
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Having trouble creating a campaign

Post by zookeeper »

The team of a side isn't affected by whether some units are petrified or not. You must be changing side 4's team yourself somewhere. Or maybe you described the problem wrong.
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Not sure what I've managed to cause here, any remaining side 2 also become neutral, side 4 is still turning neutral when they are set to entirely different teams, I've probably made some silly mistake somewhere but I can't for the life of me see it, any one brave enough to pore through this lot? Sorry and thanks to anyone willing :hmm:

Code: Select all

[side]
	type= "Gryphon"
	controller="human"
    x,y=57,100
	fog=no
	gold=300
	hidden=no
	income=0
    id=Arlo the Gryphon
	name=Arlo the Gryphon
	share_vision="all"
	shroud=no
	side=1
	team_name="Arlo the Gryphon"
	user_team_name="Arlo the Gryphon"
    canrecruit=yes
    recruit="Ghost,Shadow,Wose"
	{FLAG_VARIANT long}
[/side]
[side]
	controller="ai"
    x,y=48,53
	gold=500
	hidden=no
	income=0
    id="Shem"
	name=Shem
	share_vision="all"
	side=2
	team_name="Shem"
	type= "Woodsman"
     village_gold=0
    canrecruit=yes
	recruit="Vampire Bat, Blood Bat, Dread Bat,"
	user_team_name="Shem"
	[unit]
		hidden=no
	    income=0
        id="Spider 1"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=47,56
		name="Ghast" 
	[/unit]
	[unit]
		hidden=no
	    income=0
        id="Spider 2"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=46,54
		name="Dread Legs" 
	[/unit]
    [unit]
			hidden=no
	    income=0
        id="Spider 3"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=48,51
		name="The Goth" 
    [/unit]
    [unit]
			hidden=no
	    income=0
        id="Spider 4"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=50,52
		name="Adolf" 
    [/unit]
    [unit]
		hidden=no
	    income=0
        id="Spider 5"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=51,55
		name="Larry" 
	[/unit]
    [unit]
			hidden=no
	    income=0
        id="Spider 6"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=49,56
		name="Charlene" 
    [/unit]
    [unit]
			hidden=no
	    income=0
        id="Spider 7"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=46,52
		name="Sir Henry" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 8"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=47,52
		name="Face Biter" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 9"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=49,52
		name="The Butcher" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 10"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=51,53
		name="Spite" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 11"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=51,54
		name="Guts" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 12"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=50,55
		name="Richard" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 13"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=46,55
		name="Terra" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 14"
	    share_vision="all"
	    side=2
		type= "Giant Spider"
        x,y=46,53
		name="Firma" 
		[/unit]
		[unit]
		hidden=no
	    income=0
        id="Extra bat 1"
	    share_vision="all"
	    side=2
		type= "Vampire Bat"
        x,y=67,90
		name="Scout" 
		[/unit]
		[unit]
		hidden=no
	    income=0
        id="Extra bat 2"
	    share_vision="all"
	    side=2
		type= "Vampire Bat"
        x,y=67,86
		name="Scout" 
		[/unit]
		[unit]
		hidden=no
	    income=0
        id="Extra bat 3"
	    share_vision="all"
	    side=2
		type= "Vampire Bat"
        x,y=64,76
		name="Scout" 
		[/unit]
		[unit]
		hidden=no
	    income=0
        id="Extra bat 4"
	    share_vision="all"
	    side=2
		type= "Vampire Bat"
        x,y=40,89
		name="Scout" 
		[/unit]
[/side]

[side]
	controller="ai"
    x=null
	y=null
	gold=500
	hidden=no
	income=0
    id="Fake Shem"
	name=Fake Shem
	share_vision="all"
	side=3
	team_name="Shem"
	type= "Woodsman"
     village_gold=0
	user_team_name="Shem"
		        [unit]
			hidden=no
	    income=0
        id="Spider 15"
	    share_vision="all"
	    side=3
		type= "Giant Spider"
        x,y=47,54
		name="Aktuktuk" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 16"
	    share_vision="all"
	    side=3
		type= "Giant Spider"
        x,y=48,52
		name="Doza" 
		[/unit]
		        [unit]
			hidden=no
	    income=0
        id="Spider 17"
	    share_vision="all"
	    side=3
		type= "Giant Spider"
        x,y=49,54
		name="Ikar" 
		[/unit]
	[/side]
	

[side]
	controller="ai"
    x=null
	y=null
	gold=0
	hidden=yes
	income=0
    id="Tentacle of the Deep"
	name="Gasping Touch"
	share_vision="all"
	side=4
	team_name="Tent"
	type= "Tentacle of the Deep"
	user_team_name="Tent"
    canrecruit=yes
	scroll_to_leader=no

[/side]
[side]
            id="Ancient Wose"
            type= "Ancient Wose"
			name="Enteran the Great"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=83,68
	        gold=0
			hidden=no
	        income=0
	        side=5
	      scroll_to_leader=no
		  team_name=Monsters
		  user_team_name=Monsters
[/side]
[side]
	type= "Ranger"
	controller="ai"
    x,y=18,61
	fog=no
	gold=0
	hidden=no
	income=0
    id=Rufus
	name="Rufus"
	share_vision="all"
	shroud=no
	side=6
	team_name="Arlo the Gryphon"
	user_team_name="Arlo the Gryphon"
    canrecruit=no
	[/side]
[time]
	blue=-10
	description=""
	green=-35
	id="second_watch"
	image="misc/time-schedules/default/schedule-secondwatch.png"
	lawful_bonus=0
	mask=""
	name=_"Second Watch"
	red=-45
	sound=""
[/time]

    [/objectives]
        [micro_ai]
            side=2
            ai_type=coward
            action=add
            attack_if_trapped='yes'
            id=Shem
            distance=2
		[/micro_ai]
		[micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 1"
        return_x,return_y=47,56
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 2"
        return_x,return_y=46,54
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 3"
        return_x,return_y=48,51
		distance=6
		[/micro_ai]
       [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 4"
        return_x,return_y=50,52
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 5"
        return_x,return_y=51,55
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 6"
        return_x,return_y=49,56
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 7"
        return_x,return_y=46,52
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 8"
        return_x,return_y=47,52
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 9"
        return_x,return_y=49,52
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 10"
        return_x,return_y=51,53
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 11"
        return_x,return_y=51,54
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 12"
        return_x,return_y=50,55
		distance=6
		[/micro_ai]
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 13"
        return_x,return_y=46,55
		distance=6
		[/micro_ai]		
        [micro_ai]
		side=2
		ai_type=return_guardian
		action=add
		id="Spider 14"
        return_x,return_y=46,53
		distance=6
		[/micro_ai]
        [micro_ai]
		side=5
		ai_type=return_guardian
		action=add
		id="Ancient Wose"
        return_x,return_y=83,68
		distance=1
		[/micro_ai]
        [micro_ai]
            side=3
            ai_type=protect_unit
            action=add
            [unit]
                id=Shem
                goal_x,goal_y=48,53
                ca_id=xxx
			[/unit]
            disable_move_leader_to_keep=true
        [/micro_ai]
		
#define OBJ_EYE X Y ID
    [item]
        x={X}
        y={Y}
        image=items/gasping_eye.png
    [/item]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            x={X}
            y={Y}
		id=Arlo the Gryphon
		[/filter]
        [object]
            id={ID}
            name= _ "Eye of the Gasping Touch"
            image=items/gasping_eye.png
            duration=forever
            description= _ "A gross slimy eye, it's quite heavy. Oddly you feel better as you pick it up and it seems to have healing properties. You must take it to the Anvil of Thursagan."
            [filter]
                x={X}
                y={Y}
            [/filter]
            [then]
                [remove_item]
                    x,y={X},{Y}
                [/remove_item]
            [/then]
            [effect]
                apply_to=new_ability
                [abilities]
                    {ABILITY_REGENERATES}
                [/abilities]
            [/effect]
        [/object]
        {VARIABLE has_eye yes}
	[/event]
#enddef
#define OBJ_HEART X Y ID
    [item]
        x={X}
        y={Y}
        image=items/flower4.png
    [/item]

    [event]
        name=moveto
        first_time_only=no
        [filter]
            x={X}
            y={Y}
		id=Arlo the Gryphon
		[/filter]
        [object]
            id={ID}
            name= _ "Rufus' Heart"
            image=items/flower4.png
            duration=forever
            description= _ "Brings the bearer powers of the werewolf."
            [filter]
                x={X}
                y={Y}
            [/filter]
            [then]
                [remove_item]
                    x,y={X},{Y}
                [/remove_item]
            [/then]
            [effect]
                apply_to=new_ability
                [abilities]
                    {ABILITY_REGENERATES}
                    {ABILITY_NIGHTSTALK}
					{ABILITY_STEADFAST}
                    {ABILITY_SKIRMISHER}
				[/abilities] 
			[/effect]
        [/object]
    [/event]
#enddef

[/event]



[event]
    name=turn 6
	    [filter]
            type=Vampire Bat
        [/filter]
    first_time_only=no
	[ai]
        grouping=no
        simple_targeting=yes
        aggression=1.0
        caution=-5.0
        {ATTACK_DEPTH 1 3 5}
	[/ai]
[/event]
[event]
    name=turn 10
        [filter]
            type=Blood Bat
        [/filter]
	[ai]
        grouping=no
        simple_targeting=yes
        aggression=1.0
        caution=-5.0
        {ATTACK_DEPTH 1 3 5}
    [/ai]
[/event]
[event]
    name=turn 12
        [filter]
            type=Dread Bat
        [/filter]
	[ai]
        grouping=no
        simple_targeting=yes
        aggression=1.0
        caution=-5.0
        {ATTACK_DEPTH 1 3 5}
    [/ai]
[/event]

[event]
    name=moveto
        [filter]
            id=Arlo the Gryphon
            x,y=49,10
        [/filter]
        [modify_side]
	         shroud=no
	    [/modify_side]
		[message]
            speaker=narrator
            message= _ "The strange inky darkness lifts suddenly, and there is revealed a spectacular citadel reaching as far as the eye can see, resplendant in shining marble..."
        [/message]
        {SCROLL_TO 50 1}
        [message]
            speaker=narrator
            message= _ "But it seems you cannot get to it... You turn about confused..."
        [/message]
		        [message]
            speaker=Gorg
			message= _ "...You are not ready for that yet..."
        [/message]
[/event]

[event]
    name=moveto
	    [filter]
		    side=1
			id=Arlo the Gryphon
            x,y=75,66
		[/filter]
		[allow_recruit]
            side=1
            type="Ghost, Shadow"
        [/allow_recruit]
		[sound]
                name=ambient/wardrums.ogg
            [/sound]
            [sound]
                name=wail-long.wav
            [/sound]
		[message]
		    speaker=narrator
            image=portraits/undead/nightgaunt.png
			message= _  "woooaoooaoaaAAOOOOAOAOOOoaaaoaoaooo!!"
			[/message]
        [message]
		    speaker=Arlo the Gryphon
			message= _  "ARGH!!"
		[/message] 
        [message]
		    speaker=narrator
            image=portraits/undead/wraith.png
			message= _  "Fear not Arlo, for we are part of you, this is your dream , is it not?"
		[/message]
		[message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "Call upon us and we will guard you!"
		[/message]
        [message]
		    speaker=narrator
            image=portraits/undead/nightgaunt.png
			message= _  "Sorry about that, you caught me mid-wail."
		[/message]
        [message]
		    speaker=Arlo the Gryphon
			message= _  "That's...okaaay..."
		[/message]
		[allow_recruit]
            side=1
            type=Spectre, Wraith, Nightgaunt
        [/allow_recruit]
		[message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "Arlo. If you are to return to your other life, you must find a way out of here. We must claim the castle to the North West, the birdmen have been gone a long time, but maybe we will find some useful weapons."
		[/message]

{SCROLL_TO 57 41}
[delay]
    time=700
[/delay]

        [message]
		    speaker=narrator
            image=portraits/undead/wraith.png
			message= _  "Yes. we must head to the abandoned castle immediately. We are to re-ignite the causeway to our temple and need your help in return. Look!"
		[/message]
        {SCROLL_TO 75 66}
        {SCROLL_TO 75 51}
        [sound]
		    name=magic-holy-2.ogg
		[/sound]
		[message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "Behold! The holy mushrooms..!"
		[/message]
        [message]
		    speaker=narrator
            image=portraits/undead/nightgaunt.png
			message= _  "Behold!!"
		[/message]
        [message]
		    speaker=Arlo the Gryphon
			message= _  "...Right...Very well, a fair exchange!"
		[/message]
        [message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "We have been wailing all night, not that it is ever day here. The loss greives us! The mushrooms must be re-empowered!"
        [/message]
	    [message]
		    speaker=narrator
            image=portraits/undead/nightgaunt.png
			message= _  "Usually they are all lit up nice."
		[/message]			
        [message]
		    speaker=narrator
            image=portraits/undead/wraith.png
			message= _  "Yes, anyway.. We must protect both castles from this ghoulish infestation, your murder.."
		[/message]
       [message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "NEAR murder..!"
        [/message]
        [message]
		    speaker=narrator
            image=portraits/undead/wraith.png
			message= _  "Sorry, yes, your NEAR murder seems to have summoned your brother's wickedness in actual form, hence the foul denizens he brings with him. The castles must be protected from them lest his evil deed becomes form in these castles too. That would mean death for Arlo here, we must call upon the spirits and recruit the Wose from the forest across the bridge, although they are a bit grumpy. I suggest we place guards here and..."
		[/message]
       [message]
		    speaker=narrator
            image=portraits/undead/spectre.png
			message= _  "Right lets go. Quicker the better."
        [/message]
        [message]
		    speaker=narrator
            image=portraits/undead/nightgaunt.png
			message= _  "'Foul denizens..!' I like that..."
		[/message]
        [sound]
		    name=bat-hit-3.ogg
		[/sound]
		[message]
		    speaker=narrator
			image=portraits/monsters/bat.png
			message= _  "!!!!!!"
		[/message]
		[message]
		    speaker=Shem
			message= _  "What!? A castle! Send forth the Transmogrification Lord to transform upon the throne, and prepare a second one! Kill them all and multiply!"
		[/message]

    [modify_ai]
          side=2
          action=add
          path=goal[]
          [goal]
          id=attack_castle_one
          [criteria]
            x,y=75,66
			[and]
			  side=1
			[/and]
		  [/criteria]
          value=10000
          [/goal]
    [/modify_ai]

	[unit]
		hidden=no
	    income=0
        id="Sh'ron"
	    share_vision="all"
	    side=1
		type= "Nightgaunt"
        x,y=74,65
		name="Sh'ron" 
	    [modifications]
        {TRAIT_LOYAL}
        {TRAIT_RESILIENT}
        [/modifications]
            {IS_LOYAL}
    	[/unit]
    [unit]
		hidden=no
	    income=0
        id="Rhaal"
	    share_vision="all"
	    side=1
		type= "Wraith"
        x,y=75,67
		name="Rhaal" 
	    [modifications]
        {TRAIT_LOYAL}
        {TRAIT_RESILIENT}
        [/modifications]
            {IS_LOYAL}
    	[/unit]
    [unit]
		hidden=no
	    income=0
        id="Gorg"
	    share_vision="all"
	    side=1
		type= "Spectre"
        x,y=76,65
		name="Gorg the III" 
	    [modifications]
        {TRAIT_LOYAL}
        {TRAIT_RESILIENT}
        [/modifications]
            {IS_LOYAL}
    	[/unit]		
[move_unit_fake]
    type="Dread Bat"
	x=48,57
	y=53,41
[/move_unit_fake]	
    [unit]
    type="Draug"      
        can_recruit=no 			
        gold=0
        hit_points=100	     
        hidden=no
	    income=0
        id="Krol"
	    share_vision="all"
	    side=2
        x,y=57,41
		name="Krol"
		is_leader=yes
		team_name=Shem
		user_team_name=Shem
	[modifications]
        {TRAIT_LOYAL}
        {TRAIT_RESILIENT}
    [/modifications]
    [modify_unit]
        ai_special=guardian
    [/modify_unit]		
	[/unit]
      [modify_unit]
          [filter]
      type=Ancient Wose
          [/filter]
      team_name=Arlo the Gryphon
      user_team_name=Arlo the Gryphon
      side=1
     [/modify_unit]

        [sound]
         name=skeleton-die-1.ogg
        [/sound]

	[message]
	    speaker=Krol
		message= _  "Free at last! HAHAAA! A master in the realm!!!!"
    [/message] 
	{LOYAL_UNIT 2 (Deathblade) (57) (40)} 
	{LOYAL_UNIT 2 (Bone Shooter) (58) (40)}
	{LOYAL_UNIT 2 (Deathblade) (57) (42)}
	{LOYAL_UNIT 2 (Bone Shooter) (58) (41)}
	{LOYAL_UNIT 2 (Bone Shooter) (56) (40)}
	{LOYAL_UNIT 2 (Deathblade) (56) (41)}
	{LOYAL_UNIT 2 (Vampire Bat) (47) (53)}
	{LOYAL_UNIT 2 (Vampire Bat) (47) (54)}	
	{LOYAL_UNIT 2 (Vampire Bat) (47) (55)}	
	{LOYAL_UNIT 2 (Vampire Bat) (48) (55)}	
	{LOYAL_UNIT 2 (Vampire Bat) (49) (55)}	
	{LOYAL_UNIT 2 (Vampire Bat) (50) (54)}	
	{LOYAL_UNIT 2 (Vampire Bat) (50) (53)}	
	{LOYAL_UNIT 2 (Vampire Bat) (49) (53)}	
	{LOYAL_UNIT 2 (Blood Bat) (48) (52)}	
	{LOYAL_UNIT 2 (Dread Bat) (48) (54)}	
	{LOYAL_UNIT 2 (Dread Bat) (49) (54)}	
    [disallow_recruit]
	side=1
	type=Wraith, Spectre, Nightgaunt
	[/disallow_recruit]

   [modify_turns]
       value=1
   [/modify_turns]
   [message]
       speaker=Ancient Wose
	   message= _  "Hmmmpf! This 'Shem' brings many bad things, we will join you in your fight, we will battle the Shem too!"
	[/message]
   [modify_turns]
	   add=29
   [/modify_turns]
	[objectives]
	    side=1
        [objective]
		description= _  "Guard this castle and take the castle to the North before turn 30 is up, Arlo must take the keep."
		condition=win
		[/objective]
		[objective]
		description= _  "Protect both castles from Shem's scouts, keep the Dread bats off the castles at all costs!"
		condition=win
        red=0
		green=230
		blue=230
		[/objective]
		[objective]
		description= _  "Get Arlo to the keep in the North castle!"
		condition=win
        red=0
		green=230
		blue=230
		[/objective]
        [objective]
		description= _  "Shem takes both castles, you will be swamped by horrid spawns, and trapped in Limbo forever as his prisoner!"
		condition=lose
        red=0
		green=230
		blue=230
		[/objective]
        [objective]
		description= _  "Your death"
		condition=lose
		[/objective]
        [objective]
		description= _  "The death of any of your three loyal gaurdians."
		condition=lose
		[/objective]
        {TURNS_RUN_OUT} 
		[/objectives]	    	
        {SCROLL_TO 75 66}
[/event]

[event]
    name=moveto
	    [filter]
		    side=1
			id=Arlo the Gryphon
            x,y=57,41
		[/filter]
                [sound]
                 name=gryphon-hit-2.ogg
                [/sound] 
                [move_unit_fake]
                    type=Elder Falcon
                    side=1
                    x=56,55,54,53,52,56
                    y=41,48,47,48,47,41
                [/move_unit_fake]
                [kill]
                    id=Elder Falcon
                [/kill]
				[allow_recruit]
                    side=1
                    type=Elder Falcon
                [/allow_recruit]
				{LOYAL_UNIT 1 (Elder Falcon) (56) (41)}
                [sound]
                 name=gryphon-hit-2.ogg
                [/sound]
                [message]
				    speaker=Arlo the Gryphon
					message= _  "This falcon is trained, perhaps there are more..!"
				[/message]					
        [sound]
		    name=bat-hit-3.ogg
		[/sound]
		[message]
		    speaker=narrator
			image=portraits/monsters/bat.png
			message= _  "!!!!!!"
		[/message]
		[message]
		    speaker=Shem
			message= _  "Gaaah! At least now I have the means to destroy the altar!! Set to work!"
		[/message]
{VARIABLE altar_destroy yes}
	    [message]
		    speaker=Arlo the Gryphon
			message= _  "Look! Here there are spirits willing to recruit with us! We will need them to battle Shem's gaurdians."
		[/message]
		[allow_recruit]
		    type=Wraith, Nightgaunt
			side=1
		[/allow_recruit]

[modify_ai]
    side=2
    action=add
    path=goal[]
    [goal]
        id=second_castle_attack
        [criteria]
            side=1
        [/criteria]
        value=10000
    [/goal]
[/modify_ai]
{SCROLL_TO 57 41}

    [modify_turns]
       value=30
   [/modify_turns]
   [modify_turns]
       add=15
   [/modify_turns]


	[objectives]
	    side=1
        [objective]
		description= _  "Break through Shem's wall of guardian spiders and vanquish his evil force. destroy him before turn 45."
		condition=win
		[/objective]
        [objective]
		description= _  "Your death"
		condition=lose
		[/objective]
        [objective]
		description= _  "The death of any of your three loyal gaurdians."
		condition=lose
		[/objective]
        {TURNS_RUN_OUT} 
		[/objectives]
[/event]				 

[event] 
    name=turn 8
	  [allow_recruit]
            side=2
            type=Giant Spider
        [/allow_recruit]
[/event]
[event]
   name=turn 12
  	{LOYAL_UNIT 2 (Giant Spider) (49) (54)}   
[/event][event]
   name=turn 14
  	{LOYAL_UNIT 2 (Giant Spider) (48) (54)}   
[/event]


[event]
    name=moveto
    first_time_only=no
    [filter]
	    side=2
		type=Dread Bat
             	x=75,76,76,75,74,74,73,72,73,75,77,78,77
			y=66,65,66,67,66,65,65,66,68,68,68,66,65
	[/filter]
        [transform_unit]
            side=2
            x=75,76,76,75,74,74,73,72,73,75,77,78,77
			y=66,65,66,67,66,65,65,66,68,68,68,66,65
            type=Dread Bat
			transform_to=Death Knight
        [/transform_unit]
        [sound]
         name=skeleton-die-1.ogg
        [/sound]
        [message]
		    speaker=narrator
            image=portraits/undead/death Knight.png
			message= _  "HA HAAAA! Attaaack!"
        [/message] 
 {MOVE_UNIT id="Death Knight" 75 66}      
        [modify_unit]
		    [filter]
             type=Death Knight
			[/filter]
			ai_special=guardian
            hitpoints=70
         [/modify_unit]
 [/event]
		
[event]
    name=die
	    [filter]
	    id=Rufus
	    [/filter]
        [message]
        speaker=Rufus
        message= _  "I am taken!"
	    [/message]
        [message]
        speaker=Arlo the Gryphon
        message= _  "This cannot be!"
	    [/message]
	    [message]
        speaker=Rufus
        message= _  "Goodbye, Arlo!"
	    [/message]
        [transform_unit]
        id=Rufus
		transform_to=Direwolf
		[/transform_unit]
        [modify_unit]
           [filter]
           type=Direwolf
           name=Rufus
           [/filter]
           hitpoints=150
          {TRAIT_HEALTHY}
           team_name="Arlo the Gryphon"
	       user_team_name="Arlo the Gryphon"
           side=1
           name=Rufus Wolf
           id=Rufus Wolf		   
             [attack]
		       description= _  "Maul"
			   name=Maul
			   type=blade
			   icon=attacks/fangs-animal.png
			   range=melee
			   damage=30
			   number=2
			   accuracy=35
			   defence_weight=30
		    [/attack]
            [attack_anim]
			    [filter_attack]
				    name=Maul
				[/filter_attack]
        offset=0.0~-0.1:100,-0.1~0.0:50,0.0~0.3:50,0.3~0.5:100,0.5~0.6:50,0.6~0.4:100,0.4~0.2:50,0.2~0.0:100
        start_time=-350
        [frame]
            image="units/monsters/direwolf.png:100"
            sound={SOUND_LIST:WOLF_GROWL}
        [/frame]
        [frame]
            image="units/monsters/direwolf-attack.png:200"
        [/frame]
        {SOUND:HIT sounds/wolf-growl-2.ogg -100}
        [frame]
            image="units/monsters/direwolf-moving.png:250"
        [/frame]
        [frame]
            image="units/monsters/direwolf.png:50"
        [/frame]
            [/attack_anim]
	[resistance]
		   [filter]
		    name=Rufus Wolf
			type=Direwolf
		   [/filter]
           value=50
		   max_value=90
	[/resistance]
		[object]
		   [filter]
		    name=Rufus Wolf
			type=Direwolf
		   [/filter]
		   {OBJ_HEART null null "Rufus' Heart"}
        [/object]
           [abilities]
		   [filter]
		    name=Rufus Wolf
			type=Direwolf
		   [/filter]
			    {ABILITY_REGENERATES}
                {ABILITY_NIGHTSTALK}
	    		{ABILITY_STEADFAST}
                {ABILITY_SKIRMISHER}
		    [/abilities]
    	[/modify_unit]
		[sound]
            name=wolf-growl-2.ogg
		[/sound]		
		[message]
        speaker=Rufus Wolf
        image=portraits/wolfsmaller.png
		message= _  "GRAAAARRR!AAAAAARRRRRRRLLLLOOOOOO!!"
        [/message]
        [message]
        speaker=Arlo the Gryphon
        message= _  "Father?!"
        [/message]
        [message]
        speaker=narrator
        image=portraits/wolfsmaller.png
		message= _  "I AM AT YOUR WILL!!!"
        [/message]
        [message]
        speaker=Arlo the Gryphon
        message= _  "Then you must find somewhere defensive and stay there until I command you."
	    [/message]
        [message]
        speaker=narrator
        image=portraits/wolfsmaller.png
		message= _  "YES MASTER!"
        [/message]
        {MOVE_UNIT id="Rufus Wolf" 47 65}
        [message]
        speaker=Arlo the Gryphon
        message= _  "Master?!"
	   	[/message]		
[/event]
[event]
    name=die
	    [filter]
		    type=Tentacle of the Deep
		[/filter]
    {IF_DEAD 4 (
        [sound]
         name=lightning.ogg
        [/sound]

	{OBJ_EYE 56 29 eye_of_the_sea_beast}
    {QUAKE "rumble.ogg"}
		{PLACE_IMAGE items/gasping_body.png 56 29}
	[sound]
         name=ink.ogg
        [/sound]
    {FADE_TO_BLACK_HOLD 2000}
	[modify_side]
	    shroud=yes
	[/modify_side]
        [message]
         speaker=Arlo the Gryphon
         message= _  "Such darkness must be ink from the sea beast!"
	    [/message]

   [modify_turns]
       add=10
   [/modify_turns]
    {FADE_IN}
    )}
	[/event]
[event]
    name=die
	    [filter]
	    id=Shem
	    [/filter]
        [message]
        speaker=Shem
        message= _  "..Shame on you brother! Shame!!"
	    [/message]	
        [message]
        speaker=narrator
        image=portraits/humans/outlaw.png
	    message= _  "Paid me well you did!!"
	    [/message]
        {MODIFY_TERRAIN Md 29 41}
        {SCROLL_TO 29 41}
	[item]
	    team_name=Arlo the Gryphon
        x,y=29,41
        halo=halos/flash.png		
	[/item]
	[item]
	    team_name=Arlo the Gryphon
        x,y=29,41
        halo=halo/fire-aura.png		
	[/item]
    [sound]
        name=drake-die.ogg
	[/sound]
	[remove_item]
        x,y=29,41
		halo=units/fire-dragon-petrified.png
	[/remove_item]

	[remove_item]
        x,y=29,41
		halo=halos/flash.png
	[/remove_item]
	[remove_item]
        x,y=29,41
		halo=halo/fire-aura.png
	[/remove_item]        

[move_unit_fake]
    type="Fire Dragon"
	x=29, 48
	y=41, 53
[/move_unit_fake]
{NAMED_NOTRAIT_UNIT 5 (Fire Dragon) 48 53 (Living Statue) (Living Statue)}

        [modify_ai]
           [filter]
           side=5
           type=Fire Dragon
		 [/filter]
            [goal]
                 [criteria]
                     side=2,1
                 [/criteria]
                     value=10000
		    [/goal]
        [/modify_ai]			
        [modify_unit]
           [filter]
           side=5
           type=Fire Dragon
		 [/filter]
	     team_name=Monsters
    user_team_name=Monsters
	[/modify_unit]
    [modify_unit]
	    [filter]
		    type=Giant Spider
		[/filter]
		    side=2
            team_name=Shem
			user_team_name=Shem
	[/modify_unit]
    [message]
        speaker=narrator
		image=portraits/monsters/gryphon.png
        message= _  "What side will this living statue take?!"
        [/message]
	[/event]

[event]
    name=die
	    [filter]
		    id=Living Statue
	    type=Fire Dragon
	[/filter]       
        [transform_unit]
        id=living Statue
		transform_to=Fire Dragon
		[/transform_unit]
		{QUAKE (cave-in.ogg)}
        [sound]
            name=fire.wav
		[/sound]
    [modify_side]
        [filter]
         Side=5
         type=Fire Dragon
        [/filter]
        hit_points=100
        name=Petrified Dragon
        team_name=Monsters
		user_team_name=Monsters
    [/modify_side] 
   [petrify]
	    type=Fire Dragon
    [/petrify]
    {SCROLL_TO 48 53}
	[petrify]
        type=Giant Spider
	[/petrify]		
    [lock_view]
	    x,y=48,53
    [/lock_view]
    [delay]
        time=700
    [/delay]
    
    {MOVE_UNIT id="Fire Dragon" 48 53}
	[kill]
	    type=Fire Dragon
		x,y=48,53
	[/kill]
	
		[item]
            x,y=48,53
		    team_name=Arlo the Gryphon
     		halo=units/fire-dragon-petrified.png
            redraw=no
		[/item]
	        {MODIFY_TERRAIN ^Xo 48 53}
    [sound]
	    name=drake-die.ogg
	[/sound]
    [sound]
	    name=thunderstick.ogg
	[/sound]

	[message]
        speaker=narrator
		image=portraits/monsters/gryphon.png
        message= _  "Gods!! What's happening to the spiders?!"
        [/message]
        [message]
		    speaker=Rhaal
			message= _  "This is your realm Arlo. Your gateway, sometime you will realise what they represent, if you make it out of this limbo."
		[/message]
    [unlock_view]
	    x,y=48,53
	[/unlock_view]
                [message]
		    speaker=Gorg
			message= _  "Open your mind and tell us what you see..."
		[/message]    
                [message]
		    speaker=Arlo the Gryphon
			message= _  "The first thing I see is a great eye on an anvil."
		[/message]   
                [message]
		    speaker=narrator
                 image=portraits/undead/nightgaunt.png
			message= _  "He mentions the anvil!"
			[/message]   
		{HIGHLIGHT_IMAGE 40 34 items/anvil.png null}
        [message]
		    speaker=Gorg
			message= _  "...And there is only one great eye in this dream-world, the eye of The Gasping Touch..."
		[/message]
		{SCROLL_TO 56 29} 
    [delay]
	    time=700
	[/delay]
		[message]
                 image=portraits/undead/nightgaunt.png
               speaker=narrator
			message= _  "He's had it coming to him for a long time!!!"
		[/message]        
	            [message]
		    speaker=Rhaal
			message= _  "The sea-beast that inhabits this realm, your mind, this...limbo. We must set upon it strategically with a ..."
		[/message]
                [message]
		    speaker=Gorg
			message= _  "Charge!"
		[/message]		

	[modify_turns]
       value=45
   [/modify_turns]
   [modify_turns]
       add=15
   [/modify_turns]

    [objectives]
	    side=1
		[objective]
		description= _  "Destroy The Gasping Touch!"
		condition=win
		[/objective]
        [objective]
		description= _  "Arlo must take the eye to the Anvil of Thursagan"
		condition=win
        red=0
		green=230
		blue=230
		[/objective]
        [objective]
		description= _  "Your death."
		condition=lose
		[/objective]
        [objective]
		description= _  "The death of any of your three loyal gaurdians."
		condition=lose
		[/objective]
        {TURNS_RUN_OUT} 
	[/objectives]	
		
[/event]			

[event]
    name=moveto
	    [filter]
		    side=1
			id=Arlo the Gryphon
            x,y=63,87
		[/filter]   
         [message]
		 speaker=narrator
         image=lighthousebigger.png
		 message= _  "There is no one here... A foul smell emanates from under the door."
		 [/message]
[/event]
[event]
    name=moveto
	    [filter]
		    side=1
			id=Arlo the Gryphon
            x,y=71,79
		 [/filter]   
         [message]
		 speaker=narrator
         image=lighthousebigger.png
		 message= _  "There is a half eaten bowl of gruel on the doorstep, it smells bad and is still slightly warm..."
		 [/message]
[/event]
[event]
    name=moveto
	    [filter]
		    side=1
			id=Arlo the Gryphon
            x,y=65,70
		[/filter]   
         [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Greetings half-life, care to join me? There is much watching to be done, I have the best views! Are you perchance after the job?"
		 [/message]
		 [message]
         speaker=Arlo the Gryphon
         message= _  "Oh! I...uh..I'm trying to find my way out of here!"
	    [/message]		 
         [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Well, good luck with that. I do not know how long I have been here for, I once was a wood worker of sorts, but now I keep the three lighthouses lit. Scone?"
		 [/message]
		 [message]
         speaker=Arlo the Gryphon
         message= _  "That's a lump of mould, there's no scone left."
	    [/message]
         [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "I keep it incase I get visitors."
		 [/message]
		 [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Any how, sorry if I look awful, I haven't had much sleep recently. There's been some ghastly wailing coming from that castle over there..."
		 [/message]
         {SCROLL_TO 75 66}

    [delay]
        time=700
    [/delay]

	 [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Might be worth investigating, you could tell them to keep the noise down for me."
		 [/message]
		 [message]
         speaker=Arlo the Gryphon
         message= _  "Please excuse me, I really must be going."
	    [/message]
		 [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Oh. very well then, although I would have you stay a little longer. Let me know if you find a way out.."
        [/message]
		 [message]
         speaker=Arlo the Gryphon
         message= _  "By the way, if any giant bats land on your lighthouse, I would advise you to kill them."
	    [/message]		
		 [message]
		 speaker=narrator
         image=portraits/undead/ghoul.png
		 message= _  "Hmmmm, I have indeed been witness to the beginning of this infestation on this very night, very well, I have a torch here to use. Good night to you."
        [/message]
{VARIABLE lighthouse_flames yes}
[/event]

[event]	
    	name=exit_hex
        [filter]
		   side=2
               type=Vampire Bat, Blood Bat, Dread Bat
		   x,y=65,70
		   [/filter]
     first_time_only=no
     [allow_undo] [/allow_undo]
	 {IF_VAR lighthouse_flames equals yes (
      [then]
      {SCROLL_TO 65 70}
     [lock_view]
	    x,y=65,70
	 [/lock_view]
            	[kill]
                   type=Vampire Bat, Blood Bat, Dread Bat
        	       x,y=65,70
                   animate=no
                [/kill]
    [sound]
         name=torch.ogg
    [/sound]
	[sound]
		    name=horn-signals/horn-2.ogg
	[/sound] 
    [sound]
		    name=bat-flapping.wav
	[/sound]
        [item]
        x,y=65,70
        image=items/lighthouse.png
	[/item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura1.png
		    team_name=Arlo the Gryphon
            redraw=no
    [/item]			
    [delay]
	    time=100
	[/delay]

	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura1.png
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura2.png
		    team_name=Arlo the Gryphon
            redraw=no
    [/item]
    [delay]
        time=100
    [/delay]

	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura2.png
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura3.png
    [/item]
    [delay]
        time=100
    [/delay]

	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura3.png
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura4.png
		    team_name=Arlo the Gryphon
            redraw=no
    [/item]
    [delay]
        time=100
    [/delay]

	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura4.png
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura5.png
		    team_name=Arlo the Gryphon
            redraw=no
    [/item]
    [delay]
        time=100
    [/delay]

	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura5.png
    [/remove_item]
	[item]
            x,y=65,70
     		halo=halos/fire-aura6.png
		    team_name=Arlo the Gryphon
            redraw=no
    [/item]
    [delay]
        time=100
    [/delay]
	[remove_item]
            x,y=65,70
     		halo=halos/fire-aura6.png
    [/remove_item]
	    {CAPTURE_VILLAGES 1 65 70 1}
    [item]
        x,y=65,70
        image=items/lighthouse.png
	[/item]
	[item]
	        x,y=65,70
			halo=halo/lighthouse-aura.png
			team_name=Arlo the Gryphon
			redraw=no
	[/item]
 [unlock_view]
	    x,y=65,70
	 [/unlock_view]
	[/then])}	 
[/event]
		

[event]
    name=moveto
	        [filter]
			    id=Arlo the Gryphon
                x,y=40,34
			[/filter]
                {IF_VAR has_eye equals yes (
        [then]				
		{PLACE_IMAGE items/gasping_eye.png 40 32}
        {QUAKE "dragonstick.ogg"}
		{PLACE_IMAGE items/gasping_eye_red.png 40 32}
		{PLACE_IMAGE items/ball-magenta.png 40 32}
		
		[remove_item]
		    x,y=40,32
            image=items/gasping_eye.png
        [/remove_item]			
		[remove_item]
		    x,y=40,32
            image=items/gasping_eye_red.png
        [/remove_item]		

		[item]
            x,y=40,32
     		halo=data/core/images/halo/fire-aura.png
		    team_name=Arlo the Gryphon
            redraw=no
		[/item]
		 [message]
         speaker=Arlo the Gryphon
         message= _  "The anvil literally stole it! That's incredible, but what does it do?!"
	    [/message]
        [message]
		    speaker=narrator
            image=portraits/undead/wraith.png
			message= _  "I recognise this, it is the first half of a portal summoning. It could be a permanent doorway from limbo. Arlo? You seem to be fading.... Arlo...WE MUST COMPLETE THE DOORWAY..."
		[/message]

    [endlevel]
            result=victory
            bonus=no
            {NEW_GOLD_CARRYOVER 0}
    [/endlevel]
    [/then])}
	[/event]

[event]
    name=moveto
	    [filter]
		    side=2
           x,y=18,61
		[/filter]
        {SCROLL_TO 18 61}
        [lock_view]
            x,y=18,61
		[/lock_view]
		[sound]
            name=cave-in.ogg
        [/sound]
		{PLACE_IMAGE terrain/village/human-hills-ruin.png 18 61}
         
	[if]
			   side=6
			   has_unit=Rufus
			[then]
        [delay]
            time=1000
        [/delay]
			[message]
		    speaker=Rufus
			message= _  "Damn them! they've ruined our home! Such wickedness!"
		[/message]    
			[/then]
        [elseif]
		     side=1
			     has_unit=Rufus Wolf
					[then]
        [delay]
            time=1000
        [/delay]
			[message]
		    speaker=Rufus Wolf
            image=portraits/wolfsmaller.png
			message= _  "GRRRR! Wickedness!"
		[/message]    
			[/then]		 
		[/elseif]
	[/if]
		 
 [unlock_view]
		    x,y=18,61
		[/unlock_view]	
[/event]
		
[event]
    name=turn 12
    [disallow_recruit]
         side=2
         type=Blood Bat, Dread Bat, Vampire Bat
    [/disallow_recruit]
	{LOYAL_UNIT 2 (Vampire Bat) (49) (55)}	
	{LOYAL_UNIT 2 (Vampire Bat) (50) (54)}	
	{LOYAL_UNIT 2 (Vampire Bat) (50) (53)}	
[/event]

[event]
    name=moveto
	    [filter]
		    side=2
			type=Draug, Death Knight
            x,y=75,66    
		[/filter]
    {LOYAL_UNIT 2 (Deathblade) (74) (65)} 
	{LOYAL_UNIT 2 (Bone Shooter) (76) (65)}
	{LOYAL_UNIT 2 (Deathblade) (74) (67)} 
	{LOYAL_UNIT 2 (Bone Shooter) (75) (67)}
	{LOYAL_UNIT 2 (Deathblade) (76) (67)} 
	{LOYAL_UNIT 2 (Bone Shooter) (76) (65)}
[/event]	

[event]
    name= last breath
        [filter]
		    id=Shem
		[/filter]
    {SCROLL_TO 48 53}
    [message]
	    speaker=Shem
		message= _  "*Gasp* Release the Fire Guardian to destroy the altar! Arg! The pain! Ha! You'll be trapped here forever!"
	[/message]
    	[unit]
            id="Tentacle of the Deep 1"
            type="Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=yes
			share_vision="all"
			controller="ai"
            x,y=56,29
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
			[unit]
            id="Tentacle of the Deep 2"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=55,30
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
        	hidden=yes
    		id="Tentacle of the Deep 3"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=55,29
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 4"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=57,29
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
         	hidden=yes
	    	id="Tentacle of the Deep 5"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=56,30
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 6"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=57,30
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 7"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=55,28
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 8"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=56,28
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 9"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=54,28
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 10"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=54,29
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 11"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=54,30
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]
        [unit]
            id="Tentacle of the Deep 12"
            type= "Tentacle of the Deep"
			name="Gasping Touch"
            canrecruit=no
			share_vision="all"
			controller="ai"
            x,y=56,30
	        gold=0
	        hidden=no
	        income=0
	        side=4
            team_name="Tent, Monsters"
			user_team_name="Tent, Monsters"
			[/unit]

        [set_variable]
            name=Gasping Touch
            value=1
        [/set_variable]

        [modify_ai]
           [filter]
           side=4
           type=Tentacle of the Deep
		 [/filter]
            [goal]
                 [criteria]
                     side=1
                 [/criteria]
                     value=10000
		    [/goal]
        [/modify_ai]

		[modify_unit]
		   [filter]
			type=Tentacle of the Deep
		   [/filter]
    	[abilities]
                {ABILITY_SUBMERGE}
		[/abilities]		
           [attack]
		       description= _  "crush"
			   name=Crush
			   type=impact
			   icon=attacks/tentacle.png
			   range=melee
			   damage=45
			   number=1
			   accuracy=25
			   defence_weight=80
            [/attack]
			[attack]
		       description= _  "slam"
			   name=Slam
			   type=impact
			   icon=attacks/tentacle.png
			   range=melee
			   damage=14
			   number=3
			   accuracy=35
			   defence_weight=60
            [/attack] 
[/modify_unit]

	[move_unit_fake]
	    type="Fire Guardian"
		x=48,32
		y=53,72
	[/move_unit_fake]

    {SCROLL_TO 33 72}
    [lock_view]
	    x,y=33,72
    [/lock_view]

    [item]
         x,y=30,70
         image=halos/fire_fearie.png
	[/item] 

    [sound]
		    name=fire.wav
	[/sound]
    [sound]
		    name=cave-in.ogg
	[/sound]
    [item]
	    x,y=32,72
		halo=items/lighthouse-aura.png
         redraw=no
		 team_name=Arlo the Gryphon
		[/item]

    [remove_item]
	     x,y=32,72
		 image=items/altar.png
	[/remove_item]				
    [remove_item]
	     x,y=32,72
		halo=items/lighthouse-aura.png
    [/remove_item]
   	
    [item]
	    x,y=32,72
		halo="items/altar-anim-1.png"
		    team_name=Arlo the Gryphon
            redraw=no
		[/item]
        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		image="items/altar-anim-1.png"
    [/remove_item]
		[item]
	    x,y=32,72
		image="items/altar-anim-2.png"
		    team_name=Arlo the Gryphon
            redraw=no
		[/item]
		
        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		image="items/altar-anim-2.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-3.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-3.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-4.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-4.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-5.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-5.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-6.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-6.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-7.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-7.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-8.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

 	[remove_item]
	    x,y=30,70
		image=halos/fire_fearie.png
    [/remove_item]		
		
        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-8.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-9.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-9.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-10.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-10.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-11.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-11.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-12.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
     [remove_item]
	    x,y=32,72
		halo="items/altar-anim-12.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-13.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-13.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-14.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-14.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-15.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
	[remove_item]
	    x,y=32,72
		halo="items/altar-anim-15.png"
    [/remove_item]
		[item]
	    x,y=32,72
		halo="items/altar-anim-16.png"
	    team_name=Arlo the Gryphon
            redraw=no
		[/item]

        [delay]
		    time=50
		[/delay]
    [remove_item]
	    x,y=32,72
		halo="items/altar-anim-16.png"
    [/remove_item]		

	[delay]
	    time=700
	[/delay]
    [unlock_view]
	    x,y=33,72
    [/unlock_view]
    [message]
	    speaker=Arlo the Gryphon
		message= _  "What was that?!"
	[/message]
    [message]
	    speaker=Gorg
		message= _  "Something important I suspect. *sigh*"
	[/message]
	    [message]
	    speaker=Sh'ron
		message= _  "Woe the doings of Shem!"
	[/message]
    [message]
	    speaker=Rhaal
		message= _  "Damnit! What, we will no doubt find out later..."
	[/message]	
	[/event]

[/scenario]
I have removed anything definately irrelevant but I'm still stumped when having another look through, the Tentacle of the Deep units are enemies until the dragon and the spiders turn to stone
User avatar
Ravana
Forum Moderator
Posts: 3000
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Having trouble creating a campaign

Post by Ravana »

To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Oops, sorry, I'll sort that out now :oops:
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Having trouble creating a campaign

Post by zookeeper »

You posted over 2000 lines of messy code which is also full of all sorts of complete nonsense. Even if you indent it, no one should be expected to wade through that.

You also give the impression that the code actually runs, but it wouldn't because of at least one clear syntax error.
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

Well it does run for whatever reason, as for expecting anyone to wade through it I don't expect anything, apologies if I've offended your sensibilities but this is all new to me. I am however stumped as to the problem so some help would be greatly appreciated. The only reason I left any 'nonsense' in was in case it was relevant to the problem, which I don't have a clue about. Like I said, this is new to me so any help is a bonus.
You could perhaps be helpful by telling me what the syntax error is, as the program seems to run apart from the explained problem, I haven't seen any, maybe I'm going code blind. ;)
Tad_Carlucci
Inactive Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: Having trouble creating a campaign

Post by Tad_Carlucci »

First, it seems like you're jumping into the deep end and need to back off and make baby steps while you're learning WML.

Second, as with almost everywhere else, when asking a question, it's best to be brief and clear. Zookeeper's comment was meant in that vein; we can't see the issue because you're asking too general a question and providing far too much information. It would be better to narrow it down to just a line, or a few lines. And, often, when working to narrow down your question, you'll find you see the answer without needing assistance.

If there is a syntax error, you should see a notice about it when you start the campaign and enter the scenario with the error. What I do is keep a window open with the console, and run wesnoth from that console, so I can see the messages sent there. (If you're on Windows, you'll need to add -wconsole to the wesnoth command to tell it to send the messages there.)
I forked real life and now I'm getting merge conflicts.
ZygoUgo
Posts: 50
Joined: September 2nd, 2016, 8:42 pm

Re: Having trouble creating a campaign

Post by ZygoUgo »

I also didn't mean for my reply to be unfriendly, although it was perhaps a little defensive. You are right, I do tend to jump in the deep end and didn't explain/narrow down the problem very well. I am however very frustrated and jumped for help, I've been over and over the scenario and cannot see how the problem is occurring, I now understand WML well enough to know about sides and teams and how I have set them out, there is nothing there I can see that should turn everything neutral/friendly. Sorry to be a pain it's just I'm so close to moving on to the next scenario and this problem seemed to pop up after I initially had it working. Never mind, I'll keep searching, I'm sure I'll figure it eventually. And I do appreciate any help I get, again, sorry for being a pain.
Post Reply