Skip to content

Commit

Permalink
DW 5 Tirigaz - Changes to orc leader death event
Browse files Browse the repository at this point in the history
Fixes #3092 - Updates objectives if orc leader is killed first, and gives additional dialogue
Fixes #3903 - Gold event doesn't fire if ghosts kill the orc leader

[ci skip]
  • Loading branch information
UnwiseOwl authored and sevu committed Jun 11, 2018
1 parent ad53608 commit ba7728c
Showing 1 changed file with 43 additions and 20 deletions.
63 changes: 43 additions & 20 deletions data/campaigns/Dead_Water/scenarios/05_Tirigaz.cfg
Expand Up @@ -67,11 +67,16 @@
condition=win
[/objective]
[objective]
[show_if]
[have_unit]
side=2
canrecruit=yes
[/have_unit]
[/show_if]
{BONUS_OBJECTIVE_CAPTION}
description= _ "Also kill Marg-Tonz"+{EARLY_FINISH_BONUS_FOOTNOTE}+{OBJECTIVE_FOOTNOTE _"(you can destroy the undead first)"}
condition=win
[/objective]

[gold_carryover]
carryover_percentage=40
[/gold_carryover]
Expand Down Expand Up @@ -696,38 +701,51 @@
[filter]
id=Marg-Tonz
[/filter]

# The chest looks better when it's offset 10px to the north
[item]
x,y=$x1,$y1
image=misc/blank-hex.png~BLIT(items/chest-open.png~CROP(0,10,72,62),0,0)
[/item]

[if]
[have_unit]
x,y=$x2,$y2
race=bats
side=1
[/have_unit]

[then]
[message]
speaker=second_unit
message= _ "Neep, neep!"
[/message]
# The chest looks better when it's offset 10px to the north
[item]
x,y=$x1,$y1
image=misc/blank-hex.png~BLIT(items/chest-open.png~CROP(0,10,72,62),0,0)
[/item]

[if]
[have_unit]
x,y=$x2,$y2
race=bats
[/have_unit]

[message]
speaker=Kai Krellis
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
[/message]
[then]
[message]
speaker=second_unit
message= _ "Neep, neep!"
[/message]

[message]
speaker=Kai Krellis
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
[/message]
[/then]
[else]
[message]
speaker=second_unit
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
[/message]
[/else]
[/if]
[/then]
[else]
[message]
speaker=second_unit
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
speaker=Kai Krellis
message= _ "Now we must defeat the undead."
[/message]
[/else]
[/if]

[sound]
name=gold.ogg
[/sound]
Expand All @@ -748,6 +766,11 @@
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]

[else]
[show_objectives]
[/show_objectives]
[/else]
[/if]
[/event]

Expand Down

0 comments on commit ba7728c

Please sign in to comment.