Merge pull request #4088 from gfgtdf/fix_remove_overlay

wml changes for overlays= change

* move loyal overlays to the loyal trait
* other wml improvments.

Fix [remove_object] for effects that change ellipse
This commit is contained in:
gfgtdf 2019-08-25 22:33:16 +02:00 committed by GitHub
commit 66fb021a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
121 changed files with 375 additions and 821 deletions

View file

@ -52,9 +52,8 @@
side=1
x=19
y=23
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]

View file

@ -74,7 +74,15 @@
side=2
x,y=30,27
random_traits=no
overlays=misc/hero-icon.png
[modifications]
# TODO: maybe it is better to give the corresponding LOYAL_HERO trait directly?
[object]
[effect]
apply_to=overlay
add="misc/hero-icon.png"
[/effect]
[/object]
[/modifications]
[/unit]
{NOTRAIT_UNIT 2 Dragoon 30 26}
[unit]

View file

@ -72,7 +72,7 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
facing=ne
[/unit]
[/side]

View file

@ -115,7 +115,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
facing=sw
[/unit]
@ -135,7 +134,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
facing=sw
[/unit]
@ -155,7 +153,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
facing=sw
[/unit]
@ -175,7 +172,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
facing=sw
[/unit]
@ -195,7 +191,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
facing=sw
[/unit]

View file

@ -221,7 +221,7 @@
[unit]
type=Mermaid Priestess
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
[/modifications]
id=Cylanna
@ -230,7 +230,6 @@
side=1
x=21
y=9
{IS_HERO}
unrenamable=yes
[/unit]
@ -312,7 +311,6 @@
[/modifications]
facing=se
animate=yes
{IS_LOYAL}
profile=portraits/gwabbo.png
[/unit]

View file

@ -463,7 +463,6 @@ _f, _f, _f, _f, _f, _f, _f
side=1
x=$x1
y=$y1
{IS_LOYAL}
[/unit]
[if]
@ -590,7 +589,6 @@ _f, _f, _f, _f, _f, _f, _f
side=1
x=$x1
y=$y1
{IS_LOYAL}
[/unit]
[if]
@ -733,7 +731,6 @@ _f, _f, _f, _f, _f, _f, _f
side=1
x=$x1
y=$y1
{IS_LOYAL}
[/unit]
[if]

View file

@ -335,7 +335,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -627,7 +626,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -691,7 +689,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[if]

View file

@ -182,7 +182,7 @@
x={X}
y={Y}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
{TRAIT_FEARLESS}
[/modifications]
moves=0
@ -603,28 +603,12 @@
[/variable]
[then]
[store_unit]
[modify_unit]
[filter]
side=2
[/filter]
kill=yes
variable=orcs
[/store_unit]
[foreach]
array=orcs
[do]
[set_variable]
name=this_item.moves
value=0
[/set_variable]
[unstore_unit]
variable=this_item
[/unstore_unit]
[/do]
[/foreach]
[clear_variable]
name=orcs
[/clear_variable]
moves=0
[/modify_unit]
[/then]
[/if]
[/event]

View file

@ -218,24 +218,12 @@
id=Growloff
[/filter]
[store_unit]
variable=Growloff_stored
[modify_unit]
[filter]
id=Growloff
[/filter]
kill=yes
[/store_unit]
[set_variable]
name=Growloff_stored.hitpoints
value=1
[/set_variable]
[unstore_unit]
variable=Growloff_stored
[/unstore_unit]
{CLEAR_VARIABLE Growloff_stored}
hitpoints=1
[/modify_unit]
[message]
speaker=Growloff
@ -280,7 +268,6 @@
{TRAIT_LOYAL}
{TRAIT_HEALTHY}
[/modifications]
{IS_LOYAL}
animate=yes
[/unit]
[message]

View file

@ -240,11 +240,6 @@
y=8
[/filter]
[then]
[unit_overlay]
x=15
y=8
image=overlays/arcane-icon.png
[/unit_overlay]
[remove_item]
x,y=15,8
[/remove_item]
@ -264,6 +259,10 @@
range=melee
set_type=arcane
[/effect]
[effect]
apply_to=overlay
add="overlays/arcane-icon.png"
[/effect]
[/object]
[/event]
[/event]

View file

@ -383,10 +383,9 @@
name= _ "Caladon"
unrenamable=yes
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_QUICK}
[/modifications]
{IS_HERO}
profile=portraits/caladon.png
[/unit]

View file

@ -451,7 +451,6 @@
{TRAIT_LOYAL}
{TRAIT_DEXTROUS}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Thug
@ -464,7 +463,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Thug
@ -477,7 +475,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
{CLEAR_VARIABLE Siddry_stored}
@ -619,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

@ -40,7 +40,7 @@
canrecruit=yes
type=Mermaid Diviner
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
{TRAIT_DEXTROUS}
[/modifications]
[ai]
@ -112,32 +112,19 @@
message= _ "No matter. He was a fool. Now, you have done as I asked, grandson, so I will travel with you to your home and help you rid it of restless spirits. My priestesses will come as well, and will be at your disposal."
[/message]
# Switch Tyegea to side 1:
[store_unit]
[modify_unit]
[filter]
id=Tyegea
[/filter]
variable=Tyegea_stored
kill=yes
[/store_unit]
[set_variable]
name=Tyegea_stored.canrecruit
value=no
[/set_variable]
[set_variable]
name=Tyegea_stored.side
value=1
[/set_variable]
[unstore_unit]
variable=Tyegea_stored
[/unstore_unit]
side=1
canrecruit=no
[/modify_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
image=misc/loyal-icon.png
[/unit_overlay]
[clear_variable]
name=Tyegea_stored
[/clear_variable]
[allow_recruit]
type=Mermaid Priestess
@ -151,25 +138,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]

