Skip to content

Commit

Permalink
Implemented defines for largest mainline scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Rift-Walker committed Jun 22, 2014
1 parent b53461e commit be366af
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/multiplayer/scenarios/2p_Dark_Forecast.cfg
Expand Up @@ -10,7 +10,9 @@ Note: You need to use the default map settings for the scenario to work right."
experience_modifier="100"
map_data="{multiplayer/maps/Dark_Forecast.map}"
victory_when_enemies_defeated=no
define=MULTIPLAYER_2P_DARK_FORECAST_LOAD

#ifdef MULTIPLAYER_2P_DARK_FORECAST_LOAD
#define RANDOMIZE NUMBER
{VARIABLE_OP random rand 1..{NUMBER}}
#enddef
Expand Down Expand Up @@ -1006,6 +1008,7 @@ Note: You need to use the default map settings for the scenario to work right."
{FIRST_WATCH}
{SECOND_WATCH}

#endif
[side]
side=1
team_name="revolt"
Expand All @@ -1015,6 +1018,7 @@ Note: You need to use the default map settings for the scenario to work right."
no_leader=yes
controller="ai"
village_gold=1
#ifdef MULTIPLAYER_2P_DARK_FORECAST_LOAD
[unit]
type=Ancient Lich
canrecruit=yes
Expand All @@ -1033,6 +1037,7 @@ Note: You need to use the default map settings for the scenario to work right."
[/object]
[/modifications]
[/unit]
#endif
[/side]

[side]
Expand Down Expand Up @@ -1088,6 +1093,7 @@ Note: You need to use the default map settings for the scenario to work right."
share_view="yes"
[/side]

#ifdef MULTIPLAYER_2P_DARK_FORECAST_LOAD
[event]
name=prestart
{SET_TIMID_AI_AND_BOLD_AI 2 1}
Expand Down Expand Up @@ -1406,4 +1412,5 @@ The weather will also change randomly, affecting the layout of the map.
#undef WEATHER_ALERT
#undef ADJUST_WEATHER
#undef INIT_WEATHER
#endif
[/multiplayer]
7 changes: 7 additions & 0 deletions data/multiplayer/scenarios/2p_Hornshark_Island.cfg
@@ -1,5 +1,6 @@
#textdomain wesnoth-multiplayer

#ifdef MULTIPLAYER_HORNSHARK_ISLAND_LOAD
#define MODIFY_BOWMAN X Y
[object]
silent=yes
Expand All @@ -18,6 +19,7 @@
[/effect]
[/object]
#enddef
#endif

[multiplayer]
id=multiplayer_Hornshark_Island
Expand All @@ -26,10 +28,13 @@
description= _ "Players must forge strange alliances with the local inhabitants, in order to survive on this most unusual of islands. Designed by Doc Paterson."
map_data="{multiplayer/maps/2p_Hornshark_Island.map}"
random_start_time="no"
define=MULTIPLAYER_HORNSHARK_ISLAND_LOAD

#ifdef MULTIPLAYER_HORNSHARK_ISLAND_LOAD
{DEFAULT_SCHEDULE_MORNING}

{DEFAULT_MUSIC_PLAYLIST}
#endif

[side]
[ai]
Expand All @@ -56,6 +61,7 @@
fog=yes
[/side]

#ifdef MULTIPLAYER_HORNSHARK_ISLAND_LOAD
[event]
name=prestart

Expand Down Expand Up @@ -1011,4 +1017,5 @@
{MODIFY_BOWMAN 1 1}
{MODIFY_BOWMAN 28 24}
[/event]
#endif
[/multiplayer]
13 changes: 13 additions & 0 deletions data/multiplayer/scenarios/4p_A_New_Land.cfg
Expand Up @@ -6,7 +6,9 @@
description= _ "This 4p survival scenario allows you to construct buildings and terraform the land. Use map settings. The recommended starting gold is 100."
experience_modifier=70%
turns=unlimited
define=MULTIPLAYER_A_NEW_LAND_LOAD

#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
{DEFAULT_SCHEDULE}
{DEFAULT_MUSIC_PLAYLIST}
# ------------------------------------------------------
Expand Down Expand Up @@ -36,6 +38,7 @@
[/objective]
[/objectives]
[/event]
#endif

# ------------------------------------------------------
# Side Definitions
Expand Down Expand Up @@ -120,6 +123,7 @@
income_lock=yes
type=Death Knight
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
Expand All @@ -130,6 +134,7 @@
[village]
x,y=10,25
[/village]
#endif
[/side]

[side]
Expand All @@ -147,6 +152,7 @@
income_lock=yes
type=Orcish Sovereign
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
Expand All @@ -157,6 +163,7 @@
[village]
x,y=50,25
[/village]
#endif
[/side]

[side]
Expand All @@ -174,6 +181,7 @@
income_lock=yes
type=Orcish Sovereign
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
Expand All @@ -184,6 +192,7 @@
[village]
x,y=10,30
[/village]
#endif
[/side]

[side]
Expand All @@ -201,6 +210,7 @@
income_lock=yes
type=Death Knight
allow_player=no
#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
[modifications]
{MOVEMENT_RESTRICTION flat shallow_water}
[/modifications]
Expand All @@ -211,6 +221,7 @@
[village]
x,y=50,30
[/village]
#endif
[/side]

# This side is for trapped units. It is allied to the AI so they don't attack it.
Expand All @@ -233,6 +244,7 @@
[/ai]
[/side]

#ifdef MULTIPLAYER_A_NEW_LAND_LOAD
# ------------------------------------------------------
# ANL Building Logic
# ------------------------------------------------------
Expand Down Expand Up @@ -840,4 +852,5 @@
type=Necrophage,Bone Shooter,Revenant
[/allow_recruit]
[/event]
#endif
[/multiplayer]
9 changes: 9 additions & 0 deletions data/multiplayer/scenarios/6p_Team_Survival.cfg
Expand Up @@ -49,6 +49,7 @@ _s , _s , _s , _s , _s , _s
_s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s
_s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s , _s
#enddef
#ifdef 6P_TEAM_SURVIVAL_LOAD
#define TS_WALL_MASK_NORTH
usage=mask

Expand Down Expand Up @@ -311,6 +312,7 @@ usage=mask
{TS_SPAWN2 "Goblin Rouser"}{TS_SPAWN2 "Goblin Spearman"}{TS_SPAWN2 "Goblin Spearman"}{TS_SPAWN2 "Goblin Spearman"}{TS_SPAWN2 "Goblin Spearman"}{TS_SPAWN2 "Goblin Spearman"}{TS_SPAWN2 "Goblin Spearman"}
[/event]
#enddef
#endif

[multiplayer]
id=multiplayer_6p_Team_Survival
Expand All @@ -321,9 +323,12 @@ usage=mask
turns=32
victory_when_enemies_defeated=yes
random_start_time="no"
define=6P_TEAM_SURVIVAL_LOAD

#ifdef 6P_TEAM_SURVIVAL_LOAD
{DEFAULT_MUSIC_PLAYLIST}
{DEFAULT_SCHEDULE}
#endif

[side]
user_team_name=_ "Attacker"
Expand Down Expand Up @@ -420,6 +425,7 @@ usage=mask
[/ai]
[/side]

#ifdef 6P_TEAM_SURVIVAL_LOAD
[event]
name=prestart

Expand Down Expand Up @@ -600,9 +606,11 @@ usage=mask
image=portraits/undead/transparent/spectre.png
[/message]
[/event]
#endif
[/multiplayer]

#undef TS_MAP_DATA
#ifdef 6P_TEAM_SURVIVAL_LOAD
#undef TS_WALL_MASK_NORTH
#undef TS_WALL_MASK_NORTH_EAST
#undef TS_WALL_MASK_NORTH_WEST
Expand All @@ -622,3 +630,4 @@ usage=mask
#undef TS_LAKE_SPAWN
#undef TS_HOME_SPAWN
#undef TS_SPAWNS
#endif

0 comments on commit be366af

Please sign in to comment.