mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 16:52:21 +00:00
Campaigns: wmlindent run
This commit is contained in:
parent
da5ca8efce
commit
3c0068173e
@ -114,17 +114,17 @@
|
||||
name=rumble.wav
|
||||
[/sound]
|
||||
#define TERRAFORM CX CY GX GY
|
||||
{MEMOIRS_TREMOR}
|
||||
[terrain]
|
||||
terrain=_s # wmllint: ignore
|
||||
x={CX}
|
||||
y={CY}
|
||||
[/terrain]
|
||||
[terrain]
|
||||
terrain=Gg
|
||||
x={GX}
|
||||
y={GY}
|
||||
[/terrain]
|
||||
{MEMOIRS_TREMOR}
|
||||
[terrain]
|
||||
terrain=_s # wmllint: ignore
|
||||
x={CX}
|
||||
y={CY}
|
||||
[/terrain]
|
||||
[terrain]
|
||||
terrain=Gg
|
||||
x={GX}
|
||||
y={GY}
|
||||
[/terrain]
|
||||
#enddef
|
||||
[terrain]
|
||||
terrain=_s # wmllint: ignore
|
||||
|
@ -426,8 +426,8 @@
|
||||
role=Commander
|
||||
side=4
|
||||
type="Master Bowman,Royal Guard,Halberdier,Cavalier,Iron Mauler,Paladin,Grand Knight," +
|
||||
"Longbowman,Swordsman,Pikeman,Javelineer,Dragoon,Shock Trooper,Knight,Lancer," +
|
||||
"Bowman,Spearman,Cavalryman,Heavy Infantryman,Horseman"
|
||||
"Longbowman,Swordsman,Pikeman,Javelineer,Dragoon,Shock Trooper,Knight,Lancer," +
|
||||
"Bowman,Spearman,Cavalryman,Heavy Infantryman,Horseman"
|
||||
# no [else]; triggered by a unit so this cannot fail
|
||||
[/role]
|
||||
[/else]
|
||||
|
@ -56,12 +56,12 @@
|
||||
search_recall_list=only
|
||||
|
||||
type="Elvish Sylph,Great Mage," +
|
||||
"Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter,Elvish Shyde,Elvish Enchantress,Elvish Outrider,Paladin,Grand Knight,Mage of Light,Arch Mage,Silver Mage," +
|
||||
"Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
|
||||
"Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Elvish Rider,Knight,Lancer,White Mage,Red Mage," +
|
||||
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
|
||||
"Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Horseman,Mage," +
|
||||
"Merman Fighter,Merman Hunter,Mermaid Initiate"
|
||||
"Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish Sharpshooter,Elvish Shyde,Elvish Enchantress,Elvish Outrider,Paladin,Grand Knight,Mage of Light,Arch Mage,Silver Mage," +
|
||||
"Merman Triton,Merman Hoplite,Merman Javelineer,Merman Entangler,Mermaid Diviner,Mermaid Siren," +
|
||||
"Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Elvish Rider,Knight,Lancer,White Mage,Red Mage," +
|
||||
"Merman Warrior,Merman Spearman,Merman Netcaster,Mermaid Priestess,Mermaid Enchantress," +
|
||||
"Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Horseman,Mage," +
|
||||
"Merman Fighter,Merman Hunter,Mermaid Initiate"
|
||||
[else]
|
||||
[unit]
|
||||
side=1
|
||||
|
@ -8,8 +8,7 @@
|
||||
id="cavegen"
|
||||
config_name="Lua Cave Generator"
|
||||
create_map = << return wesnoth.require("lua/cave_map_generator.lua").generate_map(...) >>
|
||||
|
||||
|
||||
|
||||
map_width=50
|
||||
map_height=70
|
||||
village_density=20
|
||||
@ -204,7 +203,6 @@
|
||||
place_castle = yes
|
||||
[/item_location]
|
||||
[/chamber]
|
||||
|
||||
[/generator]
|
||||
|
||||
#
|
||||
@ -719,7 +717,6 @@
|
||||
|
||||
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
|
||||
|
||||
|
||||
{PLACE_SCEPTRE}
|
||||
{KONRAD_GETS_SCEPTRE}
|
||||
{LISAR_GETS_SCEPTRE}
|
||||
|
@ -265,26 +265,26 @@
|
||||
[/endlevel]
|
||||
[/event]
|
||||
|
||||
# This place was virtually empty, but there were notes indicating something more was intended.
|
||||
#
|
||||
# Sub-quest: help the wose with the undead (per original notes).
|
||||
# Requirements: the undead and wose leaders must still be alive
|
||||
# Start Trigger: first meeting with any wose
|
||||
# Success Trigger: the death of the undead leader at the hands of side 1; the wose leader must still be alive
|
||||
# Complication: other sides might kill the undead leader first.
|
||||
# Result: a book appears at (1,1)
|
||||
# Effect: taking the book grants movement cost 1 through forest, forest defense 70%, and ambush (like Elvish Ranger)
|
||||
# Only some units can read the book. Those who cannot: Delfador, Elves, Dwarves, Merfolk, Horsemen and Mages.
|
||||
#
|
||||
# I chose these effects because we're close to the end, the next scenario (S22) has some large forests but,
|
||||
# thereafter, there is not a lot of use for forest skills, since most of theterritory is open grasslands.
|
||||
# So these effects should not have too large an effect upon the remaining parts of the campaign.
|
||||
#
|
||||
# GL-2016JUL
|
||||
# This place was virtually empty, but there were notes indicating something more was intended.
|
||||
#
|
||||
# Sub-quest: help the wose with the undead (per original notes).
|
||||
# Requirements: the undead and wose leaders must still be alive
|
||||
# Start Trigger: first meeting with any wose
|
||||
# Success Trigger: the death of the undead leader at the hands of side 1; the wose leader must still be alive
|
||||
# Complication: other sides might kill the undead leader first.
|
||||
# Result: a book appears at (1,1)
|
||||
# Effect: taking the book grants movement cost 1 through forest, forest defense 70%, and ambush (like Elvish Ranger)
|
||||
# Only some units can read the book. Those who cannot: Delfador, Elves, Dwarves, Merfolk, Horsemen and Mages.
|
||||
#
|
||||
# I chose these effects because we're close to the end, the next scenario (S22) has some large forests but,
|
||||
# thereafter, there is not a lot of use for forest skills, since most of theterritory is open grasslands.
|
||||
# So these effects should not have too large an effect upon the remaining parts of the campaign.
|
||||
#
|
||||
# GL-2016JUL
|
||||
|
||||
# Haralamdum is ancient, and his mind does not work well any more. He takes things very slowly and carefully, even for a Wose. He halts and pauses, often searching for something in his memory, using meaningless syllables to fill the gap. The syllables of his name come from the phrase he uses to mean "that is all" or "I am done" which he says often, usually out of frustration with how hasty everyone seems. Nobody alive knows his real name, and he has likely forgotten as well. Feel free to add, move, or remove pauses to break up, or even scatter, his train of thought. For inspiration, think of Asperger Syndrome.
|
||||
# Haralamdum is ancient, and his mind does not work well any more. He takes things very slowly and carefully, even for a Wose. He halts and pauses, often searching for something in his memory, using meaningless syllables to fill the gap. The syllables of his name come from the phrase he uses to mean "that is all" or "I am done" which he says often, usually out of frustration with how hasty everyone seems. Nobody alive knows his real name, and he has likely forgotten as well. Feel free to add, move, or remove pauses to break up, or even scatter, his train of thought. For inspiration, think of Asperger Syndrome.
|
||||
|
||||
# For background references, see Delfador's Memoirs, scenario 8 ("Ur Thorodor").
|
||||
# For background references, see Delfador's Memoirs, scenario 8 ("Ur Thorodor").
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
@ -371,7 +371,6 @@
|
||||
[/message]
|
||||
[/then]
|
||||
[else]
|
||||
|
||||
# Intentionally courtly and formal here as a counter-point to the rough going when talking to Haralamdum.
|
||||
|
||||
[message]
|
||||
|
@ -77,15 +77,15 @@
|
||||
message= _ "Look! In the distance! I have never before seen such a thing!"
|
||||
[/message]
|
||||
#define GRYPHON_RETURNS X Y
|
||||
[sound]
|
||||
name=gryphon-shriek-1.ogg
|
||||
[/sound]
|
||||
[move_unit_fake]
|
||||
type=Gryphon
|
||||
x=1,{X}
|
||||
y=1,{Y}
|
||||
[/move_unit_fake]
|
||||
{LOYAL_UNIT 1 (Gryphon) {X} {Y}}
|
||||
[sound]
|
||||
name=gryphon-shriek-1.ogg
|
||||
[/sound]
|
||||
[move_unit_fake]
|
||||
type=Gryphon
|
||||
x=1,{X}
|
||||
y=1,{Y}
|
||||
[/move_unit_fake]
|
||||
{LOYAL_UNIT 1 (Gryphon) {X} {Y}}
|
||||
#enddef
|
||||
{GRYPHON_RETURNS 5 5}
|
||||
{GRYPHON_RETURNS 5 4}
|
||||
|
@ -292,7 +292,7 @@ fire: +10%"
|
||||
mask="{campaigns/Heir_To_The_Throne/masks/17_Scepter_of_Fire.mask}"
|
||||
|
||||
[rule] # Make sure your castle keep and cave walls are not converted
|
||||
old=Cud, Xu, Kud
|
||||
old=Cud, Xu, Kud
|
||||
new=Re, Uu^Vud, Uh, Uu^Uf
|
||||
use_old=yes
|
||||
[/rule]
|
||||
@ -328,7 +328,7 @@ fire: +10%"
|
||||
[event]
|
||||
name=prestart
|
||||
[item]
|
||||
location_id="sceptre"
|
||||
location_id="sceptre"
|
||||
image=items/sceptre-of-fire.png
|
||||
[/item]
|
||||
[/event]
|
||||
|
@ -240,9 +240,9 @@
|
||||
name=target
|
||||
[criteria]
|
||||
side=1
|
||||
[/criteria]
|
||||
value=2
|
||||
[/goal]
|
||||
[/criteria]
|
||||
value=2
|
||||
[/goal]
|
||||
[/ai]
|
||||
recruit=Troll Whelp,Goblin Spearman,Young Ogre,Ogre
|
||||
team_name=trolls2
|
||||
|
@ -143,38 +143,38 @@
|
||||
#ifdef CAMPAIGN_UNDER_THE_BURNING_SUNS
|
||||
|
||||
#ifdef EASY_NEW
|
||||
#define EASY
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#define EASY
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#endif
|
||||
|
||||
#ifdef NORMAL_NEW
|
||||
#define NORMAL
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#define NORMAL
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#endif
|
||||
|
||||
#ifdef HARD_NEW
|
||||
#define HARD
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#define HARD
|
||||
#enddef
|
||||
#define UTBSNEW
|
||||
#enddef
|
||||
#endif
|
||||
|
||||
#ifdef UTBSNEW
|
||||
#textdomain wesnoth
|
||||
[+language]
|
||||
EASY_NEW= _ "Easy"
|
||||
NORMAL_NEW= _ "Medium"
|
||||
HARD_NEW= _ "Hard"
|
||||
[/language]
|
||||
#textdomain wesnoth-utbs
|
||||
#textdomain wesnoth
|
||||
[+language]
|
||||
EASY_NEW= _ "Easy"
|
||||
NORMAL_NEW= _ "Medium"
|
||||
HARD_NEW= _ "Hard"
|
||||
[/language]
|
||||
#textdomain wesnoth-utbs
|
||||
|
||||
# Need to re-load this for ON_DIFFICULTY to not break due to a missing
|
||||
# EASY/NORMAL/HARD symbol
|
||||
{core/macros/utils.cfg}
|
||||
# Need to re-load this for ON_DIFFICULTY to not break due to a missing
|
||||
# EASY/NORMAL/HARD symbol
|
||||
{core/macros/utils.cfg}
|
||||
#endif
|
||||
|
||||
[binary_path]
|
||||
@ -195,63 +195,63 @@
|
||||
{UTBS_INCLUDE utils}
|
||||
|
||||
#ifdef UTBSNEW
|
||||
# Add global events
|
||||
[+campaign]
|
||||
{WEAPON_SPECIAL_DAZE_EVENTS}
|
||||
{ABILITY_FORMATION_EVENTS}
|
||||
{ABILITY_DISENGAGE_EVENTS}
|
||||
{ABILITY_SUPPORT_EVENTS}
|
||||
# Add global events
|
||||
[+campaign]
|
||||
{WEAPON_SPECIAL_DAZE_EVENTS}
|
||||
{ABILITY_FORMATION_EVENTS}
|
||||
{ABILITY_DISENGAGE_EVENTS}
|
||||
{ABILITY_SUPPORT_EVENTS}
|
||||
|
||||
# On recruit, this switches the higher-recruit-cost units to the normal
|
||||
# types, so that the different cost variations don't need to be taken into
|
||||
# account for example in unit filters.
|
||||
#define DISCARD_RECRUIT_COST_HELPER_UNITS TYPE
|
||||
[event]
|
||||
name=recruit
|
||||
first_time_only=no
|
||||
# On recruit, this switches the higher-recruit-cost units to the normal
|
||||
# types, so that the different cost variations don't need to be taken into
|
||||
# account for example in unit filters.
|
||||
#define DISCARD_RECRUIT_COST_HELPER_UNITS TYPE
|
||||
[event]
|
||||
name=recruit
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
race=elf
|
||||
[/filter]
|
||||
[filter]
|
||||
race=elf
|
||||
[/filter]
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=unit.type
|
||||
contains={TYPE}
|
||||
[/variable]
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=unit.type
|
||||
contains={TYPE}
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=unit.type
|
||||
not_equals={TYPE}
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
[variable]
|
||||
name=unit.type
|
||||
not_equals={TYPE}
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=$x1,$y1
|
||||
[/filter]
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=$x1,$y1
|
||||
[/filter]
|
||||
|
||||
type={TYPE}
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
#enddef
|
||||
type={TYPE}
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Fighter"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Scout"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Mystic"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Tauroch Rider"}
|
||||
[/campaign]
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Fighter"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Scout"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Quenoth Mystic"}
|
||||
{DISCARD_RECRUIT_COST_HELPER_UNITS "Tauroch Rider"}
|
||||
[/campaign]
|
||||
#endif
|
||||
|
||||
#Append Units
|
||||
[units]
|
||||
{UTBS_INCLUDE units/units.cfg}
|
||||
|
||||
#ifdef UTBSNEW
|
||||
{UTBS_INCLUDE units/quenoth}
|
||||
#else
|
||||
{UTBS_INCLUDE units/elves}
|
||||
#endif
|
||||
#ifdef UTBSNEW
|
||||
{UTBS_INCLUDE units/quenoth}
|
||||
#else
|
||||
{UTBS_INCLUDE units/elves}
|
||||
#endif
|
||||
|
||||
{UTBS_INCLUDE units/humans}
|
||||
{UTBS_INCLUDE units/monsters}
|
||||
@ -268,9 +268,9 @@
|
||||
[/units]
|
||||
|
||||
#ifdef UTBSNEW
|
||||
{UTBS_INCLUDE scenarios}
|
||||
{UTBS_INCLUDE scenarios}
|
||||
#else
|
||||
{UTBS_INCLUDE scenarios_old}
|
||||
{UTBS_INCLUDE scenarios_old}
|
||||
#endif
|
||||
|
||||
[lua]
|
||||
|
@ -26,33 +26,33 @@
|
||||
[/abilities]
|
||||
description= _ ""+{SPECIAL_NOTES}+{SPECIAL_NOTES_UTBS_HEALS}+{SPECIAL_NOTES_MAGICAL}
|
||||
die_sound={SOUND_LIST:ELF_FEMALE_HIT}
|
||||
|
||||
|
||||
[event]
|
||||
name=turn refresh
|
||||
first_time_only=no
|
||||
|
||||
|
||||
[store_time_of_day]
|
||||
[/store_time_of_day]
|
||||
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=time_of_day.id
|
||||
contains="_dark"
|
||||
[/variable]
|
||||
|
||||
|
||||
[then]
|
||||
[modify_unit]
|
||||
[filter]
|
||||
side=$side_number
|
||||
type=Quenoth Moon Shyde
|
||||
[/filter]
|
||||
|
||||
|
||||
moves="$($this_unit.moves + 1)"
|
||||
[/modify_unit]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
|
||||
[attack]
|
||||
name=touch
|
||||
description= _"touch"
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
#define STORY_THE_MORNING_AFTER
|
||||
[story]
|
||||
#ifdef UTBSNEW
|
||||
[part]
|
||||
# Untranslated development version notice only.
|
||||
story="Note: the redesigned elvish units are still a work-in-progress."
|
||||
[/part]
|
||||
#else
|
||||
[part]
|
||||
story= _ "Note: This campaign is probably not appropriate for beginners. It changes certain Wesnoth standards, such as the elves’ stats and the day/night cycle. This campaign emphasizes role-playing elements and tends to have longer scenarios with objectives that change in the middle. For these reasons, we strongly suggest that you occasionally save your game mid-scenario, so you won’t lose all your progress if you get stuck and have to start over."
|
||||
[/part]
|
||||
#endif
|
||||
#ifdef UTBSNEW
|
||||
[part]
|
||||
# Untranslated development version notice only.
|
||||
story="Note: the redesigned elvish units are still a work-in-progress."
|
||||
[/part]
|
||||
#else
|
||||
[part]
|
||||
story= _ "Note: This campaign is probably not appropriate for beginners. It changes certain Wesnoth standards, such as the elves’ stats and the day/night cycle. This campaign emphasizes role-playing elements and tends to have longer scenarios with objectives that change in the middle. For these reasons, we strongly suggest that you occasionally save your game mid-scenario, so you won’t lose all your progress if you get stuck and have to start over."
|
||||
[/part]
|
||||
#endif
|
||||
[part]
|
||||
background="misc/kaleh_story.jpg"
|
||||
story= _ "This is the chronicle of the journey of the Quenoth elves from their homeland in the Great Southern Desert. I write this story so that our descendants may know of our travels, remember the sacrifices we made, and profit from the hard lessons we learned."
|
||||
|
Loading…
x
Reference in New Issue
Block a user