simplify scenario 12

This commit is contained in:
Simon Forsyth 2012-06-03 21:22:39 +00:00
parent 5d42423c69
commit 2c0a891ac7

View file

@ -215,7 +215,6 @@
#initialize starting variables
{VARIABLE in_final_fight true}
{VARIABLE spires_destroyed 0}
{VARIABLE allies_killed 0}
{VARIABLE nym_dead false}
{VARIABLE zhul_dead false}
@ -232,25 +231,6 @@
[/if]
{VARIABLE minion_turn_counter 0}
{VARIABLE attacked_yechnagoth 0}
# at each increase 1 extra alien minion is produced each turn
#ifdef EASY
{VARIABLE first_increase 2}
{VARIABLE second_increase 4}
{VARIABLE third_increase 6}
#endif
#ifdef NORMAL
{VARIABLE first_increase 2}
{VARIABLE second_increase 3}
{VARIABLE third_increase 5}
#endif
#ifdef HARD
{VARIABLE first_increase 1}
{VARIABLE second_increase 3}
{VARIABLE third_increase 5}
#endif
# set starting scenario objectives
@ -327,8 +307,6 @@
{MOVE_UNIT id=$ally_name 9 14}
{CLEAR_VARIABLE stored_unit}
[delay]
time=300
[/delay]
@ -643,10 +621,9 @@
{VARIABLE_OP new_minion_loc_i sub 1}
{UNIT 2 (Crawling Horror) $possible_spawn_locations[$new_minion_loc_i].x $possible_spawn_locations[$new_minion_loc_i].y (upkeep=free)}
{CLEAR_VARIABLE possible_spawn_locations}
[/then]
[/if]
{CLEAR_VARIABLE possible_spawn_locations}
#enddef
# Event 1: The Death of Eloh and the revealing of the true monster
@ -1075,7 +1052,7 @@
[if]
[variable]
name=minion_turn_counter
greater_than=$first_increase
greater_than={ON_DIFFICULTY 2 2 1}
[/variable]
[then]
@ -1086,7 +1063,7 @@
[if]
[variable]
name=minion_turn_counter
greater_than=$second_increase
greater_than={ON_DIFFICULTY 4 3 3}
[/variable]
[then]
@ -1097,7 +1074,7 @@
[if]
[variable]
name=minion_turn_counter
greater_than=$third_increase
greater_than={ON_DIFFICULTY 6 5 5}
[/variable]
[then]
@ -1141,45 +1118,36 @@
value=$stored_alien.hitpoints
[/set_variable]
[object]
[modify_unit]
[filter]
type=Central Body
[/filter]
silent=yes
duration="level"
[effect]
apply_to="hitpoints"
heal_full="yes"
[/effect]
[/object]
hitpoints=$this_unit.max_hitpoints
[/modify_unit]
[if]
[variable]
name=temp
less_than=100
[/variable]
[variable]
name=attacked_yechnagoth
numerical_equals=0
less_than=$stored_alien.max_hitpoints
[/variable]
[then]
[set_variable]
name=attacked_yechnagoth
value=1
[/set_variable]
[message]
speaker=Kaleh
message= _ "That central body is healing faster than we can damage it. Its almost as if our attacks are doing no damage at all. We got to try another tactic, and fast!"
[/message]
[fire_event]
name=invulnerable_comment
[/fire_event]
[/then]
[/if]
{CLEAR_VARIABLE stored_alien}
{CLEAR_VARIABLE (temp,stored_alien)}
[/event]
[event]
name=invulnerable_comment
[message]
speaker=Kaleh
message= _ "That central body is healing faster than we can damage it. Its almost as if our attacks are doing no damage at all. We got to try another tactic, and fast!"
[/message]
[/event]
# Event 4: Special attack my Central Body each turn
@ -1218,6 +1186,9 @@
{VARIABLE_OP victim_i rand "1..$elf_list.length"}
{VARIABLE_OP victim_i sub 1}
{VARIABLE victim_id $elf_list[$victim_i].id}
{CLEAR_VARIABLE (elf_list,victim_i)}
#used to be 140,255,247
[color_adjust]
@ -1251,7 +1222,7 @@
[harm_unit]
[filter]
id=$elf_list[$victim_i].id
id=$victim_id
[/filter]
amount={ON_DIFFICULTY 10 11 12}
@ -1271,20 +1242,20 @@
{VARIABLE hit_by_special_attack yes}
[message]
x,y=$elf_list[$victim_i].x,$elf_list[$victim_i].y
speaker=$victim_id
message= _ "What the heck? That central creature just hit me with some sort of slime. It hurts and I— Im stuck!"
[/message]
[/then]
[else]
[message]
x,y=$elf_list[$victim_i].x,$elf_list[$victim_i].y
speaker=$victim_id
message= _ "Ow, Im stuck!"
[/message]
[/else]
[/if]
{CLEAR_VARIABLE elf_list}
{CLEAR_VARIABLE victim_id}
[/event]
# Event 5: When player destroys all 3 Pulsing Spires, Central Body is weakened
@ -1579,15 +1550,8 @@
[/if]
{CLEAR_VARIABLE minion_turn_counter}
{CLEAR_VARIABLE attacked_yechnagoth}
{CLEAR_VARIABLE hit_by_special_attack}
{CLEAR_VARIABLE random}
{CLEAR_VARIABLE counter}
{CLEAR_VARIABLE temp}
{CLEAR_VARIABLE temp_x}
{CLEAR_VARIABLE temp_y}
[endlevel]
result=victory
bonus=no