From 9f8c47939de7c8bcd1f9122cd2658093cd96db1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Gl=C3=B6ckner?= Date: Sat, 5 Jan 2019 00:03:53 +0100 Subject: [PATCH] TRoW S9: unhide yeti side when they appear [ci skip] --- .../scenarios/09_Fallen_Lich_Point.cfg | 15 +- .../The_South_Guard/utils/sg_help_NEW.cfg | 171 ++++++++++++++++++ 2 files changed, 184 insertions(+), 2 deletions(-) create mode 100644 data/campaigns/The_South_Guard/utils/sg_help_NEW.cfg diff --git a/data/campaigns/The_Rise_Of_Wesnoth/scenarios/09_Fallen_Lich_Point.cfg b/data/campaigns/The_Rise_Of_Wesnoth/scenarios/09_Fallen_Lich_Point.cfg index ebcd54bc312..43e11715407 100644 --- a/data/campaigns/The_Rise_Of_Wesnoth/scenarios/09_Fallen_Lich_Point.cfg +++ b/data/campaigns/The_Rise_Of_Wesnoth/scenarios/09_Fallen_Lich_Point.cfg @@ -130,8 +130,14 @@ [side] side=5 no_leader=yes - team_name=monsters - user_team_name= _ "Monsters" + team_name=yetis + user_team_name= _ "Yetis" + hidden=yes + # set these values as they will be displayed in the status table + gold=0 + income=-2 + village_gold=0 + village_support=0 [ai] village_value=0 [/ai] @@ -537,6 +543,11 @@ x=15-27 y=16-25 [/filter] + + [modify_side] + side=5 + hidden=no + [/modify_side] [move_unit_fake] type=Yeti side=4 diff --git a/data/campaigns/The_South_Guard/utils/sg_help_NEW.cfg b/data/campaigns/The_South_Guard/utils/sg_help_NEW.cfg new file mode 100644 index 00000000000..6798ccba204 --- /dev/null +++ b/data/campaigns/The_South_Guard/utils/sg_help_NEW.cfg @@ -0,0 +1,171 @@ +#textdomain wesnoth-tsg +# This file is meant to provide players of the South Guard who have played +# no other campaigns with a brief overview of the various units in the game +# as they encounter them. + +#ifdef EASY + +[event] + name=attack + [filter] + type=Thug + [/filter] + [filter_second] + side=1 + [/filter_second] + [if] + [variable] + name=sg_thug_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_thug_info + value=yes + [/set_variable] + [message] + speaker=narrator + image="units/human-outlaws/thug-melee-3.png~RC(magenta>red)" + message= _ "Thugs are the mainstay of the bandit armies. They do not have a ranged attack, and are vulnerable to your archers. Deoran’s lance will also strike fear into their hearts! Like all of the bandit units, they are much more dangerous at night." + [/message] + [/then] + [/if] +[/event] + +[event] + name=attack + [filter] + type=Thief + [/filter] + [filter_second] + side=1 + [/filter_second] + [if] + [variable] + name=sg_thief_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_thief_info + value=yes + [/set_variable] + [message] + speaker=narrator + image="units/human-outlaws/thief-defend-2-2.png~RC(magenta>red)" + message= _ "Thieves are more subtle than thugs. They try to surround your units and stab them in the back. Make sure that thieves never have an opportunity to attack when they have an ally directly behind the unit they are attacking — they’ll do double damage! Like thugs, thieves are vulnerable to the ranged attacks of your archers." + [/message] + [/then] + [/if] +[/event] + +[event] + name=attack + [filter] + type=Footpad + [/filter] + [filter_second] + side=1 + [/filter_second] + [if] + [variable] + name=sg_footpad_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_footpad_info + value=yes + [/set_variable] + [message] + speaker=narrator + image="units/human-outlaws/footpad+female-attack1.png~RC(magenta>red)" + message= _ "Footpads are the scouts of the bandit armies. They are quick, and have both a melee attack and a ranged attack. Neither of their attacks is very strong, however, and your spearmen will make quick work of them during the day." + [/message] + [/then] + [/if] +[/event] + +[event] + name=attack + [filter] + type=Skeleton + [/filter] + [filter_second] + side=1 + [/filter_second] + [if] + [variable] + name=sg_skeleton_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_skeleton_info + value=yes + [/set_variable] + [message] + speaker=narrator + image="units/undead-skeletal/skeleton/skeleton-se-melee2.png~RC(magenta>red)" + message= _ "Skeletons are the bones of fallen warriors raised by some dark magic. They are almost immune to piercing weapons like arrows and spears. Bladed attacks like swords will injure them, and Minister Hylas’s arcane attack is deadly against them. Like the rest of the bandits, they are more dangerous at night!" + [/message] + [/then] + [/if] +[/event] + +[event] + name=attack + [filter] + type=Walking Corpse + [/filter] + [filter_second] + side=1 + [/filter_second] + [if] + [variable] + name=sg_walking_corpse_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_walking_corpse_info + value=yes + [/set_variable] + [message] + speaker=narrator + image="units/undead/zombie-attack-s.png~RC(magenta>red)" + message= _ "Walking corpses are the bodies of slain warriors, filled with some black magic. They are slow and weak — any of your units is more than a match for them. They are only dangerous in packs..." + [/message] + [/then] + [/if] +[/event] + +[event] + name=die + [filter] + side=1 + [not] + # units who have an death event + id=Deoran,Sir Gerrick,Minister Hylas,Ethiliel,Jarek,Urza Afalas + [/not] + [/filter] + [if] + [variable] + name=sg_unit_lost_info + not_equals=yes + [/variable] + [then] + [set_variable] + name=sg_unit_lost_info + value=yes + [/set_variable] + [message] + speaker=narrator + image=wesnoth-icon.png + message= _ "Losing units is part of the battle. Learn to accept losses, sometimes they may even help you to protect your more important units." + [/message] + [/then] + [/if] +[/event] + +#endif