TRoW: Give monsters and undeads their own sides

Noticing that orcs can control undead units feels strange. This
can give the AI an advantage too. One would expect monsters and
undeads to move autonomously.
This commit is contained in:
DisherProject 2018-10-15 16:28:00 +02:00 committed by Gregory A Lundberg
parent d2a63b9953
commit 381a022e28
No known key found for this signature in database
GPG key ID: 149484078AE8AE9E
5 changed files with 85 additions and 32 deletions

View file

@ -130,6 +130,16 @@
{FLAG_VARIANT undead}
[/side]
[side]
side=5
no_leader=yes
team_name=monsters
user_team_name= _ "Monsters"
[ai]
village_value=0
[/ai]
[/side]
[event]
name=prestart
@ -537,7 +547,7 @@
y=1,2,3,3,4,4,5,6,7,7,8,9,10,10,11
[/move_unit_fake]
{NAMED_LOYAL_UNIT 4 (Yeti) 12 11 (Rarlg) ( _ "Rarlg")}
{NAMED_LOYAL_UNIT 5 (Yeti) 12 11 (Rarlg) ( _ "Rarlg")}
[message]
speaker=Rarlg
@ -565,7 +575,7 @@
id=Rarlg
[/scroll_to_unit]
{NAMED_LOYAL_UNIT 4 (Yeti) 15 11 (Raul-Rarlg) ( _ "Raul-Rarlg")}
{NAMED_LOYAL_UNIT 5 (Yeti) 15 11 (Raul-Rarlg) ( _ "Raul-Rarlg")}
[/event]
[event]

View file

@ -149,6 +149,16 @@
{INCOME 2 4 8}
[/side]
[side]
side=6
no_leader=yes
team_name=orcs
hidden=yes
[ai]
village_value=0
[/ai]
[/side]
#Time Areas broken - no visible change, use a halo with it
[time_area]
x=1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5 #,6,6
@ -428,26 +438,26 @@
[move_unit_fake]
type=Familiar
side=5
side=6
x=45,44,43,42
y=22,22,23,23
[/move_unit_fake]
# wmllint: whofield LIVING_INTEL 2
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 5 42 23}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 6 42 23}
[+unit]
facing=sw
[/unit]
[move_unit_fake]
type=Ancient Lich
side=5
side=6
x=45,44,43,42,42
y=22,22,23,23,24
[/move_unit_fake]
# wmllint: whofield UNDEAD_INTEL 2
{UNDEAD_INTEL (Ancient Lich) (Lich-Lord Jevyan) ( _ "Lich-Lord Jevyan") "portraits/jevyan.png" 5 42 24}
{UNDEAD_INTEL (Ancient Lich) (Lich-Lord Jevyan) ( _ "Lich-Lord Jevyan") "portraits/jevyan.png" 6 42 24}
[+unit]
facing=sw
[/unit]
@ -465,7 +475,7 @@
message= _ "You monster! Youve betrayed our people — to ally yourself with these orcs?!"
[/message]
{UNDEAD_INTEL (Death Knight) (Fool Prince) ( _ "Fool Prince") "portraits/undead/death-knight.png" 5 43 24}
{UNDEAD_INTEL (Death Knight) (Fool Prince) ( _ "Fool Prince") "portraits/undead/death-knight.png" 6 43 24}
[message]
speaker=Lich-Lord Jevyan
@ -490,23 +500,23 @@
[move_unit_fake]
type=Ancient Lich
side=5
side=6
x=42,42,43,44,45
y=24,23,23,22,22
[/move_unit_fake]
{LOYAL_UNIT 5 (Revenant) 41 22}
{LOYAL_UNIT 5 (Bone Shooter) 43 24}
{LOYAL_UNIT 6 (Revenant) 41 22}
{LOYAL_UNIT 6 (Bone Shooter) 43 24}
#ifdef NORMAL
{LOYAL_UNIT 5 (Chocobone) 42 23}
{LOYAL_UNIT 5 (Chocobone) 43 23}
{LOYAL_UNIT 6 (Chocobone) 42 23}
{LOYAL_UNIT 6 (Chocobone) 43 23}
#endif
#ifdef HARD
{LOYAL_UNIT 5 (Chocobone) 42 23}
{LOYAL_UNIT 5 (Chocobone) 43 23}
{LOYAL_UNIT 5 (Necrophage) 44 23}
{LOYAL_UNIT 5 (Necrophage) 44 22}
{LOYAL_UNIT 6 (Chocobone) 42 23}
{LOYAL_UNIT 6 (Chocobone) 43 23}
{LOYAL_UNIT 6 (Necrophage) 44 23}
{LOYAL_UNIT 6 (Necrophage) 44 22}
#endif
[kill]
id=Familiar
@ -514,7 +524,7 @@
[move_unit_fake]
type=Familiar
side=5
side=6
x=42,43,44,45
y=23,23,22,22
[/move_unit_fake]

