LoW: Multiplayer setup changes.

This commit is contained in:
Fabian Müller 2010-10-31 22:44:18 +00:00
parent 7dff506177
commit 225ea0ae82
11 changed files with 238 additions and 184 deletions

View file

@ -96,11 +96,11 @@
#wmllint: validate-off
[side]
# wmllint: recognize Olurf
{OLURF}
side=2
allow_player=no
controller=ai
{OLURF}
# wmllint: recognize Olurf
canrecruit=yes
{GOLD 150 120 120}
persistent=yes

View file

@ -130,7 +130,7 @@
save_id=Galtrid
team_name=player
user_team_name= _ "Player"
recruit={ELVES}
recruit=Elvish Fighter, Elvish Archer
gold=0
{ai/aliases/stable_singleplayer.cfg} #note that this MUST be given OUTSIDE the 'ai' tag
[ai]
@ -601,9 +601,6 @@
)}
[/event]
[event]
name=orc_defend
first_time_only=no
@ -653,15 +650,15 @@
[/filter]
[/store_unit]
[allow_recruit]
side=1
type=Elvish Shaman, Elvish Scout
[/allow_recruit]
#[allow_recruit]
# side=1
# type=Elvish Shaman, Elvish Scout
#[/allow_recruit]
[allow_recruit]
side=6
type=Elvish Shaman, Elvish Scout
[/allow_recruit]
#[allow_recruit]
# side=6
# type=Elvish Shaman, Elvish Scout
#[/allow_recruit]
{UNIT 1 "Elvish Scout" 21 20 (id=guard) }
# wmllint: recognize guard
@ -812,9 +809,16 @@
side=2
gold=$galdrid_gold
fog=no
hidden=no
[/modify_side]
#ifdef MULTIPLAYER
# [disallow_recruit]
# type=Elvish Shaman, Elvish Scout
# side=1
# [/disallow_recruit]
[modify_side]
side=6
gold=$landar_gold
@ -846,7 +850,7 @@
condition=lose
[/objective]
#{TURNS_RUN_OUT}
#todo display number of turns left
[gold_carryover]
bonus=yes
@ -950,6 +954,9 @@
terrain = Rp^Dr
x,y=19,13
[/terrain]
#TODO add village destroying sound effect
[redraw]
[/redraw]
{MOVE_UNIT (id=Urudin) 19 13}
[message]
id=Urudin
@ -1130,21 +1137,6 @@
name=victory
{CLEAR_VARIABLE orc_reserve_used}
{CLEAR_VARIABLE orc_battlefield_strategy}
#undef ORC_BATTLEFIELD_EVALUATION
#undef ORC_BATTLEFIELD_EVALUATION_SUCCESS
#undef ORC_BATTLEFIELD_EVALUATION_FAILURE
#ifdef MULTIPLAYER
#TODO remove, moved to Chapter_One_END
#Save the player's sides into global variables.
# {STORE_SIDE 1}
# {GLOBAL_VARIABLE LoW_Chapter_One party_store kalenz global}
# {CLEAR_VARIABLE party_store}
# {STORE_SIDE 6}
# {GLOBAL_VARIABLE LoW_Chapter_One party_store landar global}
# {CLEAR_VARIABLE party_store}
#endif
[/event]
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
@ -1154,3 +1146,7 @@
#else
[/multiplayer]
#endif
#undef ORC_BATTLEFIELD_EVALUATION
#undef ORC_BATTLEFIELD_EVALUATION_SUCCESS
#undef ORC_BATTLEFIELD_EVALUATION_FAILURE

View file

