Skip to content

Commit

Permalink
use [remove_trait] to remove loyal
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Aug 25, 2019
1 parent 5cb9369 commit f4ad4f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 43 deletions.
38 changes: 11 additions & 27 deletions data/campaigns/Dead_Water/scenarios/10_The_Flaming_Sword.cfg
Expand Up @@ -616,37 +616,21 @@
message= _ "Correction. Now I have the sword!"
[/message]

[store_unit]
[filter]
id=Caladon
[/filter]
variable=Caladon_stored
[/store_unit]

[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]
[remove_trait]
id=Caladon
trait_id=loyal
[/remove_trait]

{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
Expand Down
24 changes: 8 additions & 16 deletions data/campaigns/Dead_Water/scenarios/11_Getting_Help.cfg
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit f4ad4f1

Please sign in to comment.