THoT S6: cleaned up/refactored code
This commit is contained in:
parent
e82b13682a
commit
97079c7f50
1 changed files with 148 additions and 135 deletions
|
@ -1,12 +1,14 @@
|
|||
#textdomain wesnoth-thot
|
||||
|
||||
[scenario]
|
||||
name=_"High Pass"
|
||||
id=06_High_Pass
|
||||
name=_"High Pass"
|
||||
map_data="{campaigns/The_Hammer_of_Thursagan/maps/06_High_Pass.map}"
|
||||
{TURNS 24 18 12}
|
||||
next_scenario=07_Mages_and_Drakes
|
||||
victory_when_enemies_defeated=no
|
||||
map_data="{campaigns/The_Hammer_of_Thursagan/maps/06_High_Pass.map}"
|
||||
|
||||
{DEFAULT_SCHEDULE}
|
||||
{TURNS 24 18 12} # BALANCE
|
||||
|
||||
# The map should be a twisty, narrow path through rugged snow-capped
|
||||
# mountains. The objective will be to get Aiglondur through to the
|
||||
|
@ -27,32 +29,34 @@
|
|||
[/story]
|
||||
|
||||
[side]
|
||||
type="Dwarvish Fighter"
|
||||
id="Aiglondur"
|
||||
name=_"Aiglondur"
|
||||
side=1
|
||||
controller=human
|
||||
canrecruit=yes
|
||||
side="1"
|
||||
controller="human"
|
||||
recruit="Dwarvish Fighter, Dwarvish Thunderer,Dwarvish Guardsman, Dwarvish Scout"
|
||||
{GOLD 100 80 60}
|
||||
team_name="northern_alliance"
|
||||
user_team_name=_"Alliance"
|
||||
{FLAG_VARIANT knalgan}
|
||||
fog="no"
|
||||
|
||||
type="Dwarvish Fighter"
|
||||
id="Aiglondur"
|
||||
name=_"Aiglondur"
|
||||
|
||||
shroud=yes
|
||||
recruit="Dwarvish Fighter, Dwarvish Thunderer,Dwarvish Guardsman, Dwarvish Scout"
|
||||
{GOLD 100 80 60} # BALANCE
|
||||
{FLAG_VARIANT knalgan}
|
||||
[/side]
|
||||
|
||||
[side]
|
||||
side=2
|
||||
canrecruit=yes
|
||||
recruit=Gryphon
|
||||
{GOLD 60 80 100}
|
||||
team_name=wildthings
|
||||
user_team_name=_"Monsters"
|
||||
|
||||
type=Gryphon
|
||||
id=Kaara
|
||||
name= _ "Kaara"
|
||||
side=2
|
||||
canrecruit=yes
|
||||
team_name=wildthings
|
||||
user_team_name=_"Monsters"
|
||||
recruit=Gryphon
|
||||
{GOLD 60 80 100} # BALANCE
|
||||
|
||||
[ai]
|
||||
{ATTACK_DEPTH 1 3 5}
|
||||
passive_leader=yes
|
||||
|
@ -72,55 +76,32 @@
|
|||
name=typeofenemy
|
||||
rand=Wolf,Ogre,Troll
|
||||
[/set_variable]
|
||||
|
||||
[unit]
|
||||
side=3
|
||||
x,y={X},{Y}
|
||||
type=$typeofenemy
|
||||
generate_name=yes
|
||||
random_traits=yes
|
||||
type=$typeofenemy
|
||||
side=3
|
||||
[/unit]
|
||||
[if]
|
||||
[variable]
|
||||
name=typeofenemy
|
||||
equals=Wolf
|
||||
[/variable]
|
||||
[then]
|
||||
[unit]
|
||||
x,y={X},{Y}
|
||||
type=Wolf
|
||||
side=3
|
||||
[/unit]
|
||||
#ifdef NORMAL
|
||||
[unit]
|
||||
x,y={X},{Y}
|
||||
type=Wolf
|
||||
side=3
|
||||
[/unit]
|
||||
#endif
|
||||
#ifdef HARD
|
||||
[unit]
|
||||
x,y={X},{Y}
|
||||
type=Wolf
|
||||
side=3
|
||||
[/unit]
|
||||
#endif
|
||||
[/then]
|
||||
[/if]
|
||||
[clear_variable]
|
||||
name=typeofenemy
|
||||
[/clear_variable]
|
||||
|
||||
[fire_event]
|
||||
name=spawn_extra_wolf
|
||||
[primary_unit]
|
||||
x,y={X},{Y}
|
||||
[/primary_unit]
|
||||
[/fire_event]
|
||||
|
||||
{CLEAR_VARIABLE typeofenemy}
|
||||
#enddef
|
||||
|
||||
[event]
|
||||
name="prestart"
|
||||
{PLACE_IMAGE (scenery/signpost.png) 30 11}
|
||||
{PLACE_IMAGE (scenery/signpost.png) 30 11}
|
||||
|
||||
[recall]
|
||||
id="Angarthing"
|
||||
[/recall]
|
||||
[event]
|
||||
name=prestart
|
||||
|
||||
[objectives]
|
||||
side="1"
|
||||
side=1
|
||||
[objective]
|
||||
description=_"Move Aiglondur to the signpost at the east end of the pass"
|
||||
condition="win"
|
||||
|
@ -141,16 +122,22 @@
|
|||
carryover_percentage=40
|
||||
[/gold_carryover]
|
||||
[/objectives]
|
||||
|
||||
[recall]
|
||||
id="Angarthing"
|
||||
[/recall]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name="start"
|
||||
name=start
|
||||
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
speaker=Angarthing
|
||||
message=_"Behold, the High Pass. By the old maps, we are halfway to Kal Kartha here."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
speaker=Aiglondur
|
||||
message=_"We must push through quickly; there is a vicious storm coming in behind us. Being caught in a blizzard on those heights would be no laughing matter."
|
||||
[/message]
|
||||
|
||||
|
@ -159,7 +146,9 @@
|
|||
x=29-31
|
||||
y=10-12
|
||||
[/remove_shroud]
|
||||
|
||||
{HIGHLIGHT_IMAGE 30 11 scenery/signpost.png ()}
|
||||
|
||||
[place_shroud]
|
||||
side=1
|
||||
x=29-31
|
||||
|
@ -172,48 +161,73 @@
|
|||
|
||||
[event]
|
||||
name=turn 3
|
||||
|
||||
{WILDTHING 8 7}
|
||||
{WILDTHING 8 12}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=turn 6
|
||||
|
||||
{WILDTHING 12 6}
|
||||
{WILDTHING 13 11}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=turn 9
|
||||
|
||||
{WILDTHING 17 12}
|
||||
{WILDTHING 18 9}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=turn 12
|
||||
|
||||
{WILDTHING 25 9}
|
||||
{WILDTHING 27 14}
|
||||
[/event]
|
||||
|
||||
#define RATHELN_ENCOUNTER
|
||||
#enddef
|
||||
[event]
|
||||
name=spawn_extra_wolf
|
||||
first_time_only=no
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=typeofenemy
|
||||
equals=Wolf
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
|
||||
[unit]
|
||||
x,y={X},{Y}
|
||||
type=Wolf
|
||||
side=3
|
||||
[/unit]
|
||||
|
||||
#ifndef EASY
|
||||
[unit]
|
||||
x,y={X},{Y}
|
||||
type=Wolf
|
||||
side=3
|
||||
[/unit]
|
||||
#endif
|
||||
[/event]
|
||||
|
||||
# If user hasn't found Ratheln by a reasonable time, nudge a little.
|
||||
[event]
|
||||
name=turn 8
|
||||
[filter_condition]
|
||||
[not]
|
||||
[have_unit]
|
||||
#wmllint: recognize Ratheln
|
||||
id=Ratheln
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[/filter_condition]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
#wmllint: recognize Ratheln
|
||||
id=Ratheln
|
||||
[/have_unit]
|
||||
|
||||
[else]
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
message=_"That hut near the top of the pass... Something is glowing inside it. We should investigate."
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[message]
|
||||
speaker=Angarthing
|
||||
message=_"That hut near the top of the pass... Something is glowing inside it. We should investigate."
|
||||
[/message]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
@ -228,64 +242,63 @@
|
|||
x=18-21
|
||||
y=4-21
|
||||
[/filter]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
id=Ratheln
|
||||
[/have_unit]
|
||||
[else]
|
||||
[unit]
|
||||
type=Arch Mage
|
||||
[filter_condition]
|
||||
[not]
|
||||
[have_unit]
|
||||
id=Ratheln
|
||||
profile=portraits/ratheln.png
|
||||
name= _ "Ratheln"
|
||||
side=1
|
||||
[modifications]
|
||||
{TRAIT_LOYAL}
|
||||
{TRAIT_STRONG}
|
||||
[/modifications]
|
||||
{IS_HERO}
|
||||
unrenamable=yes
|
||||
x=19
|
||||
y=11
|
||||
[/unit]
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[/filter_condition]
|
||||
|
||||
[message]
|
||||
speaker="Ratheln"
|
||||
message=_"Hail, I am Ratheln. If you’re traveling down the pass, please take me with you. I am near freezing and starving to death up here."
|
||||
[/message]
|
||||
[unit]
|
||||
side=1
|
||||
x,y=19,11
|
||||
type=Arch Mage
|
||||
id=Ratheln
|
||||
profile=portraits/ratheln.png
|
||||
name= _ "Ratheln"
|
||||
{IS_HERO}
|
||||
unrenamable=yes
|
||||
[modifications]
|
||||
{TRAIT_LOYAL}
|
||||
{TRAIT_STRONG}
|
||||
[/modifications]
|
||||
[/unit]
|
||||
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
message=_"Pardon my curiosity, but what is a fire-mage doing freezing to death?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Ratheln
|
||||
message=_"Hail, I am Ratheln. If you’re traveling down the pass, please take me with you. I am near freezing and starving to death up here."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Ratheln"
|
||||
message=_"In case you haven’t noticed, there is a serious shortage of both firewood and food in this gods-forsaken slot. And the damned gryphons descend on me whenever I stir out of this shack. I’ve had nothing to eat but flash-roasted gryphon for the last three weeks."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Angarthing
|
||||
message=_"Pardon my curiosity, but what is a fire-mage doing freezing to death?"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
message=_"Where were you bound when you got stuck here?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Ratheln
|
||||
message=_"In case you haven’t noticed, there is a serious shortage of both firewood and food in this gods-forsaken slot. And the damned gryphons descend on me whenever I stir out of this shack. I’ve had nothing to eat but flash-roasted gryphon for the last three weeks."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Ratheln"
|
||||
message=_"There is a school of mages near the east end of the pass. They’ve an opening for an instructor, and they’re expecting me."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Aiglondur
|
||||
message=_"Where were you bound when you got stuck here?"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
message=_"Let’s take him with us, Aiglondur. We know little about the country beyond to the east; we’ve had few reports on it since before the orcs took Knalga. Those mages should know at least rumors."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Ratheln
|
||||
message=_"There is a school of mages near the east end of the pass. They’ve an opening for an instructor, and they’re expecting me."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
message=_"Aye. And I’d not leave anyone who had done my kin no harm stranded to starve."
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[message]
|
||||
speaker=Angarthing
|
||||
message=_"Let’s take him with us, Aiglondur. We know little about the country beyond to the east; we’ve had few reports on it since before the orcs took Knalga. Those mages should know at least rumors."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Aiglondur
|
||||
message=_"Aye. And I’d not leave anyone who had done my kin no harm stranded to starve."
|
||||
[/message]
|
||||
[/event]
|
||||
|
||||
# In this scenario only, losing Ratheln is fatal.
|
||||
|
@ -293,15 +306,16 @@
|
|||
[event]
|
||||
name=last breath
|
||||
[filter]
|
||||
id="Ratheln"
|
||||
id=Ratheln
|
||||
[/filter]
|
||||
|
||||
[message]
|
||||
speaker=Ratheln
|
||||
message= _ "This is no fit death for a mage of fire!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
speaker=Angarthing
|
||||
message=_"The snow has redoubled its fury, as if his presence had been holding it back. I do not see a way forward for us."
|
||||
[/message]
|
||||
|
||||
|
@ -314,7 +328,7 @@
|
|||
name=turn 9
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
speaker=Aiglondur
|
||||
message=_"It has begun to snow. Move, everyone! To be trapped here would be death."
|
||||
[/message]
|
||||
[/event]
|
||||
|
@ -323,7 +337,7 @@
|
|||
name=time over
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
speaker=Aiglondur
|
||||
message=_"We’re snowed in. Our mission has failed, even if we live until the spring."
|
||||
[/message]
|
||||
[/event]
|
||||
|
@ -333,22 +347,21 @@
|
|||
first_time_only=yes
|
||||
[filter]
|
||||
id=Aiglondur
|
||||
x=30
|
||||
y=11
|
||||
x,y=30,11
|
||||
[/filter]
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
speaker=Aiglondur
|
||||
message=_"We’re through the pass!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Angarthing"
|
||||
speaker=Angarthing
|
||||
message=_"That may not be a blessing. Something frightened those orcs we fought among the bandit villages, enough to make them push west into Alliance territory. Don’t you wonder what it was?"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker="Aiglondur"
|
||||
speaker=Aiglondur
|
||||
message=_"Aye. But I’ve a grim feeling we might be going to discover that in person."
|
||||
[/message]
|
||||
|
||||
|
@ -366,7 +379,7 @@
|
|||
[/endlevel]
|
||||
[/event]
|
||||
|
||||
# No need for Ratheln's death event here since he has a custom one this scenario
|
||||
{HERODEATH_AIGLONDUR}
|
||||
{HERODEATH_ANGARTHING}
|
||||
{HERODEATH_RATHELN}
|
||||
[/scenario]
|
||||
|
|
Loading…
Add table
Reference in a new issue