use [remove_trait] to remove loyal

This commit is contained in:
gfgtdf 2019-08-16 11:48:53 +02:00
parent 5cb93694c6
commit f4ad4f11c7
2 changed files with 19 additions and 43 deletions

View file

@ -616,37 +616,21 @@
message= _ "Correction. Now I have the sword!"
[/message]
[store_unit]
[filter]
id=Caladon
[/filter]
variable=Caladon_stored
[/store_unit]
[remove_trait]
id=Caladon
trait_id=loyal
[/remove_trait]
[remove_unit_overlay]
x=$Caladon_stored.x
y=$Caladon_stored.y
image=misc/hero-icon.png
[/remove_unit_overlay]
[store_unit]
[filter]
id=Caladon
[/filter]
kill=yes
variable=Caladon_stored
[/store_unit]
{VARIABLE Caladon_stored.side 4}
{VARIABLE Caladon_stored.canrecruit yes}
{VARIABLE Caladon_stored.ellipse ""}
# He is not going to recruit, but summon guardians each
# turn. Still, he needs this variable set to get a crown icon,
# and to show up in the status table.
[unstore_unit]
variable=Caladon_stored
[/unstore_unit]
[modify_unit]
[filter]
id=Caladon
[/filter]
side=4
canrecruit=yes
[/modify_unit]
[animate_unit]
flag=pre_teleport

View file

@ -130,6 +130,7 @@
[unstore_unit]
variable=Tyegea_stored
[/unstore_unit]
## TODO: im not sure what happens here, why is he getting the loyal overlay but not the real trait?
[unit_overlay]
x=$Tyegea_stored.x
y=$Tyegea_stored.y
@ -151,25 +152,16 @@
# Change icon on Cylanna to indicate that you can lose her
# without losing the game. (Though it would still be sad.)
[store_unit]
[remove_trait]
id=Cylanna
trait_id="loyal"
[/remove_trait]
[modify_unit]
[filter]
id=Cylanna
[/filter]
variable=Cylanna_stored
[/store_unit]
[remove_unit_overlay]
x=$Cylanna_stored.x
y=$Cylanna_stored.y
image=misc/hero-icon.png
[/remove_unit_overlay]
[unit_overlay]
x=$Cylanna_stored.x
y=$Cylanna_stored.y
image=misc/loyal-icon.png
[/unit_overlay]
[clear_variable]
name=Cylanna_stored
[/clear_variable]
{TRAIT_LOYAL}
[/modify_unit]
#ifdef HARD
[message]