Author: esr
Date: Mon May 11 18:24:18 2009
New Revision: 35568
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35568&view=rev
Log:
Address bug #13505.
Modified:
branches/1.6/data/campaigns/Northern_Rebirth/scenarios/12a_Get_the_Gold.cfg
branches/1.6/data/campaigns/Northern_Rebirth/scenarios/13a_Showdown.cfg
Modified:
branches/1.6/data/campaigns/Northern_Rebirth/scenarios/12a_Get_the_Gold.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/campaigns/Northern_Rebirth/scenarios/12a_Get_the_Gold.cfg?rev=35568&r1=35567&r2=35568&view=diff
==============================================================================
--- branches/1.6/data/campaigns/Northern_Rebirth/scenarios/12a_Get_the_Gold.cfg
(original)
+++ branches/1.6/data/campaigns/Northern_Rebirth/scenarios/12a_Get_the_Gold.cfg
Mon May 11 18:24:18 2009
@@ -147,6 +147,7 @@
{GOLD4 400 300 250 200}
team_name=knalgans
user_team_name=_"Alliance"
+ save_id=Elves
[/side]
# Enemy AI - set to be agressive
[side]
@@ -540,7 +541,7 @@
[/message]
[/event]
- # Victory - if sisal is alive place her on side 1 recall list for showdown.
+ # Victory
[event]
name=victory
@@ -553,32 +554,14 @@
id=Sisal
[/have_unit]
[then]
- [store_unit]
- [filter]
- id=Sisal
- [/filter]
- variable=recall_sisal
- [/store_unit]
- {VARIABLE recall_sisal.side 9}
- {VARIABLE recall_sisal.canrecruit no}
- [unstore_unit]
- variable=recall_sisal
- [/unstore_unit]
- {CLEAR_VARIABLE reall_sisal}
+ {MODIFY_UNIT id=Sisal canrecruit no}
[/then]
[/if]
- [store_unit]
- [filter]
- id=Anita
- [/filter]
- kill=no
- variable=anita_hack
- [/store_unit]
- {VARIABLE anita_hack.side 1}
- [unstore_unit]
- variable=anita_hack
- [/unstore_unit]
- {CLEAR_VARIABLE anita_hack}
+ # Make veteran elves available for
+ # the Elf side in Showdown.
+ {MODIFY_UNIT (side=2) side 9}
+ # Sisal needs to be recallable.
+ {MODIFY_UNIT id=Sisal side 1}
[/event]
# Load death events
{campaigns/Northern_Rebirth/utils/herodeaths.cfg}
Modified:
branches/1.6/data/campaigns/Northern_Rebirth/scenarios/13a_Showdown.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/campaigns/Northern_Rebirth/scenarios/13a_Showdown.cfg?rev=35568&r1=35567&r2=35568&view=diff
==============================================================================
--- branches/1.6/data/campaigns/Northern_Rebirth/scenarios/13a_Showdown.cfg
(original)
+++ branches/1.6/data/campaigns/Northern_Rebirth/scenarios/13a_Showdown.cfg Mon
May 11 18:24:18 2009
@@ -274,6 +274,7 @@
recruit=Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish
Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Rider,Elvish
Druid,Elvish Sorceress
team_name=knalgans
user_team_name=_"Alliance"
+ save_id=Elves
controller=human
no_leader=yes
[/side]
@@ -332,9 +333,9 @@
y=$side_seven_starts_at.y
[/hide_unit]
- # Check if Anita is alive. If yes place her at the helm of side 9,
- # if no younger lich assumes command. Note, this method does
- # not carry over veterans from the previous scenario,
+ # Check if Anita is alive. If yes place her at the helm of side 9;
+ # if not, younger lich assumes command and elvers are scrubbed from
+ # the side's recall list.
[recall]
id=Anita
[/recall]
@@ -367,6 +368,9 @@
{CLEAR_VARIABLE place_anita_at}
[/then]
[else]
+ [kill]
+ race=Elves
+ [/kill]
[store_unit]
[filter]
id="Ro'Sothian"
@@ -648,7 +652,8 @@
[event]
name=start
- # If sisal is alive it means gold was recovered, give it back to three
player sided split evenly
+ # If Sisal is alive it means gold was recovered, give it back to
+ # three player sided split evenly
[recall]
id=Sisal
[/recall]
@@ -658,18 +663,18 @@
[/have_unit]
[then]
{VARIABLE_OP stored_gold multiply 0.33}
- [modify_side]
+ [gold]
side=1
- gold=$stored_gold
- [/modify_side]
- [modify_side]
+ amount=$stored_gold
+ [/gold]
+ [gold]
side=7
- gold=$stored_gold
- [/modify_side]
- [modify_side]
+ amount=$stored_gold
+ [/gold]
+ [gold]
side=9
- gold=$stored_gold
- [/modify_side]
+ amount=$stored_gold
+ [/gold]
[/then]
[/if]
# Intro depending on who we have alive
@@ -725,6 +730,15 @@
x=31,31,31,31,31,31,31
y=60,59,58,57,56,55,54
[/move_unit_fake]
+ [if]
+ [have_unit]
+ id=Sisal
+ [/have_unit]
+ [then]
+ {MODIFY_UNIT id=Sisal side 9}
+ {TELEPORT_UNIT id=Sisal 32 54}
+ [/then]
+ [/if]
[/then]
[else]
[message]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits