Fix the event that was supposed to reanimate fallen elves and orcs...

...when placing possessed Garak (still might be somewhat buggy but at
least works)

When placing possessed Garak on medium give 50% chance to spawn
Soulless instead of WC on each retinue spawn

Fix a typo
This commit is contained in:
Piotr Cychowski 2008-01-18 13:28:55 +00:00
parent cda7238f59
commit 0720f7749f
4 changed files with 96 additions and 15 deletions

View file

@ -35,7 +35,7 @@
[variable]
name=random
less_than=51
[/varable]
[/variable]
[then]
{UNIT_ (Walking Corpse) () ("") $unit.side $x1 $y1}
[/then]

View file

@ -24,13 +24,17 @@
[/variable]
[then]
#ifdef HARD
{VARIABLE_OP azkotep_casaulties.length add 1}
[store_unit]
[filter]
x,y=$x1,$y1
[/filter]
variable=azkotep_casaulties[$killed_by_azkotep]
variable=azkotep_casaulties[$killed_by_azkotep].unit
kill=no
[/store_unit]
{VARIABLE azkotep_casaulties[$killed_by_azkotep].unit.side 2}
{VARIABLE azkotep_casaulties[$killed_by_azkotep].unit.hitpoints $azkotep_casaulties[$killed_by_azkotep].unit.max_hitpoints}
{VARIABLE azkotep_casaulties[$killed_by_azkotep].unit.status.poisoned "no"}
#endif
{VARIABLE_OP killed_by_azkotep add 1}
[/then]
@ -46,13 +50,17 @@
[/variable]
[then]
#ifdef HARD
{VARIABLE_OP ystara_casaulties.length add 1}
[store_unit]
[filter]
description=$unit.description
[/filter]
variable=ystara_casaulties[$killed_by_ystara]
variable=ystara_casaulties[$killed_by_ystara].unit
kill=no
[/store_unit]
{VARIABLE ystara_casaulties[$killed_by_ystara].unit.side 3}
{VARIABLE ystara_casaulties[$killed_by_ystara].unit.hitpoints $ystara_casaulties[$killed_by_ystara].unit.max_hitpoints}
{VARIABLE ystara_casaulties[$killed_by_ystara].unit.status.poisoned "no"}
#endif
{VARIABLE_OP killed_by_ystara add 1}
[/then]

View file

@ -224,9 +224,9 @@
{VARIABLE i 0}
#ifdef HARD
{FOREACH azkotep_casaulties i}
{VARIABLE azkotep_casaulties[$i].side 2}
{VARIABLE azkotep_casaulties[$i].unit.side 2}
[unstore_unit]
variable=azkotep_casaulties[$i]
variable=azkotep_casaulties[$i].unit
x=21
y=24
find_vacant=yes
@ -240,8 +240,25 @@
equals=$killed_by_azkotep
[/variable]
[/not]
[do]
{UNIT_ (Walking Corpse) (Fallen Elf) ("Fallen Elf") 2 21 24}
[do]
#ifdef MEDIUM
{RANDOM 0..100}
[if]
[variable]
name=random
less_than=51
[/variable]
[then]
{UNIT_ (Walking Corpse) () ("") 2 21 24}
[/then]
[else]
{UNIT_ (Soulless) () ("") 2 21 24}
[/else]
[/if]
#endif
#ifdef EASY
{UNIT_ (Walking Corpse) () ("") 2 21 24}
#endif
[/do]
[/while]
#endif
@ -374,7 +391,7 @@
{FOREACH ystara_casaulties i}
{VARIABLE ystara_casaulties[$i].side 3}
[unstore_unit]
variable=ystara_casaulties[$i]
variable=ystara_casaulties[$i].unit
x=23
y=6
find_vacant=yes
@ -389,7 +406,25 @@
[/variable]
[/not]
[do]
{UNIT_ (Walking Corpse) (Fallen Elf) ("Fallen Elf") 3 23 6}
#ifdef MEDIUM
{RANDOM 0..100}
[if]
[variable]
name=random
less_than=51
[/variable]
[then]
{UNIT_ (Walking Corpse) () ("") 3 23 6}
[/then]
[else]
{UNIT_ (Soulless) () ("") 3 23 6}
[/else]
[/if]
#endif
#ifdef EASY
{UNIT_ (Walking Corpse) () ("") 3 23 6}
#endif
[/do]
[/while]
#endif
@ -630,9 +665,9 @@
{VARIABLE i 0}
#ifdef HARD
{FOREACH ystara_casaulties i}
{VARIABLE ystara_casaulties[$i].side 3}
{VARIABLE ystara_casaulties[$i].unit.side 3}
[unstore_unit]
variable=ystara_casaulties[$i]
variable=ystara_casaulties[$i].unit
x=23
y=6
find_vacant=yes
@ -647,7 +682,25 @@
[/variable]
[/not]
[do]
{UNIT_ (Walking Corpse) (Fallen Elf) ("Fallen Elf") 3 23 6}
#ifdef MEDIUM
{RANDOM 0..100}
[if]
[variable]
name=random
less_than=51
[/variable]
[then]
{UNIT_ (Walking Corpse) () ("") 3 23 6}
[/then]
[else]
{UNIT_ (Soulless) () ("") 3 23 6}
[/else]
[/if]
#endif
#ifdef EASY
{UNIT_ (Walking Corpse) () ("") 3 23 6}
#endif
[/do]
[/while]
#endif
@ -901,9 +954,9 @@
{VARIABLE i 0}
#ifdef HARD
{FOREACH azkotep_casaulties i}
{VARIABLE azkotep_casaulties[$i].side 2}
{VARIABLE azkotep_casaulties[$i].unit.side 2}
[unstore_unit]
variable=azkotep_casaulties[$i]
variable=azkotep_casaulties[$i].unit
x=21
y=24
find_vacant=yes
@ -918,7 +971,25 @@
[/variable]
[/not]
[do]
{UNIT_ (Walking Corpse) (Fallen Elf) ("Fallen Elf") 2 21 24}
#ifdef MEDIUM
{RANDOM 0..100}
[if]
[variable]
name=random
less_than=51
[/variable]
[then]
{UNIT_ (Walking Corpse) () ("") 2 21 24}
[/then]
[else]
{UNIT_ (Soulless) () ("") 2 21 24}
[/else]
[/if]
#endif
#ifdef EASY
{UNIT_ (Walking Corpse) () ("") 2 21 24}
#endif
[/do]
[/while]
#endif

View file

@ -85,6 +85,8 @@
{VARIABLE grak_challenged 0}
{VARIABLE zur_challenged 0}
{VARIABLE defiant_death 0}
{VARIABLE azkotep_casaulties.length 0}
{VARIABLE ystara_casaulties.length 0}
[/event]
#Time Areas correspond with halo around campfires