View file

@ -291,20 +291,12 @@
[/variable]
[then]
[store_unit]
[modify_unit]
[filter]
id=Mal-Kevek
[/filter]
variable=bad_guy_stored
kill=yes
[/store_unit]
[set_variable]
name=bad_guy_stored.name
value=Mal-Necross
[/set_variable]
[unstore_unit]
variable=bad_guy_stored
[/unstore_unit]
name="Mal-Necross"
[/modify_unit]
[/then]
[/if]
@ -315,26 +307,14 @@
[/variable]
[then]
[store_unit]
[modify_unit]
[filter]
id=Mel Daveth
[/filter]
variable=bad_guy_stored
kill=yes
[/store_unit]
[set_variable]
name=bad_guy_stored.name
value=Mal-Verloth
[/set_variable]
[unstore_unit]
variable=bad_guy_stored
[/unstore_unit]
name="Mal-Verloth"
[/modify_unit]
[/then]
[/if]
[clear_variable]
name=bad_guy_stored
[/clear_variable]
[/event]
# This event shows KK on the edge of the map for a second, moves
@ -406,7 +386,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -419,7 +398,6 @@
{TRAIT_INTELLIGENT}
[/modifications]
experience=10
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -432,7 +410,6 @@
{TRAIT_STRONG}
[/modifications]
experience=32
{IS_LOYAL}
[/unit]
[message]
speaker=Nebthun

View file

@ -168,25 +168,14 @@
name=side turn end
first_time_only=no
[store_unit]
[modify_unit]
[filter]
side=$side_number
status=stunned
[/filter]
variable=stunned
[/store_unit]
[foreach]
array=stunned
[do]
{CLEAR_VARIABLE this_item.status.stunned}
[unstore_unit]
variable=this_item
[/unstore_unit]
[/do]
[/foreach]
{CLEAR_VARIABLE stunned}
[status]
stunned=no
[/status]
[/modify_unit]
[/event]
[/unit_type]

View file

@ -17,11 +17,6 @@
y={Y}
[/filter]
[then]
[unit_overlay]
x={X}
y={Y}
image=overlays/storm-trident-icon.png
[/unit_overlay]
[remove_item]
x={X}
y={Y}
@ -41,6 +36,10 @@
damage=14
number=2
[/effect]
[effect]
apply_to=overlay
add="overlays/storm-trident-icon.png"
[/effect]
{LIGHTNING_ANIMATION "storm trident" 1}
{LIGHTNING_ANIMATION "storm trident" 2}
@ -60,11 +59,6 @@
y={Y}
[/filter]
[then]
[unit_overlay]
x={X}
y={Y}
image=overlays/flame-sword-icon.png
[/unit_overlay]
[remove_item]
x={X}
y={Y}
@ -83,6 +77,10 @@
damage=8
number=4
[/effect]
[effect]
apply_to=overlay
add="overlays/flame-sword-icon.png"
[/effect]
[/object]
#enddef
@ -98,11 +96,6 @@
y={Y}
[/filter]
[then]
[unit_overlay]
x={X}
y={Y}
image=overlays/arcane-icon.png
[/unit_overlay]
[remove_item]
x={X}
y={Y}
@ -116,6 +109,10 @@
arcane=30
[/resistance]
[/effect]
[effect]
apply_to="overlay"
add="overlays/arcane-icon.png"
[/effect]
[/object]
#enddef
@ -313,11 +310,6 @@
y=$ring_y
[/filter]
[then]
[unit_overlay]
x=$ring_x
y=$ring_y
image=overlays/silver-ring-icon.png
[/unit_overlay]
[remove_item]
x=$ring_x
y=$ring_y
@ -332,6 +324,10 @@
increase_total=3
increase=3
[/effect]
[effect]
apply_to=overlay
add="overlays/silver-ring-icon.png"
[/effect]
[/object]
{CLEAR_VARIABLE get_ring}
{CLEAR_VARIABLE seen_ring_description}

View file

@ -613,7 +613,6 @@
name= _ "Theorin"
side=1
x,y=31,9
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
@ -684,7 +683,6 @@
name= _ "Stanis"
side=1
x,y=29,25
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}

View file

@ -214,9 +214,6 @@
side=2
variable=start_loc
[/store_starting_location]
{CLEAR_VARIABLE Lionel.overlays}
{CLEAR_VARIABLE Lionel.ellipse}
{VARIABLE Lionel.canrecruit yes}
{VARIABLE Lionel.side 2}
{VARIABLE Lionel.facing nw}
[unstore_unit]
@ -224,6 +221,7 @@
x=$start_loc.x
y=$start_loc.y
[/unstore_unit]
{MAKE_LOYAL_LEADER Lionel}
{CLEAR_VARIABLE start_loc,Lionel}
# wmllint: recognize Lionel
[/event]
@ -367,7 +365,7 @@
[/else]
[/if]
{SUBSUME_SIDE_AND_VILLAGES 2}
{MAKE_HERO Lionel}
{MAKE_LOYAL_HERO Lionel}
[/event]
# last breath events for Iliah-Malal

View file

@ -87,9 +87,8 @@
type=General
profile="portraits/lionel.png"
unrenamable=yes
{IS_HERO}
[modifications]
{OBJECT_LOYAL}
{TRAIT_LOYAL_HERO_NOSLOT}
{TRAIT_FEARLESS}
{TRAIT_STRONG}
[/modifications]
@ -112,9 +111,8 @@
name= _ "Relgorn"
type=Dwarvish Fighter
unrenamable=yes # Shows up in HttT S14
{IS_HERO}
[modifications]
{OBJECT_LOYAL}
{TRAIT_LOYAL_HERO_NOSLOT}
{TRAIT_STRONG}
{TRAIT_HEALTHY}
[/modifications]

View file

@ -73,16 +73,15 @@
[/foreach]
{CLEAR_VARIABLE side_villages}
#restore moves, turn off canrecruit for the leader and change all allegiances.
[modify_unit]
[filter]
side={SIDE}
[/filter]
moves=$this_unit.max_moves
canrecruit=no
side=1
[/modify_unit]
#next, turn off canrecruit for the leader and change all allegiances.
{MODIFY_UNIT (side={SIDE}
canrecruit=yes) canrecruit no}
{MODIFY_UNIT side={SIDE} side 1}
[modify_side]
side={SIDE}
@ -133,9 +132,7 @@
# side 1.
#define CHANTAL_FOLLOWS_DELFADOR
{MODIFY_UNIT (id=Chantal) canrecruit no}
{MODIFY_UNIT (id=Chantal) overlays "misc/hero-icon.png"}
{MODIFY_UNIT (id=Chantal) ellipse "misc/ellipse-hero"}
{MAKE_LOYAL_HERO Chantal}
{MODIFY_UNIT (side=3) side 1}
[modify_side]
side=3
@ -263,7 +260,7 @@
{CLEAR_VARIABLE delfador_store}
# "n" tells us if {X} is even or odd. If it's even, "n" is equal to 1;
# otherwise, it's set to 0
# otherwise, it's set to 0
{VARIABLE n "$(if(({X}/2.0 = {X}/2), 1, 0))"}
{NAMED_UNIT 1 (Royal Guard) "$({X}-1)" "$({Y}-(1-$n))" Clogrin _"Clogrin" (facing=nw)}

View file

@ -374,6 +374,7 @@
[foreach]
array=units_inside_manor
[do]
# TODO: whats the point of killing it and then unstoring it here without changes?
[unstore_unit]
variable=this_item
find_vacant=no

View file

@ -375,24 +375,13 @@
x,y=26,16
[/recall]
[store_unit]
[modify_unit]
[filter]
id=Darken Volk
[/filter]
kill=yes
variable=stored_Darken
[/store_unit]
{VARIABLE stored_Darken.side 3}
{VARIABLE stored_Darken.canrecruit yes}
{CLEAR_VARIABLE stored_Darken.ellipse}
[unstore_unit]
variable=stored_Darken
[/unstore_unit]
{CLEAR_VARIABLE stored_Darken}
side=3
canrecruit=yes
[/modify_unit]
[lock_view][/lock_view]
[/event]

View file

@ -180,29 +180,21 @@
x,y=2,26
[/recall]
[store_unit]
[remove_trait]
id=Darken Volk
trait_id="loyal"
[/remove_trait]
[modify_unit]
[filter]
id=Darken Volk
[/filter]
kill=yes
variable=stored_Darken
[/store_unit]
{VARIABLE stored_Darken.side 2}
{VARIABLE stored_Darken.canrecruit yes}
{VARIABLE stored_Darken.role book_carrier}
# Removes the loyal trait and other misc stuff
{CLEAR_VARIABLE stored_Darken.modifications.trait[0]}
{CLEAR_VARIABLE stored_Darken.overlays}
{CLEAR_VARIABLE stored_Darken.ellipse}
[unstore_unit]
variable=stored_Darken
[/unstore_unit]
{CLEAR_VARIABLE stored_Darken}
side=2
canrecruit=yes
role=book_carrier
[/modify_unit]
[/event]
[event]
@ -258,6 +250,7 @@
[unit_overlay]
id=Darken Volk
image="misc/book-icon.png"
object_id="book_icon"
[/unit_overlay]
{MODIFY_UNIT (id=Darken Volk) facing ne}
@ -794,6 +787,7 @@
[unit_overlay]
x,y=$x1,$y1
image="misc/book-icon.png"
object_id="book_icon"
[/unit_overlay]
[if]
@ -907,10 +901,10 @@
[/filter_location]
[/filter]
[remove_unit_overlay]
[remove_object]
role=book_carrier
image="misc/book-icon.png"
[/remove_unit_overlay]
object_id="book_icon"
[/remove_object]
{MOVE_UNIT (id=Malin Keshar) 1 8}

View file

@ -3540,7 +3540,6 @@ And the tongue of fire begets ashen repose.</i>"
[/effect]
[/object]
[/modifications]
{IS_LOYAL}
[/unit]
[delay]

View file

@ -38,7 +38,6 @@
profile=portraits/darken_volk.png
unrenamable=yes
random_traits=no
{IS_HERO}
[modifications]
# NOTE: if you change these, make sure you don't break the
# removal of the loyal trait in 'Alone at Last'
@ -49,6 +48,14 @@
[effect]
apply_to=loyal
[/effect]
[effect]
apply_to=ellipse
ellipse=misc/ellipse-hero
[/effect]
[effect]
apply_to=overlay
add=misc/hero-icon.png
[/effect]
[/trait]
{TRAIT_QUICK}
[object]

View file

@ -229,7 +229,6 @@
x,y=$prison_locations[$i].x,$prison_locations[$i].y
random_traits=no
facing=sw
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TEAM_COLOR_OVERRIDE () white}

View file

@ -434,10 +434,9 @@
type=$stored_Owaec.type
experience=$stored_Owaec.experience
profile=portraits/owaec.png
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]

View file

@ -372,7 +372,6 @@
side=1
canrecruit=no
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}

View file

@ -191,7 +191,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Dacyn

View file

@ -208,11 +208,10 @@
id=Konrad
name= _ "Konrad II"
profile=portraits/konrad_II.png
{IS_HERO}
type=General
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
side=1
x=21

View file

@ -13,12 +13,11 @@
type=White Mage
id=Dacyn
name= _ "Dacyn"
{IS_HERO}
profile=portraits/dacyn.png
random_traits=no
unrenamable=yes
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TEAM_COLOR_OVERRIDE () teal}
[/modifications]
#enddef

View file

@ -133,7 +133,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Swordsman
@ -146,7 +145,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{NEED_DELFADOR placement=leader}
@ -237,7 +235,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Haldiel
@ -272,7 +269,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Horseman
@ -286,7 +282,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Horseman
@ -300,7 +295,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -314,7 +308,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -328,7 +321,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -343,7 +335,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Kaylan
@ -389,7 +380,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Horseman
@ -403,7 +393,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Horseman
@ -417,7 +406,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -431,7 +419,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -445,7 +432,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Knight
@ -460,7 +446,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]
[/redraw]
@ -493,7 +478,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Simyr

View file

@ -225,7 +225,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -277,7 +276,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
# The guy does not show up on the screen without some help

View file

@ -142,7 +142,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
#ifdef EASY
@ -159,7 +158,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
#ifdef HARD
@ -176,7 +174,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{OBJ_TRIDENT_STORM 5 4 bop_stormtrident}
@ -323,7 +320,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -336,7 +332,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -349,7 +344,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
@ -364,7 +358,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[message]
@ -396,7 +389,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
@ -411,7 +403,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -424,7 +415,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
#else
[unit]
@ -438,7 +428,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[message]
@ -470,7 +459,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
@ -485,7 +473,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
@ -518,7 +505,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -531,7 +517,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
@ -546,7 +531,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif
[message]
@ -578,7 +562,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -591,7 +574,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -604,7 +586,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
#ifdef EASY
[unit]
@ -618,7 +599,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -631,7 +611,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
#else
[unit]
@ -645,7 +624,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
#endif

View file

@ -321,7 +321,6 @@
[/object]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#set the variable to say the Moremirmu is alive
[set_variable]
@ -369,7 +368,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{LOYAL_UNIT 2 (Walking Corpse) ({X}) ({Y})}

View file

@ -253,7 +253,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -268,7 +267,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gamlel
@ -282,7 +280,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]
@ -411,7 +408,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -426,7 +422,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Gamlel
@ -440,7 +435,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=Darglen
@ -453,7 +447,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#dialog
[message]
@ -529,7 +522,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -544,7 +536,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -559,7 +550,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#create terrain
[terrain]

View file

@ -334,7 +334,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[object]

View file

@ -277,7 +277,6 @@
[/object]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{LOYAL_UNIT 1 (White Mage) 20 48}

View file

@ -172,7 +172,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef

View file

@ -123,7 +123,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -135,7 +134,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -147,7 +145,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -159,7 +156,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -171,7 +167,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -183,7 +178,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -195,7 +189,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
id=rider
@ -208,7 +201,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -220,7 +212,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
generate_name=yes
@ -232,7 +223,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{FLAG_VARIANT knalgan}
[/side]

View file

@ -193,7 +193,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[teleport]
[filter]
@ -436,7 +435,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
#ifdef EASY
@ -454,7 +452,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[/event]

View file

@ -181,7 +181,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]
[/redraw]
@ -203,7 +202,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]
[/redraw]
@ -402,9 +400,8 @@
[/filter]
side=1
canrecruit=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/modify_unit]
[/event]

View file

@ -226,7 +226,6 @@
{TRAIT_LOYAL}
{TRAIT_FEARLESS}
[/modifications]
{IS_LOYAL}
[status]
poisoned=yes
[/status]
@ -815,7 +814,6 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
{TRAIT_LOYAL}
{TRAIT_FEARLESS}
[/modifications]
{IS_LOYAL}
[status]
poisoned=yes
[/status]

View file

@ -412,7 +412,6 @@
{TRAIT_LOYAL}
{TRAIT_DEXTROUS}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]

View file

@ -690,9 +690,8 @@ fire: +10%"
unrenamable=yes
type=Elder Mage
{PLACEMENT}
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
@ -706,10 +705,9 @@ fire: +10%"
unrenamable=yes
type=Elvish Lord
{PLACEMENT}
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef
@ -722,10 +720,9 @@ fire: +10%"
unrenamable=yes
type=Princess
{PLACEMENT}
{IS_HERO}
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef

View file

@ -135,7 +135,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
facing=nw
id=guard2
x=24
@ -169,7 +168,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
)}

View file

@ -328,6 +328,8 @@
[unit_overlay]
x,y={POSITION}
image=items/gold-coins-small.png
duration=scenario
object_id="gold_icon"
[/unit_overlay]
[/then]
[/object]
@ -423,10 +425,10 @@
y=22
[/filter]
[remove_unit_overlay]
[remove_object]
role=gold_carrier
image=items/gold-coins-small.png
[/remove_unit_overlay]
object_id="gold_icon"
[/remove_object]
[endlevel]
result=victory

View file

@ -36,7 +36,7 @@
[modifications]
{TRAIT_QUICK}
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
[/modifications]
#enddef
@ -58,7 +58,6 @@
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#define SCOUT
@ -71,7 +70,6 @@
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#define LANDAR
@ -90,7 +88,7 @@
[modifications]
{TRAIT_DEXTROUS}
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
[/modifications]
#enddef
@ -126,7 +124,7 @@
[modifications]
{TRAIT_QUICK}
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
[/modifications]
#enddef
@ -140,7 +138,6 @@
{TRAIT_INTELLIGENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#define TAMERIL_ISIMERIL
@ -153,7 +150,6 @@
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#define OLURF
@ -202,7 +198,6 @@
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -218,7 +213,6 @@
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -262,7 +256,6 @@
{TRAIT_HEALTHY}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
@ -345,7 +338,6 @@
{TRAIT_DEXTROUS}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#define ARKILDUR
@ -358,7 +350,6 @@
{TRAIT_STRONG}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#enddef
#TODO bring the macro to use.

View file

@ -238,9 +238,8 @@
#textdomain wesnoth-l
[/effect]
[/object]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
{IS_HERO}
unrenamable=yes
[/unit]

View file

@ -301,7 +301,6 @@
profile=$this_item.profile
unrenamable=$this_item.unrenamable
canrecruit=$this_item.canrecruit
overlays=$this_item.overlays
random_traits=$this_item.random_traits
role=$this_item.role

View file

@ -48,6 +48,7 @@
profile=portraits/relana.png
facing=se
side=2
# TODO: why does she have a hero icon in addition to her leader icon?
overlays=misc/hero-icon.png
canrecruit=yes
controller=ai
@ -203,10 +204,10 @@
speaker=Relana
message= _ "I agree. But, Baldras, what will you tell him? We know something has been going badly wrong in Wesnoth of late, that more than ordinary corruption and incompetence is afoot. But when the effects fall on mere peasants, the wrong of it may not seem so obvious from a nobles chair."
[/message]
[sound]
name=ambient/wardrums.ogg
[sound]
name=ambient/wardrums.ogg
repeat=3
[/sound]
[/sound]
[message]
speaker=Baldras
message= _ "We need evidence. Hard evidence... but wait— Are those orcish war drums I hear?"

View file

@ -320,13 +320,7 @@
id=Harper
[/recall]
{UNMAKE_HERO Harper}
# He's still a loyal unit with dialogue when he dies
[unit_overlay]
id=Harper
image=misc/loyal-icon.png
[/unit_overlay]
{MAKE_LOYAL_NORMAL Harper}
[message]
speaker=Baldras

View file

@ -110,7 +110,6 @@
id=Zlex
name= _ "Zlex"
x,y=6,24
{IS_LOYAL}
role=Supporter
[modifications]
{TRAIT_LOYAL}

View file

@ -42,10 +42,9 @@
name= _ "Hamel"
profile=portraits/Hamel.png
# This nice macro gives the unit silver crown.
{IS_HERO}
x,y=6,23
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_STRONG}
[/modifications]
[/unit]

View file

@ -1565,7 +1565,6 @@
name= _ "Dulcatas"
side=1
x,y=4,8
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_HEALTHY}
@ -1578,7 +1577,6 @@
name= _ "Antolos"
side=1
x,y=7,10
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
@ -1591,7 +1589,6 @@
name= _ "Varem"
side=1
x,y=6,13
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
@ -2054,7 +2051,6 @@
id=Abhai
name= _ "Abhai"
# profile=Abhai.png
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}

View file

@ -69,7 +69,7 @@
name= _ "Galim"
x,y=12,11
facing=se
{IS_LOYAL}
# todo: is the unit loyal or not? before it had the {IS_LOYAL} but without the real loyal trait.
[/unit]
[/side]

View file

@ -972,6 +972,8 @@
{CLEAR_VARIABLE this_item.moves}
{CLEAR_VARIABLE this_item.hitpoints}
{CLEAR_VARIABLE this_item.status}
{CLEAR_VARIABLE this_item.overlays}
{CLEAR_VARIABLE this_item.ellipse}
# Must be cleared too, otherwise the loyal trait won't change it
{CLEAR_VARIABLE this_item.upkeep}
# Stalrag gains the loyal and healthy traits, while Ro'Arthian and Ro'Sothian get loyal and undead.
@ -981,7 +983,6 @@
equals=Stalrag
[/variable]
[then]
{VARIABLE this_item.overlays misc/loyal-icon.png}
[set_variables]
name=this_item.modifications
mode=replace
@ -992,13 +993,11 @@
[/set_variables]
[/then]
[else]
{VARIABLE this_item.overlays misc/hero-icon.png}
{VARIABLE this_item.ellipse misc/ellipse-hero}
[set_variables]
name=this_item.modifications
mode=replace
[literal]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_UNDEAD}
[/literal]
[/set_variables]

View file

@ -234,7 +234,6 @@
{TRAIT_LOYAL}
{TRAIT_HEALTHY}
[/modifications]
{IS_LOYAL}
[/unit]
[/else]
[/if]
@ -258,9 +257,8 @@
x,y=15,2
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
{IS_HERO}
[/unit]
[/else]
[/if]
@ -284,9 +282,8 @@
x,y=15,2
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
{IS_HERO}
[/unit]
[/else]
[/if]
@ -385,7 +382,6 @@
{TRAIT_LOYAL}
{TRAIT_DEXTROUS}
[/modifications]
{IS_LOYAL}
[/unit]
[message]

View file

@ -270,7 +270,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
id=Abhai
name= _ "Abhai"
#profile=Abhai.png

View file

@ -597,7 +597,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[move_unit_fake]
@ -617,7 +616,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[message]

View file

@ -592,7 +592,6 @@
[/filter]
canrecruit=no
{TRAIT_LOYAL}
{IS_LOYAL}
[/modify_unit]
[message]

View file

@ -25,7 +25,6 @@
id=Camerin
name= _ "Camerin"
profile=portraits/Camerin.png
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
@ -37,7 +36,6 @@
id=Father Morvin
name= _ "Father Morvin"
profile=portraits/Father_Morvin.png
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
@ -50,7 +48,6 @@
id=Sister Thera
name= _ "Sister Thera"
profile=portraits/Sister_Thera.png
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_QUICK}
@ -62,7 +59,6 @@
id=Elenia
name= _ "Elenia"
profile=portraits/Elenia.png
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_HEALTHY}
@ -73,7 +69,6 @@
type=Drake Burner
id=Krash
name= _ "Krash"
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}

View file

@ -81,17 +81,7 @@
[/have_unit]
[then]
# Ensure he is a leader
[modify_unit]
[filter]
id=Krash
[/filter]
canrecruit=yes
[/modify_unit]
# Remove loyalty overlay
[remove_unit_overlay]
id=Krash
image=misc/loyal-icon.png
[/remove_unit_overlay]
{MAKE_LOYAL_LEADER Krash}
# Give expendable overlay
[unit_overlay]
id=Krash

View file

@ -328,32 +328,36 @@
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
[/modifications]
[/unit]
[unit]
x,y=6,29
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
[/modifications]
[/unit]
[unit]
x,y=6,28
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
[/modifications]
[/unit]
[unit]
x,y=7,28
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
[/modifications]
[/unit]
#ifdef HARD
[unit]
@ -361,8 +365,9 @@
type=Caravan
side=1
facing=ne
upkeep=free
{IS_HERO}
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
[/modifications]
[/unit]
#endif
[unit]
@ -373,10 +378,9 @@
name= _ "Alanin"
unrenamable=yes
facing=ne
{IS_HERO}
profile=portraits/alanin.png
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
[/modifications]
[/unit]

View file

@ -275,11 +275,10 @@
id=Baglur
name= _ "Baglur"
unrenamable=yes
{IS_HERO}
profile=portraits/baglur.png
facing=sw
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
[/modifications]
[/unit]

View file

@ -66,7 +66,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=13,11
@ -79,7 +78,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=9,13
@ -91,7 +89,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=11,14
@ -103,7 +100,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[/event]

View file

@ -333,11 +333,10 @@
id=Krawg
name= _ "Krawg"
unrenamable=yes
{IS_HERO}
x,y=5,24
side=1
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
@ -500,12 +499,11 @@
id=Thursagan
name= _ "Thursagan"
unrenamable=yes
{IS_HERO}
profile=portraits/thursagan.png
advances_to=Dwarvish Arcanister
max_experience=210
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_STRONG}
[/modifications]
[/unit]
@ -595,11 +593,7 @@
speaker=Thursagan
message= _ "Well, now we are in the caves again! Come on, back south, to the city."
[/message]
{UNMAKE_HERO Baglur}
[unit_overlay]
id=Baglur
image=misc/loyal-icon.png
[/unit_overlay]
{MAKE_LOYAL_NORMAL Baglur}
{CLEAR_VARIABLE thur_x,thur_y}
[endlevel]
result=victory

View file

@ -61,7 +61,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=13,12
@ -73,7 +72,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=9,13
@ -85,7 +83,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=11,14
@ -97,7 +94,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[/event]
@ -228,7 +224,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
type=Dwarvish Runesmith
@ -240,7 +235,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=narrator

View file

@ -691,6 +691,7 @@
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
object_id="coal_icon"
[/unit_overlay]
[remove_item]
x,y=$x1,$y1
@ -728,6 +729,7 @@
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
object_id="coal_icon"
[/unit_overlay]
[remove_item]
x,y=$x1,$y1
@ -785,6 +787,7 @@
[unit_overlay]
x,y=$x1,$y1
image=misc/gold-icon.png
object_id="gold_icon"
[/unit_overlay]
[remove_item]
x,y=$x1,$y1
@ -852,6 +855,7 @@
[unit_overlay]
x,y=$x1,$y1
image=misc/coal-icon.png
object_id="coal_icon"
[/unit_overlay]
[remove_item]
@ -926,6 +930,7 @@
[unit_overlay]
x,y=$x1,$y1
image=misc/gold-icon.png
object_id="gold_icon"
[/unit_overlay]
[remove_item]
@ -964,10 +969,10 @@
find_vacant=no
[/unstore_unit]
[remove_unit_overlay]
[remove_object]
x,y=$x1,$y1
image=misc/coal-icon.png
[/remove_unit_overlay]
object_id="coal_icon"
[/remove_object]
[set_variable]
name=coalin
@ -1029,10 +1034,10 @@
find_vacant=no
[/unstore_unit]
[remove_unit_overlay]
[remove_object]
x,y=$x1,$y1
image=misc/gold-icon.png
[/remove_unit_overlay]
object_id="gold_icon"
[/remove_object]
[set_variable]
name=goldin

View file

@ -61,7 +61,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=10,9
@ -73,7 +72,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=8,10
@ -85,7 +83,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=10,12
@ -97,7 +94,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[/event]

View file

@ -199,11 +199,10 @@
name= _ "Durstorn"
unrenamable=yes
side=1
{IS_HERO}
profile=portraits/durstorn-insane.png
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
[unit]
@ -216,7 +215,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
[/unit]
[unit]
x,y=11,1
@ -228,7 +226,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
#alanin, baglur, krawg and thursagan
[recall]

View file

@ -367,7 +367,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Rolin # wmllint: ignore
@ -393,7 +392,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{RANDOM "Spearman,Bowman"}
@ -407,7 +405,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
{CLEAR_VARIABLE random}
@ -558,7 +555,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Hadlin # wmllint: ignore