@ -73,8 +73,6 @@
#{KALENZ}
{PLAYABLE}
no_leader=yes
#controller=human
#persistent=yes
save_id=Kalenz
fog=no
shroud=no
@ -108,7 +106,7 @@
canrecruit=yes
{GOLD 190 280 340}
{INCOME 4 8 12}
team_name=Liz
team_name=Lizards
user_team_name= _ "Enemies"
#ifdef EASY
recruit=Saurian Skirmisher, Saurian Augur
@ -135,7 +133,7 @@
canrecruit=yes
{GOLD 190 280 350}
{INCOME 4 8 12}
team_name=Liz
team_name=Lizards
user_team_name= _ "Enemies"
#ifdef EASY
recruit=Saurian Skirmisher, Saurian Augur
@ -245,12 +243,43 @@
x=7
y=29
[/recall]
[if]
[not]
[have_unit]
id=Kalenz
[/have_unit]
[/not]
[then]
[unit]
{KALENZ}
type=Elvish Captain
x=7
y=29
[/unit]
[/then]
[/if]
[recall]
id=Landar
x=16
y=29
[/recall]
[if]
[not]
[have_unit]
id=Landar
[/have_unit]
[/not]
[then]
[unit]
{LANDAR}
side=4
type=Elvish Ranger
x=16
y=29
[/unit]
[/then]
[/if]
{RECALL_LOYALS}
# wmllint: recognize Huraldur
@ -260,6 +289,8 @@
[recall]
type=Elvish Ranger, Elvish Avenger
role=liberator
x=23
y=24
[/recall]
[if]
[not]
@ -328,9 +359,13 @@
{INCIDENTAL_MUSIC love_theme.ogg}
[unit]
{CLEODIL}
side=5
# wmllint: recognize Cleodil
{CLEODIL}
#ifdef MULTIPLAYER
side=5
#else
side=1
#endif
x,y=11,11
[/unit]
@ -401,11 +436,12 @@
id=Kalenz
message= _ "I accept your service gratefully, for I will need every sword and bow and spell with which to defeat these invaders. There will be time for talk later; now, we must fight."
[/message]
#ifndef MULTIPLAYER
[allow_recruit]
side=1
type=Elvish Shaman
[/allow_recruit]
#ifndef MULTIPLAYER
[message]
speaker=narrator
image=wesnoth-icon.png
@ -497,5 +533,3 @@
#else
[/multiplayer]
#endif

View file

@ -75,7 +75,12 @@
[side]
{KALENZ}
# wmllint: recognize Kalenz
#ifndef MULTIPLAYER
recruit={ELVES}
#else
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
#endif
x=3
y=19
fog=no
@ -85,21 +90,19 @@
{LANDAR}
x=4
y=11
#placement=leader
# wmllint: recognize Landar
[/unit]
[unit]
{CLEODIL}
x=1
y=15
placement=leader
# wmllint: recognize Cleodil
[/unit]
#else
{MULTIPLAYER_GOLD}
#endif
[/side]
#wmllint: validate-on
[/side]
#wmllint: validate-on
#define SAURIAN_AI
{ai/aliases/stable_singleplayer.cfg}
@ -191,7 +194,7 @@
side=4
fog=no
{MULTIPLAYER_GOLD}
recruit={ELVES}
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
{LANDAR}
# wmllint: recognize Landar
x=4

View file

@ -60,8 +60,8 @@
{KALENZ}
fog=no
# wmllint: recognize Kalenz
recruit={ELVES}
#ifndef MULTIPLAYER
recruit={ELVES}
{PLAYER_GOLD}
[unit]
{LANDAR}
@ -78,6 +78,7 @@
# wmllint: recognize Cleodil
[/unit]
#else
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
{MULTIPLAYER_GOLD}
#endif
[/side]
@ -212,7 +213,7 @@
fog=no
shroud=no
{MULTIPLAYER_GOLD}
recruit={ELVES}
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
{LANDAR}
# wmllint: recognize Landar
[/side]
@ -221,7 +222,7 @@
fog=no
shroud=no
{MULTIPLAYER_GOLD}
recruit={ELVES}
recruit=Elvish Shaman, Wose, Elvish Scout
{CLEODIL}
# wmllint: recognize Landar
[/side]

View file

