SoF S9: Allow for Gryphon Riders to trigger an event on the final runic tablet, and add translator hint

Things in the scenario didn't quite make logical sense considering the presence of Gryphon Riders. This resolves the issue by allowing them to trigger an event, and by acknowledging them in the endlevel dialog. Additionally, one translator hint is added for the "Smash" text when the rune is smashed.

(cherry picked from commit f82079bcc0)
This commit is contained in:
Wedge009 2021-11-25 17:11:03 +11:00
parent d6b56969a0
commit 2581ab6c87

View file

@ -658,7 +658,6 @@
[event]
name=moveto
[filter]
id=Krawg
x,y=29,31
[/filter]
[filter_condition]
@ -672,20 +671,34 @@
[/have_unit]
[/or]
[/filter_condition]
[message]
speaker=Krawg
message= _ "Wha?"
[/message]
[message]
speaker=narrator
message= _ "Krawg puzzled over a stone tile sitting loose on the small mesa. Beneath a spattering of bat guano, there was a glowing rune. Krawg didnt know what to make of it, so the gryphon left it for now."
image=wesnoth-icon.png
[/message]
[if]
# Only flying units can reach this location and the only flying units the player should have access to besides Krawg is the Gryphon Rider line
[variable]
name=unit.id
equals=Krawg
[/variable]
[then]
[message]
speaker=Krawg
message= _ "Wha?"
[/message]
[message]
speaker=narrator
message= _ "Krawg puzzled over a stone tile sitting loose on the small mesa. Beneath a spattering of bat guano, there was a glowing rune. Krawg didnt know what to make of it, so the gryphon left it for now."
image=wesnoth-icon.png
[/message]
[/then]
[else]
[message]
speaker=$unit.id
message= _ "The gryphon rider puzzled over a stone tile sitting loose on the small mesa. Beneath a spattering of bat guano, there was a glowing rune. Neither mount nor rider knew what to make of it, so they left it for now."
[/message]
[/else]
[/if]
[/event]
[event]
name=moveto
[filter]
id=Krawg
x,y=29,31
[/filter]
[filter_condition]
@ -701,49 +714,100 @@
[/or]
[/not]
[/filter_condition]
[message]
speaker=Krawg
message= _ "Screech!"
[/message]
[message]
speaker=narrator
message= _ "Krawg saw that this tablet was like the others held by the orc and troll, and knew that this could remove the last bridge across the fire lake."
image=wesnoth-icon.png
[/message]
[message]
speaker=Thursagan
message= _ "Yes, Krawg, that must be the last rune sealing the volcano. Smash it, like the others!"
[/message]
[message]
speaker=Krawg
message= _ "Krawg sad."
[/message]
[message]
speaker=Thursagan
message= _ "Just do it, you dumb bird! You can escape, our enemies cannot. We knew that death was likely when we fled here, just go!"
[/message]
[message]
speaker=Rugnur
message= _ "Wait! If Krawg can escape, shouldnt we give him the Sceptre?"
[/message]
[message]
speaker=Thursagan
message= _ "No, too risky, even if Krawg drops it in King Haldrics hand. Youve seen how the elves have behaved, youve seen how your lord behaved. The corrupting emissions from the ruby are nothing compared to the greed already out there, and my crafted gold cage does nothing to contain that."
[/message]
[message]
speaker=Thursagan
message= _ "Durstorn and Glildur have both convinced me that the time is not right for the Sceptre of Fire, best that it rests with us for a while. Now, Krawg!"
[/message]
[message]
speaker=Krawg
message= _ "Yah! Krah!"
[/message]
[if]
[variable]
name=unit.id
equals=Krawg
[/variable]
[then]
[message]
speaker=Krawg
message= _ "Screech!"
[/message]
[/then]
[/if]
[if]
[variable]
name=unit.id
equals=Krawg
[/variable]
[then]
[message]
speaker=narrator
message= _ "Krawg saw that this tablet was like the others held by the orc and troll, and knew that this could remove the last bridge across the fire lake."
image=wesnoth-icon.png
[/message]
[message]
speaker=Thursagan
message= _ "Yes, Krawg, that must be the last rune sealing the volcano. Smash it, like the others!"
[/message]
[message]
speaker=Krawg
message= _ "Krawg sad."
[/message]
[message]
speaker=Thursagan
message= _ "Just do it, you dumb bird! You can escape, our enemies cannot. We knew that death was likely when we fled here, just go!"
[/message]
[message]
speaker=Rugnur
message= _ "Wait! If Krawg can escape, shouldnt we give him the Sceptre?"
[/message]
[message]
speaker=Thursagan
message= _ "No, too risky, even if Krawg drops it in King Haldrics hand. Youve seen how the elves have behaved, youve seen how your lord behaved. The corrupting emissions from the ruby are nothing compared to the greed already out there, and my crafted gold cage does nothing to contain that."
[/message]
[message]
speaker=Thursagan
message= _ "Durstorn and Glildur have both convinced me that the time is not right for the Sceptre of Fire, best that it rests with us for a while. Now, Krawg!"
[/message]
[message]
speaker=Krawg
message= _ "Yah! Krah!"
[/message]
[/then]
[else]
[message]
speaker=$unit.id
message= _ "Theres a tablet with a rune here!"
[/message]
[message]
speaker=Thursagan
message= _ "Yes, that must be the last rune sealing the volcano. Smash it, like the others!"
[/message]
[message]
speaker=$unit.id
message= _ "The resulting eruption will lead to all of your deaths!"
[/message]
[message]
speaker=Thursagan
message= _ "Just do it! You riders have a chance to escape, our enemies cannot. We knew that death was likely when we fled here, just go!"
[/message]
[message]
speaker=Rugnur
message= _ "Wait! If the riders can escape, shouldnt we give them the Sceptre?"
[/message]
[message]
speaker=Thursagan
message= _ "No, too risky, even if they drop it in King Haldrics hand. Youve seen how the elves have behaved, youve seen how your lord behaved. The corrupting emissions from the ruby are nothing compared to the greed already out there, and my crafted gold cage does nothing to contain that."
[/message]
[message]
speaker=Thursagan
message= _ "Durstorn and Glildur have both convinced me that the time is not right for the Sceptre of Fire, best that it rests with us for a while. Now, smash it!"
[/message]
[message]
speaker=$unit.id
message= _ "Alright, theres no turning back now!"
[/message]
[/else]
[/if]
[remove_item]
x,y=29,31
image=items/stone-tablet.png
[/remove_item]
[floating_text]
x,y=29,31
# po: Treat this as if it was a sound-effect in a comic book.
text="<span color='#ff7722'>" + _ "Smash!" + "</span>"
[/floating_text]
{QUAKE "rumble.ogg"}
@ -774,6 +838,24 @@
[redraw]
side=1
[/redraw]
# Need to check if the player had Gryphon Riders or Gryphon Masters and store it in a variable because they will be killed
[if]
[have_unit]
type=Gryphon Rider, Gryphon Master
[/have_unit]
[then]
[set_variable]
name=gryphonrider_flag
value=yes
[/set_variable]
[/then]
[else]
[set_variable]
name=gryphonrider_flag
value=no
[/set_variable]
[/else]
[/if]
[kill]
[and]
x=27,27
@ -867,11 +949,27 @@
fire_event=no
[/kill]
{FADE_TO_BLACK}
[message]
speaker=narrator
message= _ "Once the magic seal capping the throat of the volcano was removed, lava and toxic gas exploded upward, killing everyone inside and sealing them in a tomb of hot, flowing rock. The Sceptre of Fire would wait, unharmed by the lava, until some day far in the future."
image=wesnoth-icon.png
[/message]
# Check if the player had a Gryphon Rider or Gryphon Master before all units were killed.
[if]
[variable]
name=gryphonrider_flag
boolean_equals=yes
[/variable]
[then]
[message]
speaker=narrator
message= _ "Once the magic seal capping the throat of the volcano was removed, lava and toxic gas exploded upward, killing everyone inside and sealing them in a tomb of hot, flowing rock. Krawg and the gryphon riders flew towards a hole in the roof but it was only Krawg who managed to outrun the explosion and emerge as the sole survivor. The Sceptre of Fire would wait, unharmed by the lava, until some day far in the future."
image=wesnoth-icon.png
[/message]
[/then]
[else]
[message]
speaker=narrator
message= _ "Once the magic seal capping the throat of the volcano was removed, lava and toxic gas exploded upward, killing everyone inside and sealing them in a tomb of hot, flowing rock. The Sceptre of Fire would wait, unharmed by the lava, until some day far in the future."
image=wesnoth-icon.png
[/message]
[/else]
[/if]
[endlevel]
result=victory
carryover_report=no