View file

@ -53,7 +53,6 @@
type=Bone Captain
id=Bone Captain
name= _ "Rudic"
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
[/modifications]
@ -63,7 +62,6 @@
type=SotA Ruffian
id=Carcyn
name= _ "Carcyn"
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_STRONG}
@ -75,7 +73,6 @@
id=Shynal
name= _ "Shynal"
gender=female
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
@ -124,7 +121,6 @@
type=Saurian Soothsayer
id=Vendraxis
name= _ "Vendraxis"
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
{TRAIT_RESILIENT}

View file

@ -261,9 +261,8 @@
profile=portraits/gruu.png
facing=sw
random_traits=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[object]
[effect]
apply_to=image_mod

View file

@ -472,7 +472,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[allow_recruit]
@ -622,7 +621,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[allow_recruit]

View file

@ -11,9 +11,8 @@
x={X}
y={Y}
random_traits=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef
@ -29,9 +28,8 @@
x={X}
y={Y}
random_traits=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef
@ -47,9 +45,8 @@
x={X}
y={Y}
random_traits=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef

View file

@ -53,7 +53,6 @@
id=Pelmathidrol
name= _ "Pelmathidrol"
x,y=1,15
{IS_LOYAL}
facing=se
[modifications]
{TRAIT_LOYAL}
@ -144,7 +143,6 @@
x,y=45,29
id=Movrur
name= _ "Movrur"
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
[/modifications]

View file

@ -40,7 +40,7 @@
x={X}
y={Y}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL OVERLAY=""}
[/modifications]
ai_special=guardian
random_traits=yes

View file

@ -19,9 +19,8 @@
name= _ "Angarthing"
profile=portraits/angarthing.png
unrenamable=yes
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_QUICK}
[/modifications]
#enddef
@ -32,9 +31,8 @@
profile=portraits/ratheln.png
name= _ "Ratheln"
unrenamable=yes
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_STRONG}
[/modifications]
#enddef
@ -58,9 +56,8 @@
name= _ "Dulcatulos"
profile=portraits/dulcatulos.png
unrenamable=yes
{IS_HERO}
upkeep=free
[modifications]
{TRAIT_LOYAL_HERO_NOSLOT}
{TRAIT_QUICK}
{TRAIT_HEALTHY}
[/modifications]

View file

@ -128,7 +128,6 @@
{TRAIT_LOYAL}
{SECOND_TRAIT_WML}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef
@ -328,11 +327,10 @@
x,y=$wesfolk_leader_store.x,$wesfolk_leader_store.y
experience=$wesfolk_leader_store.experience
moves=$wesfolk_leader_store.moves
overlays=misc/hero-icon.png
random_traits=no
profile=portraits/lady_outlaw.png
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]

View file

@ -171,7 +171,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[message]

View file

@ -367,7 +367,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
speaker=Minister Edren
@ -541,7 +540,6 @@ Enter at Your Own Risk!"
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]

View file

@ -362,7 +362,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[redraw]

View file

@ -270,11 +270,10 @@
placement=map_overwrite
facing=$lady_store.facing
experience=$lady_store.experience
overlays=misc/hero-icon.png
random_traits=no
profile=portraits/jessica.png
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]

View file

@ -963,7 +963,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -1102,7 +1101,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -1223,7 +1221,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
[scroll_to_unit]

View file

@ -18,11 +18,10 @@
side={SIDE}
x={X}
y={Y}
{IS_HERO}
unrenamable=yes
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
#enddef
@ -41,7 +40,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef
@ -58,7 +56,6 @@
{TRAIT_UNDEAD}
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef
@ -75,7 +72,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef
@ -95,6 +91,5 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]
#enddef

View file

@ -191,7 +191,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -257,10 +256,9 @@
name= _ "Sir Gerrick"
unrenamable=yes
profile=portraits/sir-gerrick.png
{IS_HERO}
x,y=10,9
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
@ -425,7 +423,6 @@
{TRAIT_INTELLIGENT}
[/modifications]
x,y=5,11
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -445,7 +442,6 @@
{TRAIT_QUICK}
[/modifications]
x,y=5,10
{IS_LOYAL}
[/unit]
[message]
@ -549,7 +545,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -586,7 +581,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -799,10 +793,9 @@
name= _ "Sir Gerrick"
unrenamable=yes
profile=portraits/sir-gerrick.png
{IS_HERO}
x,y=10,9
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_RESILIENT}
[/modifications]
[/unit]

View file

@ -317,11 +317,10 @@
profile=portraits/hylas.png
name= _ "Minister Hylas"
unrenamable=yes
{IS_HERO}
side=1
x,y=21,14
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]
@ -480,7 +479,6 @@
{TRAIT_STRONG}
[/modifications]
x,y=14,21
{IS_LOYAL}
[/unit]
[message]
@ -515,7 +513,6 @@
{TRAIT_INTELLIGENT}
[/modifications]
x,y=14,21
{IS_LOYAL}
[/unit]
[unit]
side=1
@ -535,7 +532,6 @@
{TRAIT_QUICK}
[/modifications]
x,y=15,21
{IS_LOYAL}
[/unit]
[message]

View file