@ -16,21 +16,17 @@
#ifdef HARD
id=07_Elves_last_stand_HARD
# next_scenario=08_Council_of_hard_choices_HARD
#endif
#ifdef EASY
id=07_Elves_last_stand_EASY
# next_scenario=08_Council_of_hard_choices_EASY
#endif
#ifdef NORMAL
id=07_Elves_last_stand_NORMAL
# next_scenario=08_Council_of_hard_choices_NORMAL
#endif
#else
[scenario]
id=07_Elves_last_stand
#endif
next_scenario=08_Council_of_hard_choices
@ -83,44 +79,41 @@
#### Kalenz ###
#wmllint: validate-off
[side]
# wmllint: recognize Kalenz
{KALENZ}
fog=no
# wmllint: recognize Kalenz
shroud=no
x=42
y=14
team_name=player
user_team_name= _ "Player"
recruit={ELVES}
#, Elvish Captain, Elvish Hero, Elvish Sorceress, Elvish Marksman, Elvish Ranger, Elvish Druid
#ifndef MULTIPLAYER
recruit={ELVES}
{PLAYER_GOLD}
[unit]
# wmllint: recognize Landar
{LANDAR}
x=42
y=10
# wmllint: recognize Landar
#placement=leader
[/unit]
#else
{MULTIPLAYER_GOLD}
#endif
[unit]
# wmllint: recognize Cleodil
{CLEODIL}
x=41
y=16
# wmllint: recognize Cleodil
#placement=leader
[/unit]
#else
recruit=Elvish Fighter, Elvish Archer, Elvish Scout
{MULTIPLAYER_GOLD}
#endif
[/side]
#TODO enable the extended recruit list and give a hint to the player about it
[event]
name=prestart
[allow_recruit]
side=1
type={ELVES}
#, Elvish Captain, Elvish Hero, Elvish Sorceress, Elvish Marksman, Elvish Ranger, Elvish Druid
[/allow_recruit]
[/event]
#TODO enable the extended recruit list and give a hint to the player about it
# [event]
# name=prestart
# [allow_recruit]
# side=1
# type={ELVES}
# [/allow_recruit]
# [/event]
[event]
name=prestart
@ -131,12 +124,11 @@
### Allies ####
[side]
side=2
{GALTRID}
allow_player=no
controller=ai
team_name=player
user_team_name= _ "Player"
recruit={ELVES}, Elvish Captain, Elvish Hero, Elvish Sorceress, Elvish Marksman, Elvish Ranger, Elvish Druid, Elvish Lord
{GALTRID}
# wmllint: recognize Galtrid
x=33
y=26
@ -163,6 +155,7 @@
{STARTING_VILLAGES_ALL 2}
[side]
#TODO use the macro from characters
side=3
allow_player=no
controller=ai
@ -229,6 +222,8 @@
side=5
allow_player=no
controller=ai
team_name=orcs
user_team_name= _ "Enemies"
{ORC_SETUP}
type=Orcish Warlord
id=Urug-Pir
@ -240,8 +235,6 @@
{RECRUIT_ORC}
{GOLD 300 500 730}
{INCOME 4 8 12}
team_name=orcs
user_team_name= _ "Enemies"
{ai/aliases/stable_singleplayer.cfg}
[ai]
{AI_NO_SCOUTS}
@ -294,40 +287,36 @@
[/ai]
[/side]
[event]
name=turn 2
first_time_only=no
[message]
id=Truugl
message= _ "Stay in the hills."
[/message]
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 aggression 0.3}
# {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 5 aggression 0.3}
{MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 caution 0.4}
# {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 5 caution 0.4}
{MODIFY_AI_ADD_GOAL 6 (
[goal]
name=protect_location
[criteria]
terrain=H*,H*^*
[/criteria]
value=200
[/goal]
)}
# {MODIFY_AI_ADD_GOAL 5 (
# [goal]
# [criteria]
# id=Mutaf-uru
# [/criteria]
# value=200
# [/goal]
# )}
[/event]
#TODO try to tune the troll ai to not start a suicide run against the wood border.
# [event]
# name=turn 2
# first_time_only=no
# [message]
# id=Truugl
# message= _ "Stay in the hills."
# [/message]
# {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 aggression 0.3}
# # {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 5 aggression 0.3}
# {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 6 caution 0.4}
# # {MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT 5 caution 0.4}
# {MODIFY_AI_ADD_GOAL 6 (
# [goal]
# name=protect_location
# [criteria]
# terrain=H*,H*^*
# [/criteria]
# value=200
# [/goal]
# )}
# # {MODIFY_AI_ADD_GOAL 5 (
# # [goal]
# # [criteria]
# # id=Mutaf-uru
# # [/criteria]
# # value=200
# # [/goal]
# # )}
# [/event]
[side]
side=7
@ -359,6 +348,7 @@
[/side]
### /ENEMIES ####
#### Side for Olurf ####
[side]
side=8
{DWARF_SETUP}
@ -369,6 +359,7 @@
no_leader=yes
hidden=yes
[/side]
#### /Side for Olurf ####
#ifdef MULTIPLAYER
[side]
@ -574,11 +565,11 @@
y=$olurf_entry.y
[/unit]
{OLURF_PARTY}
#ifndef MULTIPLAYER
{MODIFY_UNIT (side=8) side 1}
{TRANSFER_VILLAGE_OWNERSHIP 8 1}
#endif
{OLURF_PARTY}
{OLURF_SPEAK}
#ifndef MULTIPLAYER
@ -591,12 +582,6 @@
image=wesnoth-icon.png
message= _ "Now that Olurf and his tribe joined you, you are able to recruit Dwarves."
[/message]
#else
# [message]
# image=wesnoth-icon.png
# speaker=narrator
# message= _ "Note that Olurf's side can be assigned to a third human player by the game's hoster"
# [/message]
#endif
[objectives]
@ -612,7 +597,11 @@
#ifndef MULTIPLAYER
#Olurf arrives at turn 12.
[event]
#ifndef DEBUG_MODE
name=turn 12
#else
name=turn 2
#endif
[message]
id=Kalenz
@ -625,8 +614,6 @@
message= _ "Where do you want Olurf to deploy?"
[/message]
#{SCROLL_TO 2 2}
# wmllint: local spelling Telfar
[message]
speaker=narrator
@ -687,19 +674,6 @@
[/fire_event]
[/then]
[/if]
#ifdef MULTIPLAYER
# {STORE_SIDE 1}
# {GLOBAL_VARIABLE LoW party_store kalenz global}
# {CLEAR_VARIABLE party_store}
#
# {STORE_SIDE 8}
# {GLOBAL_VARIABLE LoW party_store olurf global}
# {CLEAR_VARIABLE party_store}
#
# {STORE_SIDE 9}
# {GLOBAL_VARIABLE LoW party_store landar global}
# {CLEAR_VARIABLE party_store}
#endif
[/event]
### /OLURF ###

