Convert most of CHECK_IF_FREED_ALL_MERFOLK to an event
This commit is contained in:
parent
a3f867897e
commit
88ccc2ef0e
1 changed files with 71 additions and 65 deletions
|
@ -609,7 +609,7 @@
|
|||
[/capture_village]
|
||||
[/event]
|
||||
|
||||
#Macro (event 3): check if all merfolk have been freed
|
||||
# (event 3): check if all merfolk have been freed
|
||||
|
||||
# if number_merfolk_caged = 0
|
||||
# have humans retreat, go to eloh event
|
||||
|
@ -622,72 +622,78 @@
|
|||
name=number_merfolk_caged
|
||||
sub=1
|
||||
[/set_variable]
|
||||
[if]
|
||||
[variable]
|
||||
name=number_merfolk_caged
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
[then]
|
||||
[if]
|
||||
[have_unit]
|
||||
id=Esanoo
|
||||
[/have_unit]
|
||||
[then]
|
||||
[message]
|
||||
speaker=Esanoo
|
||||
message= _ "Wonderful! We have rescued all of my band from the humans. I cannot thank you enough."
|
||||
[/message]
|
||||
[message]
|
||||
race=merman
|
||||
message= _ "Indeed, we owe you a great debt. You have done well Esanoo, better than I could have hoped."
|
||||
[/message]
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
speaker=Nym
|
||||
message= _ "Esanoo said there were five merfolk left in his band. I think we have rescued them all!"
|
||||
[/message]
|
||||
[message]
|
||||
race=merman
|
||||
message= _ "Indeed, I think you have now freed all of us. We owe you a great debt. We are sorry that Esanoo has fallen, but we will honor him and tell everyone the story of his great deeds. Glad are we that he found you and brought you to us. Even the smallest fish can change the course of the sea."
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
# have humans retreat
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
id=Darius
|
||||
[/have_unit]
|
||||
[then]
|
||||
[remove_shroud]
|
||||
x=20-24
|
||||
y=21-25
|
||||
side=1
|
||||
[/remove_shroud]
|
||||
[message]
|
||||
speaker=Darius
|
||||
message= _ "Curse them! The elves have freed the merfolk. We will be have our vengeance. Keep fighting, and execute plan C!"
|
||||
[/message]
|
||||
[fire_event]
|
||||
name=retreat_darius_alive
|
||||
[/fire_event]
|
||||
[/then]
|
||||
[else]
|
||||
[fire_event]
|
||||
name=retreat_darius_dead
|
||||
[/fire_event]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[fire_event]
|
||||
name=eloh_appears
|
||||
[/fire_event]
|
||||
[/then]
|
||||
[/if]
|
||||
[fire_event]
|
||||
name=merfolk_all_freed
|
||||
[/fire_event]
|
||||
#enddef
|
||||
|
||||
[event]
|
||||
name=merfolk_all_freed
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=number_merfolk_caged
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
id=Esanoo
|
||||
[/have_unit]
|
||||
[then]
|
||||
[message]
|
||||
speaker=Esanoo
|
||||
message= _ "Wonderful! We have rescued all of my band from the humans. I cannot thank you enough."
|
||||
[/message]
|
||||
[message]
|
||||
race=merman
|
||||
message= _ "Indeed, we owe you a great debt. You have done well Esanoo, better than I could have hoped."
|
||||
[/message]
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
speaker=Nym
|
||||
message= _ "Esanoo said there were five merfolk left in his band. I think we have rescued them all!"
|
||||
[/message]
|
||||
[message]
|
||||
race=merman
|
||||
message= _ "Indeed, I think you have now freed all of us. We owe you a great debt. We are sorry that Esanoo has fallen, but we will honor him and tell everyone the story of his great deeds. Glad are we that he found you and brought you to us. Even the smallest fish can change the course of the sea."
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
# have humans retreat
|
||||
[if]
|
||||
[have_unit]
|
||||
id=Darius
|
||||
[/have_unit]
|
||||
[then]
|
||||
[remove_shroud]
|
||||
x=20-24
|
||||
y=21-25
|
||||
side=1
|
||||
[/remove_shroud]
|
||||
[message]
|
||||
speaker=Darius
|
||||
message= _ "Curse them! The elves have freed the merfolk. We will be have our vengeance. Keep fighting, and execute plan C!"
|
||||
[/message]
|
||||
[fire_event]
|
||||
name=retreat_darius_alive
|
||||
[/fire_event]
|
||||
[/then]
|
||||
[else]
|
||||
[fire_event]
|
||||
name=retreat_darius_dead
|
||||
[/fire_event]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[fire_event]
|
||||
name=eloh_appears
|
||||
[/fire_event]
|
||||
[/event]
|
||||
|
||||
# Event 2: Freeing Merfolk
|
||||
|
||||
# locations of first 4 merfolk
|
||||
|
|
Loading…
Add table
Reference in a new issue