Reduced the number of elvish ambushers along the road,
...changed the undead spawn types a bit and made it so that only one ghost or bat can be spawned on each turn.
This commit is contained in:
parent
4393da63eb
commit
8991899f24
1 changed files with 75 additions and 11 deletions
|
@ -328,9 +328,21 @@ _f, _f, Re, _f
|
|||
[event]
|
||||
name=prestart
|
||||
|
||||
#ifdef EASY
|
||||
{VARIABLE num_of_ambushers 12}
|
||||
#endif
|
||||
|
||||
#ifdef NORMAL
|
||||
{VARIABLE num_of_ambushers 16}
|
||||
#endif
|
||||
|
||||
#ifdef HARD
|
||||
{VARIABLE num_of_ambushers 20}
|
||||
#endif
|
||||
|
||||
# This places a bunch of lvl1 elves along the secret path, the player
|
||||
# will probably bump into all of these.
|
||||
{SCATTER_UNITS 20 "Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Fighter" 3 (
|
||||
{SCATTER_UNITS $num_of_ambushers "Elvish Fighter,Elvish Archer,Elvish Shaman,Elvish Scout,Elvish Fighter" 3 (
|
||||
terrain=*^F*
|
||||
x=3-34
|
||||
y=13-31
|
||||
|
@ -1023,18 +1035,70 @@ _f, _f, Re, _f
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
{REPEAT $max_undead_spawns (
|
||||
{VARIABLE_OP undead_spawn_x random "11..22"}
|
||||
{VARIABLE got_a_quick_one_this_turn no}
|
||||
|
||||
{VARIABLE_OP undead_spawn_type random "Wraith,Shadow,Bone Shooter,Revenant,Deathblade,Blood Bat,Necrophage"}
|
||||
{VARIABLE i 0}
|
||||
[while]
|
||||
[variable]
|
||||
name=i
|
||||
less_than=$max_undead_spawns
|
||||
[/variable]
|
||||
|
||||
[unit]
|
||||
side=2
|
||||
type=$undead_spawn_type
|
||||
x=$undead_spawn_x
|
||||
y=45
|
||||
[/unit]
|
||||
)}
|
||||
[do]
|
||||
{VARIABLE_OP undead_spawn_x random "11..22"}
|
||||
|
||||
# If there's already been a quick unit (ghost or bat)
|
||||
# spawned this turn, don't make any more
|
||||
[if]
|
||||
[variable]
|
||||
name=got_a_quick_one_this_turn
|
||||
equals=yes
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
#ifdef EASY
|
||||
{VARIABLE_OP undead_spawn_type random "Bone Shooter,Revenant,Necrophage"}
|
||||
#else
|
||||
{VARIABLE_OP undead_spawn_type random "Bone Shooter,Revenant,Deathblade,Necrophage"}
|
||||
#endif
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
#ifdef EASY
|
||||
{VARIABLE_OP undead_spawn_type random "Ghost,Bone Shooter,Revenant,Blood Bat,Necrophage"}
|
||||
#else
|
||||
{VARIABLE_OP undead_spawn_type random "Wraith,Bone Shooter,Revenant,Deathblade,Blood Bat,Dread Bat,Necrophage"}
|
||||
#endif
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
# This checks whether the current spawn is going to be a
|
||||
# "quick" one, so on the next repeat the above [if] will
|
||||
# know whether we've already gotten a quick one this turn
|
||||
{VARIABLE quick_spawn_types "Ghost,Wraith,Blood Bat,Dread Bat"}
|
||||
[if]
|
||||
[variable]
|
||||
name=quick_spawn_types
|
||||
contains=$undead_spawn_type
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{VARIABLE got_a_quick_one_this_turn yes}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[unit]
|
||||
side=2
|
||||
type=$undead_spawn_type
|
||||
x=$undead_spawn_x
|
||||
y=45
|
||||
[/unit]
|
||||
|
||||
{VARIABLE_OP i add 1}
|
||||
[/do]
|
||||
[/while]
|
||||
|
||||
{CLEAR_VARIABLE i,max_undead_spawns,got_a_quick_one_this_turn,undead_spawn_type,undead_spawn_x}
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
|
Loading…
Add table
Reference in a new issue