LoW: disallow shuffling sides for MP

This commit is contained in:
nemaara 2019-03-09 12:27:42 -05:00
parent f38fa3d607
commit 570e1b2d2f
19 changed files with 78 additions and 13 deletions

View file

@ -107,6 +107,7 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
[/unit]
{SINGLEPLAYER_GOLD}
#else
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
#endif
[unit]
@ -148,6 +149,7 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
save_id=Landar
x=18
y=15
disallow_shuffle=yes
{MULTIPLAYER_GOLD}

View file

@ -48,6 +48,7 @@
{PLAYABLE}
{KALENZ_YOUNG}
{PLAYER_GOLD}
disallow_shuffle=yes
#ifndef MULTIPLAYER
[unit]
{LANDAR_YOUNG}
@ -77,6 +78,7 @@
x=20
y=4
save_id=Landar
disallow_shuffle=yes
{LANDAR_YOUNG}
{PLAYABLE}
{PLAYER_GOLD}

View file

@ -76,6 +76,7 @@
no_leader=yes
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
fog=yes
{PLAYER_GOLD}
[/side]
@ -85,6 +86,7 @@
no_leader=yes
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
fog=yes
{PLAYER_GOLD}
)}
@ -96,6 +98,7 @@
no_leader=yes
previous_save_id=Kalenz
save_id=Galtrid
disallow_shuffle=yes
{GOLD 300 200 100}
income=-2
village_gold=1
@ -142,6 +145,7 @@
previous_save_id=Landar
{PLAYABLE}
save_id=El_Isomithir
disallow_shuffle=yes
fog=yes
{GOLD 300 200 100}
income=-2
@ -181,21 +185,21 @@
[engine]
name=lua
code=<<
local my_ai = { }
local my_ai = { }
function my_ai:retreat()
local urudin = wesnoth.get_units({id="Urudin"})[1]
if urudin and urudin.valid then
local mhp, hp = urudin.max_hitpoints, urudin.hitpoints
local turn = wesnoth.current.turn
if turn >= 3 or hp < mhp / 2 then
ai.move_full(urudin, 20, 6)
end
end
end
function my_ai:retreat()
local urudin = wesnoth.get_units({id="Urudin"})[1]
if urudin and urudin.valid then
local mhp, hp = urudin.max_hitpoints, urudin.hitpoints
local turn = wesnoth.current.turn
if turn >= 3 or hp < mhp / 2 then
ai.move_full(urudin, 20, 6)
end
end
end
return my_ai
>>
return my_ai
>>
[/engine]
[stage]
id=leader_retreat

View file

@ -65,6 +65,7 @@ Chapter Two"
{KALENZ}
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{PLAYER_GOLD}
#ifndef MULTIPLAYER
[unit]
@ -84,6 +85,7 @@ Chapter Two"
{MP_SIDE 2 (
{LANDAR}
save_id=Landar
disallow_shuffle=yes
{PLAYABLE}
{PLAYER_GOLD}
)}
@ -92,6 +94,7 @@ Chapter Two"
{MP_SIDE 3 (
no_leader=yes
save_id=Cleodil
disallow_shuffle=yes
{PLAYABLE}
{PLAYER_GOLD}
)}

View file

@ -63,6 +63,7 @@
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
no_leader=yes
[unit]
@ -91,6 +92,7 @@
no_leader=yes
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
{PLAYER_GOLD}
[unit]
{LANDAR}
@ -104,6 +106,7 @@
no_leader=yes
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
{PLAYER_GOLD}
[unit]
{CLEODIL}

View file

