Skip to content

Commit

Permalink
Added ability for side 1 to see past gates
Browse files Browse the repository at this point in the history
  • Loading branch information
nemaara authored and jostephd committed Oct 15, 2018
1 parent 3f5b268 commit 1ad3820
Showing 1 changed file with 99 additions and 21 deletions.
Expand Up @@ -40,8 +40,8 @@
x={X}
y={Y}
[modifications]
{TRAIT_LOYAL}
[/modifications]
{TRAIT_LOYAL}
[/modifications]
ai_special=guardian
random_traits=yes
name= _ "Masked Dwarf"
Expand Down Expand Up @@ -224,6 +224,7 @@
description= _ "Death of Dulcatulos"
condition=lose
[/objective]

{TURNS_RUN_OUT}
{IS_LAST_SCENARIO}
[/objectives]
Expand All @@ -246,7 +247,52 @@
{VARIABLE rune_one 0}
{VARIABLE rune_two 0}
[/event]


[event]
name=recruit
first_time_only=no
[filter]
side=1
[/filter]

[object]
silent=yes
take_only_once=no
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=vision_costs
replace=yes
[vision_costs]
impassable=3
[/vision_costs]
[/effect]
[/object]
[/event]
[event]
name=recall
first_time_only=no
[filter]
side=1
[/filter]

[object]
silent=yes
take_only_once=no
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=vision_costs
replace=yes
[vision_costs]
impassable=3
[/vision_costs]
[/effect]
[/object]
[/event]

{CONDITIONAL_MAGE_RECRUITING}

[event]
Expand Down Expand Up @@ -291,6 +337,33 @@
speaker=Aiglondur
message= _ "Aye. Karrag, calling his troops to battle. Only the Dark Gods know what hellspawn the lich will summon. AXES UP!"
[/message]

[store_unit]
[filter]
side=1
[/filter]
variable=units
[/store_unit]
[for]
array=units
[do]
[object]
silent=yes
take_only_once=yes
[filter]
id=$units[$i].id
[/filter]
[effect]
apply_to=vision_costs
replace=yes
[vision_costs]
impassable=3
[/vision_costs]
[/effect]
[/object]
[/do]
[/for]
{CLEAR_VARIABLE units}

{REPLACE_SCENARIO_MUSIC knalgan_theme.ogg}
{APPEND_MUSIC siege_of_laurelmor.ogg}
Expand Down Expand Up @@ -318,11 +391,11 @@
# Secret easter egg bonus
# Give a unit 3 extra hp
[store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=tmp
[/store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=tmp
[/store_unit]
{VARIABLE_OP tmp.max_hitpoints add 3}
{VARIABLE_OP tmp.hitpoints add 3}
[unstore_unit]
Expand All @@ -347,11 +420,11 @@
# Secret easter egg bonus
# Give a unit 3 extra hp
[store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=tmp
[/store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=tmp
[/store_unit]
{VARIABLE_OP tmp.max_hitpoints add 3}
{VARIABLE_OP tmp.hitpoints add 3}
[unstore_unit]
Expand Down Expand Up @@ -537,7 +610,7 @@

[message]
speaker=unit
message= _ "A locked gate? I wonder what lies behind here."
message= _ "It looks like there is a rune behind this gate!"
[/message]

[delay]
Expand Down Expand Up @@ -1008,14 +1081,19 @@
terrain=Uu
[/terrain]
[terrain]
x,y=40,22
x=40,41
y=22,23
terrain=Ur
[/terrain]
[terrain]
x=39,40
y=22,21
terrain=Ur^Es
[/terrain]
[terrain]
x,y=41,22
terrain=Uu^Emf
[/terrain]
[redraw][/redraw]

[delay]
Expand Down Expand Up @@ -1293,14 +1371,14 @@
name=turn 61

[harm_unit]
[filter]
id=Aiglondur
[/filter]
animate=yes
amount=3
[filter]
id=Aiglondur
[/filter]
animate=yes
amount=3
kill=no
slowed=yes
[/harm_unit]
[/harm_unit]

[message]
speaker=Aiglondur
Expand Down

0 comments on commit 1ad3820

Please sign in to comment.