Merge pull request #7518 from nemaara/liberty-achievements
Add achievements to Liberty
This commit is contained in:
commit
59cb5939c5
6 changed files with 163 additions and 2 deletions
|
@ -1 +1,41 @@
|
|||
#textdomain wesnoth-l
|
||||
[achievement_group]
|
||||
display_name=_"Liberty"
|
||||
content_for=liberty
|
||||
[achievement]
|
||||
id="liberty_or_death"
|
||||
name=_"Give Me Liberty or Give Me Death!"
|
||||
description=_"Complete Civil Disobedience with at least 3 peasants remaining."
|
||||
icon="data/core/images/attacks/pitchfork.png"
|
||||
icon_completed="data/core/images/attacks/pitchfork.png~SCALE(72,72)~BLIT("data/core/images/misc/achievement-frames/frame-3-red.png",0,0)"
|
||||
[/achievement]
|
||||
[achievement]
|
||||
id="liberty_nameless"
|
||||
name=_"The Nameless General"
|
||||
description=_"Find out the name of the general in Unlawful Orders."
|
||||
icon="data/core/images/icons/helmet_chain-coif.png"
|
||||
icon_completed="data/core/images/icons/helmet_chain-coif.png~SCALE(72,72)~BLIT("data/core/images/misc/achievement-frames/frame-8-grey.png",0,0)"
|
||||
[/achievement]
|
||||
[achievement]
|
||||
id="liberty_iron"
|
||||
name=_"Harper vs. Goliath"
|
||||
description=_"Defeat an Iron Mauler with Harper in Hide and Seek."
|
||||
icon="data/core/images/attacks/slingshot.png"
|
||||
icon_completed="data/core/images/attacks/slingshot.png~SCALE(72,72)~BLIT("data/core/images/misc/achievement-frames/frame-3-red.png",0,0)"
|
||||
[/achievement]
|
||||
[achievement]
|
||||
id="liberty_hunter"
|
||||
#po: this is the achievement for the scenario The Hunters
|
||||
name=_"Perfect Hunter"
|
||||
description=_"Complete The Hunters with no losses"
|
||||
icon="data/core/images/attacks/blowgun.png"
|
||||
icon_completed="data/core/images/attacks/blowgun.png~SCALE(72,72)~BLIT("data/core/images/misc/achievement-frames/frame-8-grey.png",0,0)"
|
||||
[/achievement]
|
||||
[achievement]
|
||||
id="liberty_army"
|
||||
name=_"Force of Arms is Pointless Without Strategy"
|
||||
description=_"On Challenging difficulty, defeat Dommel in Glory."
|
||||
icon="data/core/images/attacks/sword-steel.png"
|
||||
icon_completed="data/core/images/attacks/sword-steel.png~SCALE(72,72)~BLIT("data/core/images/misc/achievement-frames/frame-6-royal.png",0,0)"
|
||||
[/achievement]
|
||||
[/achievement_group]
|
||||
|
|
|
@ -81,6 +81,10 @@ Me and Harper visited Erwen’s grave today. I helped the lad pick her a bunch o
|
|||
controller=ai
|
||||
team_name=good_guys
|
||||
user_team_name=_"Rebels"
|
||||
[ai]
|
||||
caution=0.9
|
||||
aggression=0.1
|
||||
[/ai]
|
||||
[/side]
|
||||
|
||||
[event]
|
||||
|
@ -127,6 +131,9 @@ Me and Harper visited Erwen’s grave today. I helped the lad pick her a bunch o
|
|||
{GENERIC_UNIT 3 Peasant 25 6}
|
||||
{GENERIC_UNIT 3 Peasant 26 8}
|
||||
{GENERIC_UNIT 3 Peasant 23 13}
|
||||
{GENERIC_UNIT 3 Peasant 33 5}
|
||||
{GENERIC_UNIT 3 Peasant 31 3}
|
||||
{GENERIC_UNIT 3 Peasant 35 12}
|
||||
|
||||
{MODIFY_UNIT type=Peasant facing sw}
|
||||
[/event]
|
||||
|
@ -371,6 +378,19 @@ Me and Harper visited Erwen’s grave today. I helped the lad pick her a bunch o
|
|||
|
||||
[event]
|
||||
name=enemies defeated
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
side=3
|
||||
count=3-99999
|
||||
[/have_unit]
|
||||
[then]
|
||||
[set_achievement]
|
||||
content_for=liberty
|
||||
id="liberty_or_death"
|
||||
[/set_achievement]
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[role]
|
||||
type=Huntsman_Peasant,Ranger,Fugitive_Peasant,Highwayman_Peasant,Outlaw_Peasant,Trapper_Peasant,Bandit_Peasant,Footpad_Peasant,Poacher_Peasant,Thug_Peasant
|
||||
|
|
|
@ -65,7 +65,8 @@
|
|||
[side]
|
||||
type=General
|
||||
id=Kestrel
|
||||
name= _ "Kestrel"
|
||||
# intentionally no name
|
||||
generate_name=no
|
||||
side=3
|
||||
color=darkred
|
||||
canrecruit=yes
|
||||
|
@ -84,6 +85,22 @@
|
|||
|
||||
{STARTING_VILLAGES 3 5}
|
||||
|
||||
# side 3 is all nameless
|
||||
[event]
|
||||
name=recruit
|
||||
first_time_only=no
|
||||
[filter_second]
|
||||
side=3
|
||||
[/filter_second]
|
||||
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=$x1,$y1
|
||||
[/filter]
|
||||
name=
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
|
||||
#
|
||||
# Prestart events
|
||||
#
|
||||
|
@ -140,8 +157,9 @@
|
|||
|
||||
{VARIABLE stored_Baldras.facing sw}
|
||||
|
||||
{NAMED_LOYAL_UNIT 3 Lieutenant 19 36 Rothel (_ "Rothel")}
|
||||
{LOYAL_UNIT 3 Lieutenant 19 36}
|
||||
[+unit]
|
||||
generate_name=no
|
||||
[modifications]
|
||||
{TRAIT_QUICK}
|
||||
[/modifications]
|
||||
|
@ -797,6 +815,21 @@
|
|||
[filter]
|
||||
id=Kestrel
|
||||
[/filter]
|
||||
|
||||
[if]
|
||||
[have_location]
|
||||
time_of_day=lawful
|
||||
[/have_location]
|
||||
[then]
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=Kestrel
|
||||
[/filter]
|
||||
name= _ "General Kestrel"
|
||||
[/modify_unit]
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[message]
|
||||
speaker=second_unit
|
||||
message= _ "Who are you? What are you?"
|
||||
|
@ -806,6 +839,18 @@
|
|||
message= _ "We... are accursed. We were the soldiers of Prince Eldred, the King’s son and betrayer... when the Prince was slain at the hands of the mage Delfador, those of us who bore witness to it were warped into these twisted forms. Now, our mortal bodies pass... into another plane of hellish existence..."
|
||||
[/message]
|
||||
|
||||
[if]
|
||||
[have_location]
|
||||
time_of_day=lawful
|
||||
[/have_location]
|
||||
[then]
|
||||
[set_achievement]
|
||||
content_for=liberty
|
||||
id="liberty_nameless"
|
||||
[/set_achievement]
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[kill]
|
||||
id=Kestrel
|
||||
animate=yes
|
||||
|
|
|
@ -586,6 +586,31 @@ Been a tough few days since we left Elensefar with all them patrols running arou
|
|||
)}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=die
|
||||
[filter]
|
||||
type=Iron Mauler
|
||||
[/filter]
|
||||
[filter_second]
|
||||
id=Harper
|
||||
[/filter_second]
|
||||
|
||||
[message]
|
||||
speaker=Harper
|
||||
#po: Harper defeats an Iron Mauler
|
||||
message= _ "Uncle, we did it! We beat one of them iron monsters!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Baldras
|
||||
message= _ "A fine job lad, but more sure gots to be coming. Let’s keep movin’."
|
||||
[/message]
|
||||
|
||||
[set_achievement]
|
||||
content_for=liberty
|
||||
id="liberty_iron"
|
||||
[/set_achievement]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=sighted
|
||||
[filter]
|
||||
|
|
|
@ -222,6 +222,8 @@ The sun don’t really shine at all in these Grey Woods, but truth be told, I ha
|
|||
{GENERIC_UNIT 2 (Shadow Mage) 18 22}
|
||||
{GENERIC_UNIT 4 (Heavy Infantryman) 7 2} {GUARDIAN}
|
||||
{GENERIC_UNIT 4 (Heavy Infantryman) 7 6} {GUARDIAN}
|
||||
|
||||
{VARIABLE losses false}
|
||||
[/event]
|
||||
|
||||
#
|
||||
|
@ -483,6 +485,16 @@ The sun don’t really shine at all in these Grey Woods, but truth be told, I ha
|
|||
{CLEAR_VARIABLE Helicrom}
|
||||
[/event]
|
||||
|
||||
# track if the player lost a unit
|
||||
[event]
|
||||
name=die
|
||||
[filter]
|
||||
side=1,2
|
||||
[/filter]
|
||||
|
||||
{VARIABLE losses true}
|
||||
[/event]
|
||||
|
||||
#
|
||||
# Special Event - when you attack the bad guys for the first time they react
|
||||
#
|
||||
|
@ -1105,6 +1117,17 @@ The sun don’t really shine at all in these Grey Woods, but truth be told, I ha
|
|||
#
|
||||
[event]
|
||||
name=win event
|
||||
|
||||
[if]
|
||||
{VARIABLE_CONDITIONAL losses boolean_equals false}
|
||||
[then]
|
||||
[set_achievement]
|
||||
content_for=liberty
|
||||
id="liberty_hunter"
|
||||
[/set_achievement]
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[message]
|
||||
speaker=Baldras
|
||||
message= _ "It be done. Their patrols be shattered and broken."
|
||||
|
@ -1163,6 +1186,7 @@ The sun don’t really shine at all in these Grey Woods, but truth be told, I ha
|
|||
[/modify_unit]
|
||||
|
||||
{CLEAR_VARIABLE has_key}
|
||||
{CLEAR_VARIABLE losses}
|
||||
|
||||
[endlevel]
|
||||
result=victory
|
||||
|
|
|
@ -935,6 +935,13 @@ Uu, Uu, Chr, Uh, Re, Uu, Uu, Uh, Uu, Chr, Chr
|
|||
speaker=Dommel
|
||||
message= _ "I may be done... but my death shall only bring the full wrath of the Crown upon you... relish your small victory, peasants, while you still can..."
|
||||
[/message]
|
||||
|
||||
#ifdef HARD
|
||||
[set_achievement]
|
||||
content_for=liberty
|
||||
id="liberty_army"
|
||||
[/set_achievement]
|
||||
#endif
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
|
Loading…
Add table
Reference in a new issue