@ -41,6 +41,7 @@
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=17
@ -71,6 +72,7 @@
{MP_SIDE 2 (
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
no_leader=yes
@ -83,6 +85,7 @@
{MP_SIDE 3 (
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
no_leader=yes

View file

@ -61,6 +61,7 @@
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=46
@ -103,6 +104,7 @@
no_leader=yes
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
[unit]
@ -117,6 +119,7 @@
no_leader=yes
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
[unit]
@ -132,6 +135,7 @@
{PLAYABLE}
no_leader=yes
save_id=Galtrid
disallow_shuffle=yes
#ifndef MULTIPLAYER
{GOLD 400 300 200}
#else
@ -167,6 +171,7 @@
{PLAYABLE}
{EL_ISOMITHIR}
save_id=El_Isomithir
disallow_shuffle=yes
previous_save_id=Landar
x=29
y=32
@ -178,6 +183,7 @@
{PLAYABLE}
{ERADION}
save_id=Eradion
disallow_shuffle=yes
previous_save_id=Cleodil
x=7
y=36

View file

@ -20,6 +20,7 @@
controller=human
allow_player=yes
previous_save_id=Kalenz
disallow_shuffle=yes
save_id=temp1234
persistent=no
{KALENZ}

View file

@ -53,6 +53,7 @@ Chapter Three"
[side]
side=1
save_id=Kalenz
disallow_shuffle=yes
{PLAYABLE}
{KALENZ}
#ifndef MULTIPLAYER
@ -83,6 +84,7 @@ Chapter Three"
{MP_SIDE 2 (
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
no_leader=yes
[unit]
@ -97,6 +99,7 @@ Chapter Three"
{MP_SIDE 3 (
{PLAYABLE}
save_id=Olurf
disallow_shuffle=yes
#TODO give Olurf more gold?
{MULTIPLAYER_GOLD}
no_leader=yes
@ -113,6 +116,7 @@ Chapter Three"
{MP_SIDE 4 (
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
{MULTIPLAYER_GOLD}
no_leader=yes
[unit]

View file

@ -42,6 +42,7 @@
fog=yes
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=18
@ -72,6 +73,7 @@
{MULTIPLAYER_GOLD}
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
fog=yes
[unit]
{LANDAR}
@ -84,6 +86,7 @@
{MULTIPLAYER_GOLD}
{PLAYABLE}
save_id=Olurf
disallow_shuffle=yes
fog=yes
[unit]
{OLURF}
@ -96,6 +99,7 @@
{MULTIPLAYER_GOLD}
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
fog=yes
[unit]
{CLEODIL}

View file

@ -42,6 +42,7 @@
fog=yes
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=20
@ -73,6 +74,7 @@
{MP_SIDE 2 (
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
fog=yes
no_leader=yes
[unit]
@ -84,6 +86,7 @@
{MP_SIDE 3 (
{PLAYABLE}
save_id=Olurf
disallow_shuffle=yes
fog=yes
no_leader=yes
[unit]
@ -95,6 +98,7 @@
{MP_SIDE 4 (
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
fog=yes
no_leader=yes
[unit]

View file

@ -263,24 +263,28 @@
#ifdef MULTIPLAYER
[side]
side=1
disallow_shuffle=yes
{PLAYABLE}
{KALENZ}
[/side]
[side]
side=2
disallow_shuffle=yes
{PLAYABLE}
{LANDAR}
[/side]
[side]
side=3
disallow_shuffle=yes
{PLAYABLE}
{OLURF}
[/side]
[side]
side=4
disallow_shuffle=yes
{PLAYABLE}
{CLEODIL}
[/side]

View file

@ -38,6 +38,7 @@
share_view=yes
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=12
y=1
@ -62,6 +63,7 @@
side=2
no_leader=yes
save_id=Landar
disallow_shuffle=yes
{PLAYABLE}
[unit]
{LANDAR}
@ -75,6 +77,7 @@
side=3
no_leader=yes
save_id=Olurf
disallow_shuffle=yes
{PLAYABLE}
[unit]
{OLURF}
@ -88,6 +91,7 @@
side=4
no_leader=yes
save_id=Cleodil
disallow_shuffle=yes
{PLAYABLE}
[unit]
{CLEODIL}

View file

@ -70,6 +70,7 @@ Chapter Four"
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
# wmllint: recognize Kalenz
@ -116,6 +117,7 @@ Chapter Four"
canrecruit=yes
extra_recruit=Fencer, Heavy Infantryman,Dragoon,Longbowman,Duelist,Halberdier,Horseman,Cavalier,Cavalryman, Royal Guard, Mage, Swordsman, Bowman, White Mage, Red Mage, Spearman
[/unit]
disallow_shuffle=yes
{GOLD 550 500 450}
@ -209,6 +211,7 @@ Chapter Four"
no_leader=yes
{PLAYABLE}
save_id=Galtrid
disallow_shuffle=yes
previous_save_id=Kalenz
#ifdef MULTIPLAYER
{MULTIPLAYER_GOLD}
@ -382,6 +385,7 @@ Chapter Four"
no_leader=yes
{PLAYABLE}
save_id=Landar
disallow_shuffle=yes
[unit]
{LANDAR}
@ -395,6 +399,7 @@ Chapter Four"
#Olurf's side
no_leader=yes
save_id=Olurf
disallow_shuffle=yes
[unit]
{OLURF}
@ -410,6 +415,7 @@ Chapter Four"
#Cleodil's side
{PLAYABLE}
save_id=Cleodil
disallow_shuffle=yes
no_leader=yes
[unit]
{CLEODIL}
@ -426,6 +432,7 @@ Chapter Four"
no_leader=yes
previous_save_id=Landar
save_id=El_Isomithir
disallow_shuffle=yes
[unit]
{EL_ISOMITHIR}
x=13
@ -439,6 +446,7 @@ Chapter Four"
#Eradion's side
{PLAYABLE}
save_id=Eradion
disallow_shuffle=yes
previous_save_id=Cleodil
no_leader=yes
[unit]

View file

@ -47,6 +47,7 @@
[side]
side=1
{KALENZ}
disallow_shuffle=yes
{PLAYABLE}
x=46
y=39
@ -83,6 +84,7 @@
side=2
persistent=yes
save_id=Uradredia
disallow_shuffle=yes
allow_player=no
{PLAYER_TEAM}
{ELF_SETUP}
@ -206,6 +208,7 @@
[side]
side=6
save_id=Landar
disallow_shuffle=yes
fog=yes
{PLAYABLE}
no_leader=yes
@ -219,6 +222,7 @@
[side]
side=7
save_id=Olurf
disallow_shuffle=yes
{PLAYABLE}
no_leader=yes
@ -233,6 +237,7 @@
[side]
side=8
save_id=Cleodil
disallow_shuffle=yes
{PLAYABLE}
{MULTIPLAYER_GOLD}
fog=yes

View file

@ -81,6 +81,7 @@ Chapter Five"
side=1
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
x=3
@ -178,6 +179,7 @@ Chapter Five"
{MULTIPLAYER_GOLD}
save_id=Landar
disallow_shuffle=yes
no_leader=yes
[unit]
{LANDAR}

View file

@ -54,6 +54,7 @@
side=1
{PLAYABLE}
{KALENZ}
disallow_shuffle=yes
x=11
y=18
@ -345,6 +346,7 @@
x=11
y=18
[/unit]
disallow_shuffle=yes
{PLAYABLE}
{GOLD 160 130 100}
[/side]

View file

@ -42,6 +42,7 @@
{PLAYABLE}
save_id=Kalenz
disallow_shuffle=yes
{GOLD 100 100 100}
{KALENZ}
@ -184,6 +185,7 @@
team_name=landar
persistent=yes
save_id=Landar
disallow_shuffle=yes
user_team_name= _ "Enemies"
#ifdef EASY
recruit=Elvish Archer, Elvish Fighter

View file

@ -39,6 +39,7 @@
{GOLD 200 180 160}
save_id=Kalenz
disallow_shuffle=yes
{KALENZ}
placement=leader
@ -69,6 +70,7 @@
controller=ai
persistent=yes
save_id=Landar
disallow_shuffle=yes
#ifdef MULTIPLAYER
{PLAYABLE}
#endif