More 'format' -> 'value' conversions.
This commit is contained in:
parent
309ec2b753
commit
d498dce810
3 changed files with 22 additions and 22 deletions
|
@ -18,7 +18,7 @@ Note: You need to use map settings for the scenario to work right."
|
|||
#define RANDOMIZE_INDEX NUMBER
|
||||
{VARIABLE ran_max {NUMBER}}
|
||||
{VARIABLE_OP ran_max add -1}
|
||||
{VARIABLE_OP ran_range format "0..$ran_max"}
|
||||
{VARIABLE_OP ran_range value "0..$ran_max"}
|
||||
{VARIABLE_OP random rand $ran_range}
|
||||
#enddef
|
||||
|
||||
|
@ -128,7 +128,7 @@ Note: You need to use map settings for the scenario to work right."
|
|||
[/then]
|
||||
[/if]
|
||||
{VARIABLE spawns[$id].facing $position}
|
||||
{VARIABLE_OP msg format "$msg
|
||||
{VARIABLE_OP msg value "$msg
|
||||
$spawns[$id].type"}
|
||||
[if]
|
||||
[variable]
|
||||
|
@ -147,7 +147,7 @@ Note: You need to use map settings for the scenario to work right."
|
|||
{NEXT id}
|
||||
{CLEAR_VARIABLE spawns}
|
||||
### DEBUG
|
||||
#{VARIABLE_OP msg format "$msg
|
||||
#{VARIABLE_OP msg value "$msg
|
||||
#
|
||||
#total cost: $total_cost"}
|
||||
#[message]
|
||||
|
@ -241,7 +241,7 @@ Note: You need to use map settings for the scenario to work right."
|
|||
{VARIABLE tier {TIER_NUMBER}}
|
||||
{VARIABLE side {SIDE}}
|
||||
{VARIABLE_OP next_tier add 1}
|
||||
{VARIABLE_OP next_role format "new_spawn$next_tier"}
|
||||
{VARIABLE_OP next_role value "new_spawn$next_tier"}
|
||||
[store_unit]
|
||||
kill=yes
|
||||
variable=new_spawn
|
||||
|
@ -397,7 +397,7 @@ Note: You need to use map settings for the scenario to work right."
|
|||
{VARIABLE_OP index add 1}
|
||||
[/do]
|
||||
[/while]
|
||||
{VARIABLE_OP spawn_id format main_spawns[$main_group]}
|
||||
{VARIABLE_OP spawn_id value main_spawns[$main_group]}
|
||||
{CLEAR_VARIABLE $spawn_id}
|
||||
{VARIABLE_OP main_group add -1}
|
||||
#enddef
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
|
||||
{VARIABLE sound no}
|
||||
{FOREACH researchers i}
|
||||
{VARIABLE_OP temp_x format "$researchers[$i].x"}
|
||||
{VARIABLE_OP temp_y format "$researchers[$i].y"}
|
||||
{VARIABLE_OP temp_x value "$researchers[$i].x"}
|
||||
{VARIABLE_OP temp_y value "$researchers[$i].y"}
|
||||
|
||||
{VARIABLE_OP credited_side format $researchers[$i].side}
|
||||
{VARIABLE_OP amount format $researchers.level}
|
||||
{VARIABLE_OP credited_side value $researchers[$i].side}
|
||||
{VARIABLE_OP amount value $researchers.level}
|
||||
{ADDING_TO_CURRENT_RESEARCH_FIELD $credited_side| $amount}
|
||||
|
||||
{VARIABLE sound yes}
|
||||
|
@ -92,11 +92,11 @@
|
|||
|
||||
{VARIABLE sound no}
|
||||
{FOREACH harvesters i}
|
||||
{VARIABLE_OP temp_x format "$harvesters[$i].x"}
|
||||
{VARIABLE_OP temp_y format "$harvesters[$i].y"}
|
||||
{VARIABLE_OP temp_x value "$harvesters[$i].x"}
|
||||
{VARIABLE_OP temp_y value "$harvesters[$i].y"}
|
||||
|
||||
{VARIABLE_OP credited_side format $harvesters[$i].side}
|
||||
{VARIABLE_OP amount format $player_$credited_side|.farming.gold}
|
||||
{VARIABLE_OP credited_side value $harvesters[$i].side}
|
||||
{VARIABLE_OP amount value $player_$credited_side|.farming.gold}
|
||||
|
||||
# auto-harvest
|
||||
{ADD_GOLD $credited_side $amount}
|
||||
|
@ -122,8 +122,8 @@
|
|||
|
||||
{VARIABLE sound no}
|
||||
{FOREACH planters i}
|
||||
{VARIABLE_OP temp_x format "$planters[$i].x"}
|
||||
{VARIABLE_OP temp_y format "$planters[$i].y"}
|
||||
{VARIABLE_OP temp_x value "$planters[$i].x"}
|
||||
{VARIABLE_OP temp_y value "$planters[$i].y"}
|
||||
|
||||
# auto-plant
|
||||
{MODIFY_TERRAIN "Re^Gvs" $temp_x $temp_y }
|
||||
|
@ -177,11 +177,11 @@
|
|||
|
||||
{VARIABLE sound no}
|
||||
{FOREACH miners i}
|
||||
{VARIABLE_OP temp_x format "$miners[$i].x"}
|
||||
{VARIABLE_OP temp_y format "$miners[$i].y"}
|
||||
{VARIABLE_OP temp_x value "$miners[$i].x"}
|
||||
{VARIABLE_OP temp_y value "$miners[$i].y"}
|
||||
|
||||
{VARIABLE_OP credited_side format $miners[$i].side}
|
||||
{VARIABLE_OP amount format $player_$credited_side|.mining.gold}
|
||||
{VARIABLE_OP credited_side value $miners[$i].side}
|
||||
{VARIABLE_OP amount value $player_$credited_side|.mining.gold}
|
||||
|
||||
# auto-mine
|
||||
{ADD_GOLD $credited_side $amount}
|
||||
|
|
|
@ -212,7 +212,7 @@ Share knowledge of warfare"
|
|||
[clear_variable]
|
||||
name=side_i
|
||||
[/clear_variable]
|
||||
{VARIABLE_OP side format $unit.side}
|
||||
{VARIABLE_OP side value $unit.side}
|
||||
{VARIABLE finished_options no}
|
||||
[while]
|
||||
{CONDITION finished_options equals no}
|
||||
|
@ -393,7 +393,7 @@ Negotiation Progress: $player_$side_number|.leader_option_2.progress|/$player_$s
|
|||
{PICK_RECRUIT_OPTION ("units/dwarves/ulfserker.png~TC($side_number|,magenta)") "Dwarvish Ulfserker" _"Dwarvish Ulfserker" ally_4}
|
||||
#textdomain wesnoth-anl
|
||||
[/message]
|
||||
{VARIABLE_OP player_$side_number|.leader_option_1.progress format 0}
|
||||
{VARIABLE_OP player_$side_number|.leader_option_1.progress value 0}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
|
@ -417,7 +417,7 @@ Negotiation Progress: $player_$side_number|.leader_option_2.progress|/$player_$s
|
|||
{PICK_RECRUIT_OPTION ("units/elves-wood/shaman.png~TC($side_number|,magenta)") "Elvish Shaman" _"Elvish Shaman" ally_8}
|
||||
#textdomain wesnoth-anl
|
||||
[/message]
|
||||
{VARIABLE_OP player_$side_number|.leader_option_2.progress format 0}
|
||||
{VARIABLE_OP player_$side_number|.leader_option_2.progress value 0}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue