Skip to content

Commit

Permalink
Improve Jotha
Browse files Browse the repository at this point in the history
- music
- allied AI
- event ids
- cutscene tweaks
- water noises
  • Loading branch information
cooljeanius committed Dec 9, 2022
1 parent c4bfe0e commit cc882fe
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion scenarios/14_Hope_or_Hostility.cfg
Expand Up @@ -341,7 +341,7 @@ Although the way up here is long, it is not enough to prove your worthiness to m
[/move_unit]
[terrain_mask]
x,y=1,1
mask="{~add-ons/dawn_of_thunder/maps/14_Hope_or_Hostility_2.map}"
mask="{~add-ons/dawn_of_thunder/maps/14_Hope_or_Hostility.mask}"
[/terrain_mask]
{BOSSFIGHT_ANIMATION}
[objectives]
Expand Down
119 changes: 117 additions & 2 deletions scenarios/17_Jotha.cfg
Expand Up @@ -9,7 +9,11 @@
{TURNS 37 32 27 }

{DEFAULT_SCHEDULE}
# TODO: add music
{SCENARIO_MUSIC vengeful.ogg}
{EXTRA_SCENARIO_MUSIC legends_of_the_north.ogg}
{EXTRA_SCENARIO_MUSIC lunar_cage.ogg}
{EXTRA_SCENARIO_MUSIC breaking_the_chains.ogg}
{EXTRA_SCENARIO_MUSIC wanderer.ogg}
{STARTING_VILLAGES 2 6}
{STARTING_VILLAGES 3 4}
{STARTING_VILLAGES 4 5}
Expand Down Expand Up @@ -75,6 +79,53 @@
[/modifications]
x,y=32,5
[/unit]
[ai]
grouping=defensive
aggression={ON_DIFFICULTY 0.3 0.2 0.1} # (less than the default of 0.4}
caution={ON_DIFFICULTY 0.7 0.6 0.5} # (more than the default of 0.25)
[goal]
name=protect_unit
[criteria]
id=mermenking
[/criteria]
protect_radius={ON_DIFFICULTY 9 8 7}
value={ON_DIFFICULTY 12 11 10}
[/goal]
[goal]
name=protect_unit
[criteria]
id=mermaid
[/criteria]
protect_radius={ON_DIFFICULTY 8 7 6}
value={ON_DIFFICULTY 9 8 7}
[/goal]
[goal]
name=protect_unit
[criteria]
side=1
id=mermen
canrecruit=yes
[/criteria]
protect_radius={ON_DIFFICULTY 9 8 7}
value={ON_DIFFICULTY 6 5 4}
[/goal]
[goal]
name=protect_location
[criteria]
x,y=32,9
[/criteria]
protect_radius=3
value={ON_DIFFICULTY 4 3 2}
[/goal]
[avoid]
x=13-15
y=2-4
[or]
x=15-17
y=23-25
[/or]
[/avoid]
[/ai]
[/side]
[side]
side=3
Expand All @@ -87,11 +138,14 @@
name= _ "Worthag"
canrecruit=yes
recruit="Orcish Warrior,Goblin Knight,Goblin Pillager,Orcish Crossbowman,Orcish Assassin,Troll,Troll Rocklobber,Orcish Warlord,Sea Orc"
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 ("Orcish Warlord") 2}
{GOLD 350 425 500}
{INCOME 5 10 15}
{FLAG_VARIANT6 ragged}
[ai]
recruitment_more="Sea Orc"
[/ai]
[/side]
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 ("Orcish Warlord") 2}
[side]
side=4
controller=ai
Expand Down Expand Up @@ -137,6 +191,7 @@

[event]
name=prestart
id=setup
[recall]
id=Naia
[/recall]
Expand Down Expand Up @@ -375,6 +430,7 @@

[event]
name=start
id=arrival_at_Jotha
[delay]
time=750
[/delay]
Expand All @@ -401,14 +457,23 @@ The day will come where the dark will triumph over the light!
The day will come where the last merman warrior falls inside of this city's walls!
And the day will come where..."
[/message]
[scroll_to_unit]
id=mermen
[/scroll_to_unit]
[message]
speaker=mermen
message= _ "Kai, Oh Kai! I brought reinforcements! Jotha is not doomed yet!"
[/message]
[scroll_to_unit]
id=mermenking
[/scroll_to_unit]
[message]
speaker=mermenking
message= _ "Pelagius my friend! Greetings friends! I don't know who you are, but your mere presence is great news already. We might have a chance at defending Jotha. We'll talk later, now we fight!"
[/message]
[scroll_to_unit]
id=Fiannon
[/scroll_to_unit]
[objectives]
side=1
[objective]
Expand Down Expand Up @@ -448,6 +513,7 @@ And the day will come where..."

[event]
name=turn 2
id=let_Pelagius_recruit_citizens
[message]
speaker=mermenking
message= _ "Pelagius! The people Jotha want to help in its defense. I trust you with their command."
Expand All @@ -468,10 +534,29 @@ And the day will come where..."
{MODIFY_UNIT id=mermen canrecruit yes}
{MODIFY_UNIT id=mermen extra_recruit ("Merman Citizen")}
[redraw][/redraw]
#ifdef EASY
[message]
speaker=mermenking
message= _ "Feel free to use the city to recruit!"
[/message]
[scroll_to]
x,y=40,10
[/scroll_to]
[terrain]
x,y=40,10
terrain=Kme
[/terrain]
[redraw][/redraw]
[message]
speaker=mermen
message= _ "Ah, of course! Thank you, my liege!"
[/message]
#endif
[/event]