@ -162,11 +162,10 @@
name= _ "Ethiliel"
unrenamable=yes
profile=portraits/ethiliel.png
{IS_HERO}
x,y=recall,recall
random_traits=no
[modifications]
# Loyal trait is given later
{TRAIT_LOYAL_HERO_NOSLOT}
{TRAIT_QUICK}
[/modifications]
[/unit]
@ -299,7 +298,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
[/unit]
[message]
@ -545,18 +543,18 @@
{VARIABLE EthilielV.x recall}
{VARIABLE EthilielV.y recall}
{CLEAR_VARIABLE EthilielV.modifications}
[set_variables]
name=EthilielV.modifications
mode=insert
[value]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_QUICK}
[/value]
[/set_variables]
{CLEAR_VARIABLE EthilielV.upkeep}
{CLEAR_VARIABLE EthilielV.upkeep}
[unstore_unit]
variable=EthilielV
[/unstore_unit]

View file

@ -486,7 +486,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
to_variable=ranger
[/unit]
[if]

View file

@ -85,28 +85,29 @@
[side]
side=3
type=Soulless
id=Gruth
name= _ "Gruth"
canrecruit=yes
overlays="misc/leader-expendable.png"
team_name=undead
side_name=_"Undead"
user_team_name=_"Undead"
controller=ai
{GOLD 45 60 75}
{INCOME 5 8 11}
[leader]
type=Soulless
id=Gruth
name= _ "Gruth"
{IS_EXPENDABLE_LEADER}
[/leader]
# Second leader:
[unit]
[leader]
type=Soulless
id=Gerd
name=_ "Gerd"
canrecruit=yes
overlays="misc/leader-expendable.png"
x,y=11,26
[/unit]
{IS_EXPENDABLE_LEADER}
[/leader]
[ai]
recruitment_pattern=fighter
{NO_SCOUTS}
@ -798,9 +799,8 @@
moves=$this_unit.max_moves
profile=portraits/urza-afalas.png
canrecruit=no
{IS_HERO}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/modify_unit]

View file

@ -473,11 +473,10 @@ _f, _f, Re, _f
name= _ "Urza Afalas"
unrenamable=yes
profile=portraits/urza-afalas.png
{IS_HERO}
x,y=recall,recall
random_traits=no
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
[/modifications]
[/unit]
[/then]

View file

@ -320,12 +320,8 @@
id=Minister Hylas
[/kill]
{MODIFY_UNIT (id=Sir Gerrick) overlays ""}
{MODIFY_UNIT (id=Sir Gerrick) canrecruit yes}
{MODIFY_UNIT (id=Sir Gerrick) ellipse ""}
{MODIFY_UNIT (id=Urza Afalas) overlays "misc/loyal-icon.png"}
{MODIFY_UNIT (id=Urza Afalas) ellipse ""}
{MAKE_LOYAL_LEADER (Sir Gerrick)}
{MAKE_LOYAL_NORMAL (Urza Afalas)}
[message]
speaker=Illan

View file

@ -390,8 +390,7 @@
x,y=18,8
[/recall]
{MODIFY_UNIT (id=Minister Hylas) overlays "misc/loyal-icon.png"}
{MODIFY_UNIT (id=Minister Hylas) ellipse ""}
{MAKE_LOYAL_NORMAL (Minister Hylas)}
[message]
speaker=Deoran
@ -666,7 +665,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
)}
{UNIT 1 (White Mage) 9 2 (
generate_name=yes
@ -675,7 +673,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
)}
[/event]

View file

@ -542,7 +542,6 @@ Besides... I want my brother back."
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
)}
[message]

View file

@ -130,10 +130,9 @@
type=Red Mage
profile=portraits/baran.png
side=1
{IS_HERO}
{PLACEMENT}
[modifications]
{TRAIT_LOYAL}
{TRAIT_LOYAL_HERO}
{TRAIT_INTELLIGENT}
[/modifications]
[/unit]

View file

@ -1004,7 +1004,6 @@
gender=$elf_pool[$random_elf_pool_index].gender
random_traits=yes
#ifdef EASY
{IS_LOYAL}
[modifications]
{TRAIT_LOYAL}
[/modifications]
@ -1410,7 +1409,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
#endif
[/unit]
[/do]

View file

@ -745,7 +745,6 @@
[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
x=$x1
y=$y1
[/unit]
@ -1036,7 +1035,6 @@
[/effect]
[/object]
[/modifications]
{IS_LOYAL}
x="$($x1 - 2)"
y="$($y1 - 4)"
side=1

View file

@ -361,12 +361,10 @@
#endif
# give the champs an icon so they stand out, but make it gray since they are not loyal
[modify_unit]
[filter]
id=Grak,Zur
[/filter]
overlays=misc/loyal-icon.png~GS()
[/modify_unit]
[unit_overlay]
id=Grak,Zur
image=misc/loyal-icon.png~GS()
[/unit_overlay]
[message]
speaker=Nym

View file

@ -452,7 +452,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
[/unit]
[/then]
[/if]
@ -1830,7 +1829,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
role=ally
[/unit]
@ -1846,7 +1844,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
role=ally
[/unit]
@ -1862,7 +1859,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
role=ally
[/unit]
@ -1879,7 +1875,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
role=ally
[/unit]
#endif
@ -1896,7 +1891,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
role=ally
[/unit]
@ -1945,7 +1939,6 @@
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
{IS_LOYAL}
role=ally
placement=map
passable=yes
@ -1963,7 +1956,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
role=ally
placement=map
passable=yes
@ -1981,7 +1973,6 @@
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
{IS_LOYAL}
role=ally
placement=map
passable=yes
@ -1999,7 +1990,6 @@
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
{IS_LOYAL}
role=ally
placement=map
passable=yes
@ -2019,7 +2009,6 @@
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
{IS_LOYAL}
role=ally
placement=map
passable=yes

Some files were not shown because too many files have changed in this diff Show more