mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 06:38:58 +00:00
Converted more events to custom events.
This commit is contained in:
parent
1f24f04773
commit
39b82a031d
@ -601,36 +601,66 @@
|
||||
# Summon objectives dialog
|
||||
[show_objectives]
|
||||
[/show_objectives]
|
||||
[/event]
|
||||
|
||||
# Garak's speech when they kill the last of training grounds
|
||||
# mudcrawlers. For this we use die event that on each
|
||||
# occurence checks if there are any more training ground
|
||||
# mudcrawlers alive.
|
||||
[event]
|
||||
name=die
|
||||
first_time_only=no
|
||||
[filter]
|
||||
role="Rocky Horror"
|
||||
[/filter]
|
||||
# Garak's speech event trigger
|
||||
[event]
|
||||
name=die
|
||||
first_time_only=no
|
||||
[filter]
|
||||
role="Rocky Horror"
|
||||
[/filter]
|
||||
|
||||
[if]
|
||||
[if]
|
||||
[variable]
|
||||
name=found_garak
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
[and]
|
||||
[not]
|
||||
[have_unit]
|
||||
role="Rocky Horror"
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[then]
|
||||
[message]
|
||||
speaker=second_unit
|
||||
message= _ "Ha! They’re destroyed at last."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Garak
|
||||
message= _ "Thanks for the help. I am glad to see that so many have survived the night. But there’s no time to talk, we must save the rest of our people and crush any other of these earthen abominations back into the earth."
|
||||
[/message]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
[/and]
|
||||
# [and]
|
||||
# [variable]
|
||||
# name=garak_speech_happened
|
||||
# boolean_equals=no
|
||||
# [/variable]
|
||||
# [/and]
|
||||
[then]
|
||||
[fire_event]
|
||||
name=garak_speech
|
||||
[secondary_unit]
|
||||
id=$second_unit.id
|
||||
[/secondary_unit]
|
||||
[/fire_event]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
# Garak's speech when they kill the last of training grounds
|
||||
# mudcrawlers. For this we use die event that on each
|
||||
# occurence checks if there are any more training ground
|
||||
# mudcrawlers alive.
|
||||
[event]
|
||||
name=garak_speech
|
||||
|
||||
[message]
|
||||
speaker=second_unit
|
||||
message= _ "Ha! They’re destroyed at last."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Garak
|
||||
message= _ "Thanks for the help. I am glad to see that so many have survived the night. But there’s no time to talk, we must save the rest of our people and crush any other of these earthen abominations back into the earth."
|
||||
[/message]
|
||||
|
||||
# Record the fact that this event has happened
|
||||
# [set_variable]
|
||||
# name=garak_speech_happened
|
||||
# value=yes
|
||||
# [/set_variable]
|
||||
[/event]
|
||||
|
||||
# The following three events are nested, because they are supposed to
|
||||
|
Loading…
x
Reference in New Issue
Block a user