Update amla.cfg
This commit is contained in:
parent
9850350d80
commit
3007081a84
1 changed files with 12 additions and 35 deletions
|
@ -70,20 +70,28 @@
|
|||
# IMPLEMENT AMLAS
|
||||
#############################
|
||||
[event]
|
||||
name=pre advance
|
||||
name=unit placed,post advance
|
||||
first_time_only=no
|
||||
[insert_tag]
|
||||
name=filter
|
||||
variable=use_stronger_amlas_filter
|
||||
[/insert_tag]
|
||||
|
||||
# skip if this unit already has active AMLAs
|
||||
[filter]
|
||||
[not]
|
||||
id=$amla_currently_advancing_id
|
||||
[filter_wml]
|
||||
[modifications]
|
||||
[object]
|
||||
id=universal_amlas_object
|
||||
[/object]
|
||||
[/modifications]
|
||||
[/filter_wml]
|
||||
[/not]
|
||||
[/filter]
|
||||
|
||||
#--------------------
|
||||
# SKIP IF NOT MAX-LEVEL
|
||||
# ADD AMLAS IF MAX-LEVEL
|
||||
#--------------------
|
||||
[if]
|
||||
[variable]
|
||||
|
@ -91,23 +99,6 @@
|
|||
equals=""
|
||||
[/variable]
|
||||
[then]
|
||||
#--------------------
|
||||
# AVOID RECURSION
|
||||
#--------------------
|
||||
# modifying a unit re-triggers "pre advance", so avoid infinite recursion
|
||||
[set_variable]
|
||||
name=amla_currently_advancing_id
|
||||
value=$unit.id
|
||||
[/set_variable]
|
||||
|
||||
#--------------------
|
||||
# RESET AMLAS
|
||||
#--------------------
|
||||
[remove_object]
|
||||
object_id=universal_amlas_object
|
||||
id=$unit.id
|
||||
[/remove_object]
|
||||
|
||||
#--------------------
|
||||
# ADD AMLAS
|
||||
#--------------------
|
||||
|
@ -132,7 +123,7 @@
|
|||
id=hitpoints_increase
|
||||
description= _ "Gain +8 hitpoints."
|
||||
strict_amla=yes
|
||||
major_amla=yes # so that the XP bar is blue, so that the player can differentiate between campaigns with custom AMLAs (blue) and campaigns without (purple)
|
||||
major_amla=yes # this makes the XP bar blue, allowing the player to differentiate between campaigns with these AMLAs (blue) and campaigns without (purple)
|
||||
max_times=-1
|
||||
[effect]
|
||||
apply_to=hitpoints
|
||||
|
@ -293,20 +284,6 @@
|
|||
[/effect]
|
||||
[/object]
|
||||
[/modify_unit]
|
||||
|
||||
#--------------------
|
||||
# RESET AMLAS
|
||||
#--------------------
|
||||
[event]
|
||||
name=post advance
|
||||
[clear_variable]
|
||||
name=amla_currently_advancing_id
|
||||
[/clear_variable]
|
||||
[remove_object]
|
||||
object_id=universal_amlas_object
|
||||
id=$unit.id
|
||||
[/remove_object]
|
||||
[/event]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
|
Loading…
Add table
Reference in a new issue