use overlay effect over [unit] overlays=
This commit is contained in:
parent
aa07ec7915
commit
ef06634485
11 changed files with 42 additions and 47 deletions
|
@ -74,7 +74,15 @@
|
||||||
side=2
|
side=2
|
||||||
x,y=30,27
|
x,y=30,27
|
||||||
random_traits=no
|
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]
|
[/unit]
|
||||||
{NOTRAIT_UNIT 2 Dragoon 30 26}
|
{NOTRAIT_UNIT 2 Dragoon 30 26}
|
||||||
[unit]
|
[unit]
|
||||||
|
|
|
@ -214,9 +214,6 @@
|
||||||
side=2
|
side=2
|
||||||
variable=start_loc
|
variable=start_loc
|
||||||
[/store_starting_location]
|
[/store_starting_location]
|
||||||
{CLEAR_VARIABLE Lionel.overlays}
|
|
||||||
{CLEAR_VARIABLE Lionel.ellipse}
|
|
||||||
{VARIABLE Lionel.canrecruit yes}
|
|
||||||
{VARIABLE Lionel.side 2}
|
{VARIABLE Lionel.side 2}
|
||||||
{VARIABLE Lionel.facing nw}
|
{VARIABLE Lionel.facing nw}
|
||||||
[unstore_unit]
|
[unstore_unit]
|
||||||
|
@ -224,6 +221,7 @@
|
||||||
x=$start_loc.x
|
x=$start_loc.x
|
||||||
y=$start_loc.y
|
y=$start_loc.y
|
||||||
[/unstore_unit]
|
[/unstore_unit]
|
||||||
|
{MAKE_LOYAL_LEADER Lionel}
|
||||||
{CLEAR_VARIABLE start_loc,Lionel}
|
{CLEAR_VARIABLE start_loc,Lionel}
|
||||||
# wmllint: recognize Lionel
|
# wmllint: recognize Lionel
|
||||||
[/event]
|
[/event]
|
||||||
|
@ -367,7 +365,7 @@
|
||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
{SUBSUME_SIDE_AND_VILLAGES 2}
|
{SUBSUME_SIDE_AND_VILLAGES 2}
|
||||||
{MAKE_HERO Lionel}
|
{MAKE_LOYAL_HERO Lionel}
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# last breath events for Iliah-Malal
|
# last breath events for Iliah-Malal
|
||||||
|
|
|
@ -73,16 +73,15 @@
|
||||||
[/foreach]
|
[/foreach]
|
||||||
{CLEAR_VARIABLE side_villages}
|
{CLEAR_VARIABLE side_villages}
|
||||||
|
|
||||||
|
#restore moves, turn off canrecruit for the leader and change all allegiances.
|
||||||
[modify_unit]
|
[modify_unit]
|
||||||
[filter]
|
[filter]
|
||||||
side={SIDE}
|
side={SIDE}
|
||||||
[/filter]
|
[/filter]
|
||||||
moves=$this_unit.max_moves
|
moves=$this_unit.max_moves
|
||||||
|
canrecruit=no
|
||||||
|
side=1
|
||||||
[/modify_unit]
|
[/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]
|
[modify_side]
|
||||||
side={SIDE}
|
side={SIDE}
|
||||||
|
@ -133,9 +132,7 @@
|
||||||
# side 1.
|
# side 1.
|
||||||
|
|
||||||
#define CHANTAL_FOLLOWS_DELFADOR
|
#define CHANTAL_FOLLOWS_DELFADOR
|
||||||
{MODIFY_UNIT (id=Chantal) canrecruit no}
|
{MAKE_LOYAL_HERO Chantal}
|
||||||
{MODIFY_UNIT (id=Chantal) overlays "misc/hero-icon.png"}
|
|
||||||
{MODIFY_UNIT (id=Chantal) ellipse "misc/ellipse-hero"}
|
|
||||||
{MODIFY_UNIT (side=3) side 1}
|
{MODIFY_UNIT (side=3) side 1}
|
||||||
[modify_side]
|
[modify_side]
|
||||||
side=3
|
side=3
|
||||||
|
@ -263,7 +260,7 @@
|
||||||
{CLEAR_VARIABLE delfador_store}
|
{CLEAR_VARIABLE delfador_store}
|
||||||
|
|
||||||
# "n" tells us if {X} is even or odd. If it's even, "n" is equal to 1;
|
# "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))"}
|
{VARIABLE n "$(if(({X}/2.0 = {X}/2), 1, 0))"}
|
||||||
|
|
||||||
{NAMED_UNIT 1 (Royal Guard) "$({X}-1)" "$({Y}-(1-$n))" Clogrin _"Clogrin" (facing=nw)}
|
{NAMED_UNIT 1 (Royal Guard) "$({X}-1)" "$({Y}-(1-$n))" Clogrin _"Clogrin" (facing=nw)}
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
profile=portraits/relana.png
|
profile=portraits/relana.png
|
||||||
facing=se
|
facing=se
|
||||||
side=2
|
side=2
|
||||||
|
# TODO: why does she have a hero icon in addition to her leader icon?
|
||||||
overlays=misc/hero-icon.png
|
overlays=misc/hero-icon.png
|
||||||
canrecruit=yes
|
canrecruit=yes
|
||||||
controller=ai
|
controller=ai
|
||||||
|
@ -203,10 +204,10 @@
|
||||||
speaker=Relana
|
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 noble’s chair."
|
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 noble’s chair."
|
||||||
[/message]
|
[/message]
|
||||||
[sound]
|
[sound]
|
||||||
name=ambient/wardrums.ogg
|
name=ambient/wardrums.ogg
|
||||||
repeat=3
|
repeat=3
|
||||||
[/sound]
|
[/sound]
|
||||||
[message]
|
[message]
|
||||||
speaker=Baldras
|
speaker=Baldras
|
||||||
message= _ "We need evidence. Hard evidence... but wait— Are those orcish war drums I hear?"
|
message= _ "We need evidence. Hard evidence... but wait— Are those orcish war drums I hear?"
|
||||||
|
|
|
@ -81,17 +81,7 @@
|
||||||
[/have_unit]
|
[/have_unit]
|
||||||
[then]
|
[then]
|
||||||
# Ensure he is a leader
|
# Ensure he is a leader
|
||||||
[modify_unit]
|
{MAKE_LOYAL_LEADER Krash}
|
||||||
[filter]
|
|
||||||
id=Krash
|
|
||||||
[/filter]
|
|
||||||
canrecruit=yes
|
|
||||||
[/modify_unit]
|
|
||||||
# Remove loyalty overlay
|
|
||||||
[remove_unit_overlay]
|
|
||||||
id=Krash
|
|
||||||
image=misc/loyal-icon.png
|
|
||||||
[/remove_unit_overlay]
|
|
||||||
# Give expendable overlay
|
# Give expendable overlay
|
||||||
[unit_overlay]
|
[unit_overlay]
|
||||||
id=Krash
|
id=Krash
|
||||||
|
|
|
@ -327,7 +327,6 @@
|
||||||
x,y=$wesfolk_leader_store.x,$wesfolk_leader_store.y
|
x,y=$wesfolk_leader_store.x,$wesfolk_leader_store.y
|
||||||
experience=$wesfolk_leader_store.experience
|
experience=$wesfolk_leader_store.experience
|
||||||
moves=$wesfolk_leader_store.moves
|
moves=$wesfolk_leader_store.moves
|
||||||
overlays=misc/hero-icon.png
|
|
||||||
random_traits=no
|
random_traits=no
|
||||||
profile=portraits/lady_outlaw.png
|
profile=portraits/lady_outlaw.png
|
||||||
[modifications]
|
[modifications]
|
||||||
|
|
|
@ -270,7 +270,6 @@
|
||||||
placement=map_overwrite
|
placement=map_overwrite
|
||||||
facing=$lady_store.facing
|
facing=$lady_store.facing
|
||||||
experience=$lady_store.experience
|
experience=$lady_store.experience
|
||||||
overlays=misc/hero-icon.png
|
|
||||||
random_traits=no
|
random_traits=no
|
||||||
profile=portraits/jessica.png
|
profile=portraits/jessica.png
|
||||||
[modifications]
|
[modifications]
|
||||||
|
|
|
@ -85,28 +85,29 @@
|
||||||
|
|
||||||
[side]
|
[side]
|
||||||
side=3
|
side=3
|
||||||
type=Soulless
|
|
||||||
id=Gruth
|
|
||||||
name= _ "Gruth"
|
|
||||||
canrecruit=yes
|
|
||||||
overlays="misc/leader-expendable.png"
|
|
||||||
|
|
||||||
team_name=undead
|
team_name=undead
|
||||||
|
side_name=_"Undead"
|
||||||
user_team_name=_"Undead"
|
user_team_name=_"Undead"
|
||||||
controller=ai
|
controller=ai
|
||||||
|
|
||||||
{GOLD 45 60 75}
|
{GOLD 45 60 75}
|
||||||
{INCOME 5 8 11}
|
{INCOME 5 8 11}
|
||||||
|
|
||||||
|
[leader]
|
||||||
|
type=Soulless
|
||||||
|
id=Gruth
|
||||||
|
name= _ "Gruth"
|
||||||
|
{IS_EXPENDABLE_LEADER}
|
||||||
|
[/leader]
|
||||||
# Second leader:
|
# Second leader:
|
||||||
[unit]
|
[leader]
|
||||||
type=Soulless
|
type=Soulless
|
||||||
id=Gerd
|
id=Gerd
|
||||||
name=_ "Gerd"
|
name=_ "Gerd"
|
||||||
canrecruit=yes
|
|
||||||
overlays="misc/leader-expendable.png"
|
|
||||||
x,y=11,26
|
x,y=11,26
|
||||||
[/unit]
|
{IS_EXPENDABLE_LEADER}
|
||||||
|
[/leader]
|
||||||
[ai]
|
[ai]
|
||||||
recruitment_pattern=fighter
|
recruitment_pattern=fighter
|
||||||
{NO_SCOUTS}
|
{NO_SCOUTS}
|
||||||
|
|
|
@ -320,12 +320,8 @@
|
||||||
id=Minister Hylas
|
id=Minister Hylas
|
||||||
[/kill]
|
[/kill]
|
||||||
|
|
||||||
{MODIFY_UNIT (id=Sir Gerrick) overlays ""}
|
{MAKE_LOYAL_LEADER (Sir Gerrick)}
|
||||||
{MODIFY_UNIT (id=Sir Gerrick) canrecruit yes}
|
{MAKE_LOYAL_NORMAL (Urza Afalas)}
|
||||||
{MODIFY_UNIT (id=Sir Gerrick) ellipse ""}
|
|
||||||
|
|
||||||
{MODIFY_UNIT (id=Urza Afalas) overlays "misc/loyal-icon.png"}
|
|
||||||
{MODIFY_UNIT (id=Urza Afalas) ellipse ""}
|
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Illan
|
speaker=Illan
|
||||||
|
|
|
@ -390,8 +390,7 @@
|
||||||
x,y=18,8
|
x,y=18,8
|
||||||
[/recall]
|
[/recall]
|
||||||
|
|
||||||
{MODIFY_UNIT (id=Minister Hylas) overlays "misc/loyal-icon.png"}
|
{MAKE_LOYAL_NORMAL (Minister Hylas)}
|
||||||
{MODIFY_UNIT (id=Minister Hylas) ellipse ""}
|
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Deoran
|
speaker=Deoran
|
||||||
|
|
|
@ -30,7 +30,14 @@
|
||||||
|
|
||||||
#define IS_EXPENDABLE_LEADER
|
#define IS_EXPENDABLE_LEADER
|
||||||
# Embed this into a unit declaration to add an expendable leader icon to the unit.
|
# Embed this into a unit declaration to add an expendable leader icon to the unit.
|
||||||
overlays="misc/leader-expendable.png"
|
[+modifications]
|
||||||
|
[object]
|
||||||
|
[effect]
|
||||||
|
apply_to=overlay
|
||||||
|
add="misc/leader-expendable.png"
|
||||||
|
[/effect]
|
||||||
|
[/object]
|
||||||
|
[/modifications]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define NEW_JOURNEY X Y
|
#define NEW_JOURNEY X Y
|
||||||
|
|
Loading…
Add table
Reference in a new issue