Simplified how UtBS was making units female...
...after using a macro to define the unit. Using [+unit] is a better way to do this than doing store_unit, change and then unstore_unit. This might fix 6134, but since it wasn't happening on my linux box, I can't tell for sure right now.
This commit is contained in:
parent
593f209b44
commit
922c3ae154
2 changed files with 22 additions and 113 deletions
|
@ -380,25 +380,10 @@ name=moveto
|
|||
{UNIT_T (Desert Fighter) (Vecnu) 1 24 25}
|
||||
{UNIT_T (Desert Archer) (Eranor) 1 24 27}
|
||||
{UNIT_T (Desert Archer) (Seela) 1 21 25}
|
||||
|
||||
#Hack to make seela female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Seela
|
||||
[/filter]
|
||||
kill=yes
|
||||
variable=tempelf
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempelf.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempelf
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
|
||||
{CLEAR_VARIABLE tempelf}
|
||||
|
||||
|
@ -1244,27 +1229,12 @@ name=turn 16
|
|||
{UNIT_T (Desert Hunter) (Pythos) 1 29 2}
|
||||
{UNIT_T (Desert Fighter) (Shea) 1 28 2}
|
||||
{UNIT_T (Desert Fighter) (Narn) 1 29 1}
|
||||
{UNIT_T (Desert Archer) (Lyia) 1 28 1}
|
||||
{UNIT_T (Desert Scout) (Jokli) 1 27 2}
|
||||
|
||||
{UNIT_T (Desert Archer) (Lyia) 1 28 1}
|
||||
#Hack to make Lyia female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Lyia
|
||||
[/filter]
|
||||
kill=yes
|
||||
variable=tempelf
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempelf.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempelf
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
|
||||
[message]
|
||||
description=Pythos
|
||||
|
@ -1600,26 +1570,10 @@ name=capture
|
|||
[/message]
|
||||
|
||||
{UNIT_T (Desert Archer) (Frea) 1 $x1 $y1}
|
||||
|
||||
#hack to make frea female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Frea
|
||||
[/filter]
|
||||
kill=yes
|
||||
variable=tempelf
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempelf.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempelf
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
|
||||
#Hack to make frea female
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
|
|
@ -915,25 +915,10 @@ first_time_only=no
|
|||
#else
|
||||
{UNIT_ (Naga Warrior) (Scylla) 2 20 34}
|
||||
#endif
|
||||
|
||||
#hack to make Scylla female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Scylla
|
||||
[/filter]
|
||||
variable=tempnaga
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempnaga.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempnaga
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
|
||||
#ifdef HARD
|
||||
{UNIT_ (Naga Warrior) (Lake Naga) 2 19 34}
|
||||
|
@ -1089,28 +1074,13 @@ message= _ "Because you tend to move slowly and if we're going into the caves yo
|
|||
|
||||
{UNIT_ (Orcish Slayer) (Orac) 2 24 32}
|
||||
|
||||
{UNIT_ (Naga Warrior) (Scylla) 2 20 34}
|
||||
{UNIT_ (Naga Fighter) (Lake Naga) 2 19 34}
|
||||
{UNIT_ (Naga Fighter) (Lake Naga) 2 20 35}
|
||||
|
||||
{UNIT_ (Naga Warrior) (Scylla) 2 20 34}
|
||||
#hack to make Scylla female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Scylla
|
||||
[/filter]
|
||||
variable=tempnaga
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempnaga.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempnaga
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
|
||||
[set_variable]
|
||||
name=naga_ambush
|
||||
|
@ -1150,28 +1120,13 @@ message= _ "Because you tend to move slowly and if we're going into the caves yo
|
|||
|
||||
{UNIT_ (Orcish Slayer) (Orac) 2 24 32}
|
||||
|
||||
{UNIT_ (Naga Warrior) (Scylla) 2 20 34}
|
||||
{UNIT_ (Naga Warrior) (Lake Naga) 2 19 34}
|
||||
{UNIT_ (Naga Warrior) (Lake Naga) 2 20 35}
|
||||
|
||||
{UNIT_ (Naga Warrior) (Scylla) 2 20 34}
|
||||
#hack to make Scylla female
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Scylla
|
||||
[/filter]
|
||||
variable=tempnaga
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
|
||||
[set_variable]
|
||||
name=tempnaga.gender
|
||||
value=female
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=tempnaga
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
[+unit]
|
||||
gender=female
|
||||
[/unit]
|
||||
|
||||
[set_variable]
|
||||
name=naga_ambush
|
||||
|
|
Loading…
Add table
Reference in a new issue