Update amla.cfg

This commit is contained in:
Dalas121 2024-12-19 09:17:44 -06:00 committed by GitHub
parent 45e81e8051
commit b0b0412879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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