Update amla.cfg
This commit is contained in:
parent
45e81e8051
commit
b0b0412879
1 changed files with 24 additions and 6 deletions
|
@ -49,7 +49,10 @@
|
|||
[event]
|
||||
name=prestart
|
||||
[filter_condition]
|
||||
{VARIABLE_CONDITIONAL use_stronger_amlas_filter equals $null}
|
||||
[variable]
|
||||
name=use_stronger_amlas_filter
|
||||
equals=$null
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
[set_variable]
|
||||
name=use_stronger_amlas_filter.side
|
||||
|
@ -63,14 +66,20 @@
|
|||
[event]
|
||||
name=explain_amlas
|
||||
[filter_condition]
|
||||
{VARIABLE_CONDITIONAL amla_finished_explaining not_equals yes}
|
||||
[variable]
|
||||
name=amla_finished_explaining
|
||||
not_equals=yes
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
[message]
|
||||
speaker=narrator
|
||||
image=wesnoth-icon.png
|
||||
message=_"In this campaign, whenever a max-level unit advances, they can select one of several minor bonuses!"
|
||||
[/message]
|
||||
{VARIABLE amla_finished_explaining yes}
|
||||
[set_variable]
|
||||
name=amla_finished_explaining
|
||||
value=yes
|
||||
[/set_variable]
|
||||
[/event]
|
||||
|
||||
#############################
|
||||
|
@ -92,13 +101,20 @@
|
|||
#--------------------
|
||||
# SKIP IF NOT MAX-LEVEL
|
||||
#--------------------
|
||||
[if] {VARIABLE_CONDITIONAL unit.advances_to equals ""}
|
||||
[if]
|
||||
[variable]
|
||||
name=unit.advances_to
|
||||
equals=""
|
||||
[/variable]
|
||||
[then]
|
||||
#--------------------
|
||||
# AVOID RECURSION
|
||||
#--------------------
|
||||
# modifying a unit re-triggers "pre advance", so avoid infinite recursion
|
||||
{VARIABLE amla_currently_advancing_id $unit.id}
|
||||
[set_variable]
|
||||
name=amla_currently_advancing_id
|
||||
value=$unit.id
|
||||
[/set_variable]
|
||||
|
||||
#--------------------
|
||||
# EXPLAIN AMLAS
|
||||
|
@ -305,7 +321,9 @@
|
|||
#--------------------
|
||||
[event]
|
||||
name=post advance
|
||||
{CLEAR_VARIABLE amla_currently_advancing_id}
|
||||
[clear_variable]
|
||||
name=amla_currently_advancing_id
|
||||
[/clear_variable]
|
||||
[remove_object]
|
||||
object_id=universal_amlas_object
|
||||
id=$unit.id
|
||||
|
|
Loading…
Add table
Reference in a new issue