[event]
name=side 3 turn 5
id=troll_timed_release
[if]
[have_unit]
[filter]
Expand Down Expand Up @@ -502,12 +587,25 @@ And the day will come where..."
to_x=47
to_y=24
[/move_unit]
#ifdef EASY
[modify_unit]
[filter]
id=orc
[/filter]
attacks_left=0
moves=0
[status]
slowed=yes
[/status]
[/modify_unit]
#endif
[/then]
[/if]
[/event]

[event]
name=moveto
id=troll_moveto_release
[filter]
side=1
[filter_location]
Expand Down Expand Up @@ -540,6 +638,7 @@ And the day will come where..."

[event]
name=troll_freed
id=release_the_troll
{REMOVE_IMAGE 47 26}
[terrain]
x,y=47,26
Expand Down Expand Up @@ -572,6 +671,7 @@ And the day will come where..."

[event]
name=moveto
id=pickup_armor
first_time_only=no
[filter]
side=1
Expand Down Expand Up @@ -668,6 +768,7 @@ And the day will come where..."

[event]
name=side 5 turn 7
id=Mal_Lirak_arrives
[move_unit_fake]
type=Dark Sorcerer
to_x=36,35,35,33,33,29,28,25,20,19,16,16
Expand All @@ -684,6 +785,7 @@ And the day will come where..."
canrecruit=yes
extra_recruit="Wraith, Spectre, Shadow, Ghost"
[/unit]
[redraw][/redraw]
[message]
speaker=Lirak
message= _ "Orcs! Nagas! You are taking too long for the Master's taste, so I brought some ghostly support.
Expand All @@ -700,6 +802,8 @@ Naia, long time not seen! I see you are still with that elf, I heard you have be
[modify_side]
side=5
user_team_name=_ "Mal Lirak"
{GOLD 200 250 300}
{INCOME 5 10 15}
[/modify_side]
[objectives]
side=1
Expand Down Expand Up @@ -747,6 +851,7 @@ Naia, long time not seen! I see you are still with that elf, I heard you have be

[event]
name=side 2 turn 11
id=hint_about_armor
[if]
[variable]
name=armor_taken
Expand All @@ -763,6 +868,7 @@ Naia, long time not seen! I see you are still with that elf, I heard you have be

[event]
name=side 2 turn 10
id=hint_about_turtles
[if]
[variable]
name=turtles_found
Expand All @@ -784,6 +890,7 @@ Naia, long time not seen! I see you are still with that elf, I heard you have be

[event]
name=moveto
id=meet_turtles
first_time_only=no
[filter]
x,y=46,2
Expand Down Expand Up @@ -827,6 +934,7 @@ Show yourselves!"
[/message]
{LOYAL_UNIT 1 (Baby Sea Turtle) 47 1}
{LOYAL_UNIT 1 (Sea Turtle) 46 1}
{REDRAW}
[set_variable]
name=turtles_found
value=yes
Expand All @@ -848,6 +956,7 @@ Show yourselves!"

[event]
name=moveto
id=encircle_Mal_Lirak
first_time_only=no
[filter]
side=1
Expand Down Expand Up @@ -944,6 +1053,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=victory
id=cleanup
[message]
speaker=Thindromli
message= _ "We did it!"
Expand Down Expand Up @@ -1004,6 +1114,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=last breath
id=orc_leader_death
[filter]
id=orc
[/filter]
Expand Down Expand Up @@ -1041,6 +1152,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=last breath
id=naga_leader_death
[filter]
id=naga
[/filter]
Expand Down Expand Up @@ -1074,6 +1186,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=last breath
id=Kai_Kaspius_death
[filter]
id=mermenking
[/filter]
Expand All @@ -1092,6 +1205,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=last breath
id=Queen_Eruadne_death
[filter]
id=mermaid
[/filter]
Expand All @@ -1110,6 +1224,7 @@ Farewell, and good luck in your endeavor of saving Wesmere! You will soon unders

[event]
name=last breath
id=Pelagius_death
[filter]
id=mermen
[/filter]
Expand Down
1 change: 1 addition & 0 deletions units/monsters/Baby_Sea_Turtle.cfg
Expand Up @@ -55,6 +55,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Crab.cfg
Expand Up @@ -54,6 +54,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Giant_Crab.cfg
Expand Up @@ -55,6 +55,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Giant_Sea_Turtle.cfg
Expand Up @@ -63,6 +63,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Leviathan.cfg
Expand Up @@ -64,6 +64,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Overgrown_Crab.cfg
Expand Up @@ -54,6 +54,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]
1 change: 1 addition & 0 deletions units/monsters/Sea_Turtle.cfg
Expand Up @@ -60,6 +60,7 @@
end=0
image="projectiles/water-spray.png"
image_diagonal="projectiles/water-spray.png"
sound=water-blast.wav
[/missile_frame]
[/attack_anim]
[/unit_type]

0 comments on commit cc882fe

Please sign in to comment.