LoW::19,21: New code for Landar's side.
This commit is contained in:
parent
266f890629
commit
db683ad75c
2 changed files with 62 additions and 27 deletions
|
@ -81,14 +81,6 @@
|
|||
[disallow_recruit]
|
||||
type={DWARVES}, Elvish Shaman
|
||||
[/disallow_recruit]
|
||||
[store_unit]
|
||||
kill=yes
|
||||
variable=cleodil
|
||||
[filter]
|
||||
# wmllint: recognize Cleodil
|
||||
id=Cleodil
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
# all shamans have left with Cleodil
|
||||
[store_unit]
|
||||
kill=yes
|
||||
|
@ -104,11 +96,14 @@
|
|||
|
||||
[event]
|
||||
name=victory
|
||||
[unstore_unit]
|
||||
variable=cleodil
|
||||
x,y=recall
|
||||
[/unstore_unit]
|
||||
{CLEAR_VARIABLE cleodil}
|
||||
|
||||
{FOREACH faeries faery}
|
||||
[unstore_unit]
|
||||
variable=faeries[$faery]
|
||||
x,y=recall
|
||||
[/unstore_unit]
|
||||
{NEXT faery}
|
||||
{CLEAR_VARIABLE faeries}
|
||||
[/event]
|
||||
|
||||
[side]
|
||||
|
@ -184,7 +179,49 @@
|
|||
[event]
|
||||
name=victory
|
||||
{MODIFY_UNIT (id=Landar) side 4}
|
||||
#TODO move Landar's units to side 4
|
||||
|
||||
[store_unit]
|
||||
#TODO spellcheck
|
||||
variable=steal_wearer
|
||||
kill=no
|
||||
[filter]
|
||||
side=1
|
||||
[not]
|
||||
id=Kalenz
|
||||
[/not]
|
||||
[not]
|
||||
id=Landar
|
||||
[/not]
|
||||
[not]
|
||||
{FILTER_LOYALS}
|
||||
[/not]
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH steal_wearer unit}
|
||||
{RANDOM (2,1,2)}
|
||||
[if]
|
||||
[variable]
|
||||
name=random
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
[then]
|
||||
{VARIABLE steal_wearer[$unit].role kalenz}
|
||||
[unstore_unit]
|
||||
variable=steal_wearer[$unit]
|
||||
[/unstore_unit]
|
||||
[/then]
|
||||
[else]
|
||||
{VARIABLE steal_wearer[$unit].side 4}
|
||||
{VARIABLE steal_wearer[$unit].role landar}
|
||||
[unstore_unit]
|
||||
variable=steal_wearer[$unit]
|
||||
[/unstore_unit]
|
||||
[/else]
|
||||
[/if]
|
||||
{NEXT unit}
|
||||
{CLEAR_VARIABLE unit}
|
||||
{CLEAR_VARIABLE steal_wearer}
|
||||
[/event]
|
||||
|
||||
##### Scenario objectives #####
|
||||
|
|
|
@ -66,26 +66,18 @@
|
|||
name=prestart
|
||||
|
||||
[store_unit]
|
||||
variable=landar_store
|
||||
kill=yes
|
||||
[filter]
|
||||
# wmllint: recognize Landar
|
||||
id=Landar
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
|
||||
[store_unit]
|
||||
#TODO spellcheck
|
||||
variable=steal_wearer
|
||||
kill=yes
|
||||
variable=kalenz_loyals
|
||||
[filter]
|
||||
side=1
|
||||
[not]
|
||||
id=Anduilas
|
||||
[/not]
|
||||
[not]
|
||||
id=Kalenz
|
||||
[/not]
|
||||
[not]
|
||||
# wmllint: recognize Anduilas
|
||||
id=Anduilas
|
||||
id=Cleodil
|
||||
[/not]
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
|
@ -93,6 +85,12 @@
|
|||
{RECALL_LOYALS}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=victory
|
||||
#TODO restore the loyals
|
||||
[/event]
|
||||
|
||||
|
||||
#### Betrayer's code ####
|
||||
|
||||
[event]
|
||||
|
|
Loading…
Add table
Reference in a new issue