View file

@ -117,6 +117,16 @@
[/ai]
[/side]
[side]
side=5
no_leader=yes
team_name=Drake
hidden=yes
[ai]
village_value=0
[/ai]
[/side]
[event]
name=prestart
{OBJ_TRIDENT_STORM 17 18 (trident)}
@ -233,7 +243,7 @@
{VARIABLE_OP xx1 rand "18..19"}
{VARIABLE_OP yy1 rand "16..19"}
{NAMED_LOYAL_UNIT 4 (Sea Serpent) $xx1 $yy1 (Bitey the Serpent) ( _ "Bitey the Serpent")}
{NAMED_LOYAL_UNIT 5 (Sea Serpent) $xx1 $yy1 (Bitey the Serpent) ( _ "Bitey the Serpent")}
[message]
side=1

View file

@ -165,6 +165,16 @@
[/ai]
[/side]
[side]
side=6
no_leader=yes
team_name=Liz
hidden=yes
[ai]
village_value=0
[/ai]
[/side]
{STARTING_VILLAGES 5 10}
{campaigns/The_Rise_Of_Wesnoth/utils/trow-nlmsg.cfg}
@ -357,7 +367,7 @@
numerical_equals=0
[/variable]
[then]
{NAMED_LOYAL_UNIT 5 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shekkahan")}
{NAMED_LOYAL_UNIT 6 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shekkahan")}
[+unit]
profile=portraits/shekkahan.png
[/unit]
@ -392,7 +402,10 @@
numerical_equals=0
[/variable]
[then]
{NAMED_LOYAL_UNIT 5 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shekkahan")}
{NAMED_LOYAL_UNIT 6 (Fire Dragon) 20 27 ("Shek'kahan") ( _ "Shekkahan")}
[+unit]
profile=portraits/shekkahan.png
[/unit]
[set_variable]
name=dragon_awake

View file

@ -141,6 +141,16 @@
{INCOME 2 4 8}
[/side]
[side]
side=5
no_leader=yes
team_name=orcs
hidden=yes
[ai]
village_value=0
[/ai]
[/side]
{STARTING_VILLAGES 4 8}
[event]
@ -490,11 +500,11 @@
[case]
value=1
{NAMED_LOYAL_UNIT $unit.side Deathblade $|spawn_x $|spawn_y Norte _"Norte"}
{NAMED_LOYAL_UNIT 5 Deathblade $|spawn_x $|spawn_y Norte _"Norte"}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#ifndef EASY
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#endif
{CLEAR_FOG 1 $|possible_undead_locs[$|undead_loc_i].x $|possible_undead_locs[$|undead_loc_i].y 2}
@ -508,12 +518,12 @@
[case]
value=2
{NAMED_LOYAL_UNIT $unit.side Banebow $|spawn_x $|spawn_y Rabbin _"Rabbin"}
{NAMED_LOYAL_UNIT 5 Banebow $|spawn_x $|spawn_y Rabbin _"Rabbin"}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#ifdef HARD
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#endif
{CLEAR_FOG 1 $|possible_undead_locs[$|undead_loc_i].x $|possible_undead_locs[$|undead_loc_i].y 2}
@ -532,13 +542,13 @@
[case]
value=3
{NAMED_LOYAL_UNIT $unit.side Draug $|spawn_x $|spawn_y "General Kafka" _"General Kafka"}
{NAMED_LOYAL_UNIT 5 Draug $|spawn_x $|spawn_y "General Kafka" _"General Kafka"}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#ifdef HARD
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT $unit.side (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
{LOYAL_UNIT 5 (Chocobone) $|spawn_x $|spawn_y}
#endif
{CLEAR_FOG 1 $|possible_undead_locs[$|undead_loc_i].x $|possible_undead_locs[$|undead_loc_i].y 2}