View file

@ -144,6 +144,12 @@
[/endlevel]
[/event]
[event]
name=victory

View file

@ -25,6 +25,7 @@
[scenario]
name= _ "Bounty Hunters"
id=09_Bounty_hunters
next_scenario=10_Cliffs_of_Thoria
#endif
{LOW_MAP 09_Bounty_Hunters.map}
@ -39,8 +40,6 @@
{LOW_PRESTART}
next_scenario=10_Cliffs_of_Thoria
[story]
#ifdef MULTIPLAYER
[part]
@ -533,6 +532,7 @@
user_team_name= _ "Player"
no_leader=yes
{PLAYABLE}
{DWARF_SETUP}
controller=human
allow_player=yes
recruit={DWARVES}

View file

@ -1,7 +1,6 @@
#textdomain wesnoth-low
#ifdef MULTIPLAYER
[multiplayer]
next_scenario=null
#ifdef HARD
name= _ "4p MC — LoW, Hard Mode, Chapter four"
description= _ "<i>The Legend of Wesmere</i>\nMultiplayer Campaign\nChapter four\n Hard difficulty"
@ -24,9 +23,10 @@
[scenario]
name= _ "Human Alliance"
id=14_Human_Alliance
next_scenario=15_The_Treaty
#endif
next_scenario=15_The_Treaty
{LOW_MAP 14_Human_Alliance.map}
#shortens the map on the left border for the later reenforcements
@ -137,34 +137,40 @@
#wmllint: validate-off
[side]
side=1
{PLAYABLE}
{KALENZ}
x=25
y=11
no_leader=yes
save_id=Kalenz
# [unit]
# # wmllint: recognize Kalenz
# {KALENZ}
# x=25
# y=11
# [/unit]
fog=no
shroud=no
# wmllint: recognize Kalenz
#ifndef MULTIPLAYER
{PLAYER_GOLD}
recruit={ELVES},{DWARVES}
[unit]
{LANDAR}
# wmllint: recognize Landar
#placement=leader
x=25
y=13
[/unit]
[unit]
{CLEODIL}
# wmllint: recognize Cleodil
#placement=leader
x=27
y=12
[/unit]
[unit]
{OLURF}
# wmllint: recognize Olurf
#placement=leader
x=36
y=10
[/unit]
@ -312,7 +318,6 @@
{ATTACK_DEPTH 4 5 6}
[/ai]
{INCOME 12 20 26}
# {INCOME 4 8 12}
[/side]
[side]
@ -348,10 +353,57 @@
caution=0.0
grouping=no
[/ai]
# {INCOME 4 8 12}
{INCOME 12 20 26}
[/side]
[event]
name=side 1 turn 1
# wmllint: recognize Arkildur
# wmllint: recognize Tameril-Isimeril
# wmllint: recognize Laril
# wmllint: recognize Anduilas
#ifdef MULTIPLAYER
{GET_PERSISTENT_RECALLS_FROM4 1 5 6 7 LoW_Chapter_Three kalenz}
{GET_PERSISTENT_RECALLS_FROM4 5 1 6 7 LoW_Chapter_Three landar}
{GET_PERSISTENT_RECALLS_FROM4 6 1 5 7 LoW_Chapter_Three olurf}
{GET_PERSISTENT_RECALLS_FROM4 7 1 5 6 LoW_Chapter_Three cleodil}
#endif
[recall]
side=1
id=Kalenz
x=21
y=11
[/recall]
[recall]
side=
id=Landar
x=21
y=13
[/recall]
[recall]
side=
id=Cleodil
x=23
y=12
[/recall]
[recall]
side=
id=Olurf
x=32
y=10
[/recall]
[/event]
[event]
name=prestart
@ -391,7 +443,7 @@
[/event]
[event]
name=start
name=side 1 turn 1
[message]
id=Kalenz
message= _ "Tremble, orcs! The vengeance of the Elves is upon you!!"
@ -514,9 +566,11 @@
[/side]
[event]
#ifndef DEBUG_MODE
name=side 3 turn 5
#TODO remove debug code
#name=side 3 turn 2
#else
name=side 3 turn 2
#endif
[message]
speaker=narrator
@ -680,8 +734,11 @@
#endif
[event]
#ifndef DEBUG_MODE
name=side 3 turn 12
# name=side 3 turn 3
#else
name=side 3 turn 3
#endif
[message]
speaker=narrator

