parameterize INCREASE_RECRUIT_COSTS
This commit is contained in:
parent
29d487773e
commit
63215c1bb7
8 changed files with 32 additions and 46 deletions
|
@ -2352,8 +2352,7 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
message= _ "We have suffered losses, but we are not broken yet. We have saved most of our people tonight. But while elves who have fought with you in the past will gladly return, as the numbers of our people dwindle, it’s going to become more and more costly to recruit new warriors. It would be wise to stockpile gold against this eventuality."
|
||||
[/message]
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
|
@ -2361,9 +2360,7 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
message= _ "We have suffered grievous losses, but we are not broken yet. Long will this slaughter be remembered by our people. Where was Eloh during the darkness? And I’m afraid that while elves who have fought with you in the past will gladly return, as the numbers of our people dwindle, it’s going to become more and more costly to recruit new warriors. It would be wise to stockpile gold against this eventuality."
|
||||
[/message]
|
||||
|
||||
#increase the cost of all units by 2
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 2}
|
||||
[/else]
|
||||
[/if]
|
||||
[/else]
|
||||
|
|
|
@ -323,8 +323,7 @@
|
|||
[/gold_carryover]
|
||||
[/objectives]
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
|
||||
#central cavern furnishings
|
||||
|
||||
|
|
|
@ -225,8 +225,7 @@
|
|||
[/gold_carryover]
|
||||
[/objectives]
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
|
||||
#secret troll tomb furnishings
|
||||
{PLACE_IMAGE items/coffin-closed.png 3 28}
|
||||
|
|
|
@ -308,8 +308,7 @@
|
|||
[/gold_carryover]
|
||||
[/objectives]
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
|
||||
#secret tomb furnishings
|
||||
{PLACE_IMAGE items/rune-violet2.png 45 21}
|
||||
|
|
|
@ -414,8 +414,7 @@
|
|||
fire_event=no
|
||||
[/kill]
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
|
||||
# recall heroes
|
||||
# this is a placeholder unit, used to make sure heroes recall
|
||||
|
@ -3403,9 +3402,7 @@
|
|||
message= _ "We’re still trying to get a head count, but between the underground horrors and the water, we lost quite a few. Recruiting new warriors is going to be even more difficult. Still we should thank Eloh, and you, Kaleh, that so many of us did survive."
|
||||
[/message]
|
||||
|
||||
#increase the cost of all units by 2
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 2}
|
||||
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
|
|
|
@ -273,8 +273,7 @@
|
|||
#{NAMED_NOTRAIT_UNIT 1 (Desert Marksman) 26 36 (Larea) ( _ "Larea")}
|
||||
#{NAMED_NOTRAIT_UNIT 1 (Desert Horseman) 33 32 (Nonthar) ( _ "Nonthar")}
|
||||
|
||||
#increase the cost of all units by 1
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 1}
|
||||
|
||||
# add items to map
|
||||
|
||||
|
|
|
@ -313,9 +313,7 @@
|
|||
|
||||
# scenario testing units
|
||||
|
||||
#increase the cost of all units by 2
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS_BY_ONE}
|
||||
{INCREASE_RECRUIT_COSTS 2}
|
||||
|
||||
# add items to map
|
||||
|
||||
|
|
|
@ -193,38 +193,36 @@ multiply=-1
|
|||
|
||||
# The amount of extra recruit cost is kept in $recruit_cost_extra; when this
|
||||
# macro is called for the first time, it'll disallow recruitment of
|
||||
# "Desert Fighter" and then allow recruitment of "Desert Fighter1". The second
|
||||
# call then disallows recruitment of "Desert Fighter1" and allows recruitment of
|
||||
# "Desert Fighter2", and so on. After $recruit_cost_extra has reached 10,
|
||||
# "Desert Fighter" and then allow recruitment of "Desert FighterX". The second
|
||||
# call then disallows recruitment of "Desert FighterY" and allows recruitment of
|
||||
# "Desert Fighter(X+Y)", and so on. After $recruit_cost_extra has reached 10,
|
||||
# nothing will happen anymore.
|
||||
|
||||
#define INCREASE_RECRUIT_COSTS_BY_ONE
|
||||
#define INCREASE_RECRUIT_COSTS X
|
||||
{VARIABLE num $recruit_cost_extra}
|
||||
{VARIABLE_OP recruit_cost_extra add {X}}
|
||||
[if]
|
||||
[variable]
|
||||
name=recruit_cost_extra
|
||||
less_than=10
|
||||
greater_than=10
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{VARIABLE num $recruit_cost_extra}
|
||||
#{DEBUG_MSG "disallowing: Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num"}
|
||||
[disallow_recruit]
|
||||
type=Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num
|
||||
side=1
|
||||
[/disallow_recruit]
|
||||
|
||||
{VARIABLE_OP recruit_cost_extra add 1}
|
||||
|
||||
{VARIABLE num $recruit_cost_extra}
|
||||
#{DEBUG_MSG "allowing: Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num"}
|
||||
[allow_recruit]
|
||||
type=Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num
|
||||
side=1
|
||||
[/allow_recruit]
|
||||
{VARIABLE recruit_cost_extra 10}
|
||||
[/then]
|
||||
|
||||
#[else]
|
||||
# {DEBUG_MSG "Error: tried to raise recruit costs more than 10g!"}
|
||||
#[/else]
|
||||
[/if]
|
||||
|
||||
#{DEBUG_MSG "disallowing: Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num"}
|
||||
[disallow_recruit]
|
||||
type=Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num
|
||||
side=1
|
||||
[/disallow_recruit]
|
||||
|
||||
{VARIABLE num $recruit_cost_extra}
|
||||
#{DEBUG_MSG "allowing: Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num"}
|
||||
[allow_recruit]
|
||||
type=Desert Fighter$num,Desert Archer$num,Desert Hunter$num,Desert Shaman$num,Desert Scout$num
|
||||
side=1
|
||||
[/allow_recruit]
|
||||
|
||||
{CLEAR_VARIABLE num}
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue