Skip to content

Commit

Permalink
DiD S8: manor guards deterministic type
Browse files Browse the repository at this point in the history
  • Loading branch information
nemaara committed Jan 14, 2019
1 parent 45171bc commit 606e74e
Showing 1 changed file with 33 additions and 39 deletions.
Expand Up @@ -186,27 +186,17 @@

[set_variables]
name=guardtypetable
[value]
type=Heavy Infantryman
[/value]
[value]
type=Heavy Infantryman
[/value]
[value]
type=Shock Trooper
[/value]
[value]
type=Spearman
[/value]
[value]
type=Spearman
[/value]
[value]
type=Fencer
[/value]
#ifndef HARD
[value]
type=Fencer
[/value]
#endif
[value]
type=Duelist
[/value]
Expand Down Expand Up @@ -235,6 +225,21 @@
type=Duelist
[/value]
#endif
[value]
type=Heavy Infantryman
[/value]
[value]
type=Heavy Infantryman
[/value]
[value]
type=Spearman
[/value]
[value]
type=Fencer
[/value]
[value]
type=Fencer
[/value]
[/set_variables]

[random_placement]
Expand All @@ -252,13 +257,7 @@
[/not]
[/filter_location]
[command]
[set_variable]
name=ind
rand=1..$guardtypetable.length
[/set_variable]
{VARIABLE_OP ind sub 1}
{NAMED_NOTRAIT_UNIT 2 "$guardtypetable[$ind].type" $loc.x $loc.y () (_ "Guard")} {GUARDIAN}
{CLEAR_VARIABLE ind}
{NAMED_NOTRAIT_UNIT 2 "$guardtypetable[$($loc.n % $guardtypetable.length)].type" $loc.x $loc.y () (_ "Guard")} {GUARDIAN}
[/command]
[/random_placement]

Expand All @@ -268,26 +267,22 @@
type=Mage
[/value]
[value]
type=Mage
[/value]
[value]
type=Mage
[/value]
[value]
type=Mage
type=White Mage
[/value]
[value]
type=Mage
[/value]
[value]
type=White Mage
type=Red Mage
[/value]
[value]
type=Red Mage
[/value]
#ifdef EASY
[value]
type=Red Mage
type=Mage
[/value]
#endif
#ifndef EASY
[value]
type=White Mage
Expand All @@ -297,16 +292,22 @@
[/value]
#endif
#ifdef HARD
[value]
type=Red Mage
[/value]
[value]
type=White Mage
[/value]
#endif
[value]
type=Red Mage
type=Mage
[/value]
[value]
type=Red Mage
type=Mage
[/value]
[value]
type=Mage
[/value]
#endif
[/set_variables]

[random_placement]
Expand All @@ -324,13 +325,7 @@
[/not]
[/filter_location]
[command]
[set_variable]
name=ind
rand=1..$magetypetable.length
[/set_variable]
{VARIABLE_OP ind sub 1}
{GENERIC_UNIT 2 "$magetypetable[$ind].type" $loc.x $loc.y}
{CLEAR_VARIABLE ind}
{GENERIC_UNIT 2 "$magetypetable[$($loc.n % $magetypetable.length)].type" $loc.x $loc.y}
[/command]
[/random_placement]
#ifdef EASY
Expand Down Expand Up @@ -376,7 +371,6 @@
[/set_variable]
#endif


[recall]
id=Darken Volk
x,y=18,15
Expand Down

0 comments on commit 606e74e

Please sign in to comment.