DiD S3: used [filter_condition] to reduce excessive [if] indent
This commit is contained in:
parent
e5ac97ab58
commit
b8e9805bbf
1 changed files with 41 additions and 38 deletions
|
@ -188,6 +188,7 @@
|
|||
speaker=Darken Volk
|
||||
message=_ "Be careful when imprisoning a soul and use all your might to retain control over it or it might attempt to break free and destroy you!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Malin Keshar
|
||||
message=_ "I... I will try."
|
||||
|
@ -208,10 +209,12 @@
|
|||
speaker=second_unit
|
||||
message=_ "Two necromancers are at the cave entrance! Up yer axes, boys, if ye dinna’ want tae be a walking pile o’ bones."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Malin Keshar
|
||||
message=_ "Or not. Why do they hate us so much?"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Darken Volk
|
||||
message=_ "People fear that which they don’t understand, and death, after all, is the greatest mystery. Those who dare to investigate that mystery are bound to invoke fear and distrust. Worry not, your people will again warm to you once you deal with the orc threat at its source. For now, the cave-dwellers give us no choice."
|
||||
|
@ -221,7 +224,7 @@
|
|||
[event]
|
||||
name=new turn
|
||||
first_time_only=no
|
||||
[if]
|
||||
[filter_condition]
|
||||
# Reach or pass ghost turn, and ghost wasn't already freed
|
||||
[have_unit]
|
||||
type=Ghost
|
||||
|
@ -234,52 +237,52 @@
|
|||
name=ghost_was_freed
|
||||
equals=no
|
||||
[/variable]
|
||||
[then]
|
||||
# Set free the ghost event
|
||||
[event]
|
||||
name=side turn
|
||||
first_time_only=yes
|
||||
{MODIFY_ONE_UNIT type=Ghost side 4}
|
||||
{MODIFY_ONE_UNIT side=4 id (Tortured Soul)}
|
||||
{MODIFY_ONE_UNIT side=4 name (_ "Tortured Soul")}
|
||||
{MODIFY_ONE_UNIT side=4 canrecruit yes}
|
||||
{VARIABLE ghost_was_freed yes}
|
||||
[/filter_condition]
|
||||
|
||||
[message]
|
||||
side=4
|
||||
message=_ "Free! Your foul spells cannot enslave me any longer, Malin the Damned. You shall pay for keeping me from my final rest!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Darken Volk
|
||||
message=_ "Fool boy! Your will must be stronger or you will never be able to control your soldiers well enough to face the orcs. Many are the young necromancers who have died when their servants turned on them. He will attack you relentlessly."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Malin Keshar
|
||||
message=_ "But why are they attacking me? And what should I do?!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Darken Volk
|
||||
message=_ "Destroy the rebel quickly and all will be well. Wait, and he will begin to turn the rest of your forces against you."
|
||||
[/message]
|
||||
[/event]
|
||||
[/then]
|
||||
[/if]
|
||||
# Set free the ghost event
|
||||
[event]
|
||||
name=side turn
|
||||
first_time_only=yes
|
||||
{MODIFY_ONE_UNIT type=Ghost side 4}
|
||||
{MODIFY_ONE_UNIT side=4 id (Tortured Soul)}
|
||||
{MODIFY_ONE_UNIT side=4 name (_ "Tortured Soul")}
|
||||
{MODIFY_ONE_UNIT side=4 canrecruit yes}
|
||||
{VARIABLE ghost_was_freed yes}
|
||||
|
||||
[message]
|
||||
side=4
|
||||
message=_ "Free! Your foul spells cannot enslave me any longer, Malin the Damned. You shall pay for keeping me from my final rest!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Darken Volk
|
||||
message=_ "Fool boy! Your will must be stronger or you will never be able to control your soldiers well enough to face the orcs. Many are the young necromancers who have died when their servants turned on them. He will attack you relentlessly."
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Malin Keshar
|
||||
message=_ "But why are they attacking me? And what should I do?!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Darken Volk
|
||||
message=_ "Destroy the rebel quickly and all will be well. Wait, and he will begin to turn the rest of your forces against you."
|
||||
[/message]
|
||||
[/event]
|
||||
[/event]
|
||||
|
||||
# When the free ghost leader is around, one random unit per turn is freed
|
||||
[event]
|
||||
name=new turn
|
||||
first_time_only=no
|
||||
[if]
|
||||
[filter_condition]
|
||||
[have_unit]
|
||||
side=4
|
||||
canrecruit=yes
|
||||
[/have_unit]
|
||||
[then]
|
||||
{MODIFY_ONE_UNIT (race=undead
|
||||
side=1) side 4}
|
||||
[/then]
|
||||
[/if]
|
||||
[/filter_condition]
|
||||
|
||||
{MODIFY_ONE_UNIT (race=undead,side=1) side 4}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
@ -288,9 +291,9 @@
|
|||
side=4
|
||||
canrecruit=yes
|
||||
[/filter]
|
||||
|
||||
# Regain control of "rebel" ghosts
|
||||
{MODIFY_UNIT (side=4
|
||||
canrecruit=no) side 1}
|
||||
{MODIFY_UNIT (side=4,canrecruit=no) side 1}
|
||||
|
||||
[message]
|
||||
speaker=Malin Keshar
|
||||
|
|
Loading…
Add table
Reference in a new issue