View file

@ -92,4 +92,7 @@
carryover_percentage=100
[/endlevel]
[/event]
#TODO save global variables?
[/scenario]

View file

@ -1,6 +1,10 @@
#textdomain wesnoth-low
#define PLAYABLE
unrenamable=yes
canrecruit=yes
team_name=player
user_team_name= _ "Player"
#ifdef MULTIPLAYER
persistence=yes
controller=human
@ -16,19 +20,14 @@
{PLAYER_SETUP}
id=Kalenz
name= _ "Kalenz"
unrenamable=yes
profile="portraits/kalenz_young.png"
type=Elvish Fighter
side=1
controller=human
canrecruit=yes
[modifications]
{TRAIT_QUICK}
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
team_name=player
user_team_name= _ "Player"
#enddef
#define LANDAR
@ -36,20 +35,13 @@
{PLAYER_SETUP}
id=Landar
name= _ "Landar"
unrenamable=yes
profile="portraits/landar.png"
type=Elvish Archer
canrecruit=yes
#ifdef MULTIPLAYER
controller=human
#endif
[modifications]
{TRAIT_DEXTROUS}
{TRAIT_RESILIENT}
{TRAIT_LOYAL}
[/modifications]
team_name=player
user_team_name= _ "Player"
#enddef
#define CLEODIL
@ -57,10 +49,8 @@
{PLAYER_SETUP}
id=Cleodil
name= _ "Cleodil"
unrenamable=yes
profile="portraits/cleodil.png"
type=Elvish Shyde
canrecruit="yes"
[abilities]
#ifndef MULTIPLAYER
{ABILITY_ELATES_KALENZ}
@ -77,14 +67,11 @@
#define OLURF
{PLAYABLE}
{DWARF_SETUP}
id=Olurf
name=_ "Olurf"
unrenamable=yes
name= _ "Olurf"
profile="portraits/olurf.png"
type=Dwarvish Steelclad
canrecruit="yes"
{DWARF_SETUP}
#{FLAG_VARIANT knalgan}
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
@ -95,20 +82,12 @@
{PLAYABLE}
id=Galtrid
name= _ "Galtrid"
persistent=yes
#TODO clean up.
#
# save_id=Galtrid
unrenamable=yes
profile="portraits/galtrid.png"
type=Elvish Captain
canrecruit=yes
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
team_name=player
user_team_name= _ "Player"
#enddef
#define EL_ISOMITHIR
@ -118,16 +97,16 @@
team_name=player
user_team_name= _ "Player"
type=Elvish Hero
canrecruit=yes
#TODO Maybe define some fitting traits for him
generate_traits=yes
team_name=player
user_team_name= _ "Player"
[modifications]
#TODO define some different traits for him
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
#enddef
#define URADREDIA
id=Uradredia
name=_ "Uradredia"
name= _ "Uradredia"
unrenamable=yes
profile="portraits/uradredia.png"
type=Elvish Marshal
@ -142,6 +121,7 @@
team_name=player
#enddef
#TODO bring the macro to use.
#define SPEECH_CLEODIL
[event]
name=attacks