Author: esr
Date: Fri Dec 5 15:27:25 2008
New Revision: 31286
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31286&view=rev
Log:
Address bug #12666: LoW: Bounty Hunters - left_behind string starts with ", ".
Modified:
trunk/data/campaigns/Legend_of_Wesmere/scenarios/09_Bounty_hunters.cfg
Modified: trunk/data/campaigns/Legend_of_Wesmere/scenarios/09_Bounty_hunters.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Legend_of_Wesmere/scenarios/09_Bounty_hunters.cfg?rev=31286&r1=31285&r2=31286&view=diff
==============================================================================
--- trunk/data/campaigns/Legend_of_Wesmere/scenarios/09_Bounty_hunters.cfg
(original)
+++ trunk/data/campaigns/Legend_of_Wesmere/scenarios/09_Bounty_hunters.cfg Fri
Dec 5 15:27:25 2008
@@ -188,12 +188,49 @@
[/filter]
[/store_unit]
- {FOREACH l3_selector_store unit}
- [set_variable]
- name=left_behind
- format=$left_behind + ", " + $l3_selector_store[$unit].name
- [/set_variable]
- {NEXT unit}
+ # Postponed due to stringfreeze. Wait for 1.7.0
+ #[if]
+ # [variable]
+ # name=l3_selector_store.length
+ # numerical_equals=0
+ # [/variable]
+ # [then]
+ # [set_variable]
+ # name=left_behind
+ # value= _ "some experienced warriors"
+ # [/set_variable]
+ # [/then]
+ #[/if]
+
+ {VARIABLE l3_length l3_selector_store.length}
+ {VARIABLE_OP l3_length add -1}
+ {FOREACH l3_selector_store i}
+ # for-case, what a great anti-pattern
+ [switch]
+ variable=unit
+ [case]
+ value=0
+ [set_variable]
+ name=left_behind
+ format=$l3_selectorstore[$i].name
+ [/set_variable]
+ [/case]
+ # Also postponed, wait for 1.7.0
+ #[case]
+ # value=$l3_length
+ # [set_variable]
+ # name=left_behind
+ # format=$left_behind + _ " and " +
$l3_selector_store[$i].name
+ # [/set_variable]
+ #[/case]
+ [else]
+ [set_variable]
+ name=left_behind
+ format=$left_behind + ", " +
$l3_selector_store[$i].name
+ [/set_variable]
+ [/else]
+ [/switch]
+ {NEXT i}
{CLEAR_VARIABLE unit}
[/event]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits