mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 16:21:40 +00:00
Update the animals Micro-AI demo with boars and piglets
This adjusts to the change in e7b5996e988747c2b590852b4b461abe48857526. The micro ai itself is unchanged, it's still controlled by `tusker_type` and `tusklet_type`, it simply needed the new unit ids to be used in this scenario.
This commit is contained in:
parent
942743eb78
commit
de3e798e72
@ -11,9 +11,9 @@
|
|||||||
#define ANIMAL_AI_DESCRIPTIONS2
|
#define ANIMAL_AI_DESCRIPTIONS2
|
||||||
_"Each <u>Deer (replaced by Vampire Bats)</u> wanders randomly on forest tiles, except when enemies get in its (the deer's) range, in which case it flees to the farthest point it can reach.
|
_"Each <u>Deer (replaced by Vampire Bats)</u> wanders randomly on forest tiles, except when enemies get in its (the deer's) range, in which case it flees to the farthest point it can reach.
|
||||||
|
|
||||||
<u>Tuskers</u> exhibit the same behavior as deer, except when an enemy is next to one of the tusklets. This enemy will then experience the full wrath of an irate boar.
|
<u>Tuskers (Woodland Boars)</u> exhibit the same behavior as deer, except when an enemy is next to one of the tusklets. This enemy will then experience the full wrath of an irate boar.
|
||||||
|
|
||||||
<u>Tusklets</u> blindly follow the closest adult tusker, except when there is no tusker left, in which case they behave the same as deer.
|
<u>Tusklets (Piglets)</u> blindly follow the closest adult tusker, except when there is no tusker left, in which case they behave the same as deer.
|
||||||
|
|
||||||
<u>Rabbits (replaced by Rats)</u> also wander randomly, but in addition disappear into their holes (replaced by straw bales; if any are within reach) when enemies are close. They reappear out of their holes at the beginning of the turn, if it is safe.
|
<u>Rabbits (replaced by Rats)</u> also wander randomly, but in addition disappear into their holes (replaced by straw bales; if any are within reach) when enemies are close. They reappear out of their holes at the beginning of the turn, if it is safe.
|
||||||
|
|
||||||
@ -151,10 +151,10 @@
|
|||||||
{VARIABLE scenario_name animals}
|
{VARIABLE scenario_name animals}
|
||||||
|
|
||||||
{SCATTER_UNITS 3 "Vampire Bat" 1 (x,y,terrain=6-99,12-99,G*^F*) (side,random_traits=2,no)}
|
{SCATTER_UNITS 3 "Vampire Bat" 1 (x,y,terrain=6-99,12-99,G*^F*) (side,random_traits=2,no)}
|
||||||
{NOTRAIT_UNIT 2 "Gorer" 6 20}
|
{NOTRAIT_UNIT 2 "Woodland Boar" 6 20}
|
||||||
{NOTRAIT_UNIT 2 "Gorer" 7 21}
|
{NOTRAIT_UNIT 2 "Woodland Boar" 7 21}
|
||||||
{NOTRAIT_UNIT 2 "Tusklet" 7 20}
|
{NOTRAIT_UNIT 2 "Piglet" 7 20}
|
||||||
{NOTRAIT_UNIT 2 "Tusklet" 8 21}
|
{NOTRAIT_UNIT 2 "Piglet" 8 21}
|
||||||
|
|
||||||
# Do this separately, so that there will definitely be two
|
# Do this separately, so that there will definitely be two
|
||||||
{SCATTER_UNITS 1 "Cave Bear" 1 (x,y,terrain=1-10,1-11,G*) (side,random_traits=3,no)}
|
{SCATTER_UNITS 1 "Cave Bear" 1 (x,y,terrain=1-10,1-11,G*) (side,random_traits=3,no)}
|
||||||
@ -241,8 +241,8 @@
|
|||||||
|
|
||||||
deer_type=Vampire Bat
|
deer_type=Vampire Bat
|
||||||
rabbit_type=Giant Rat
|
rabbit_type=Giant Rat
|
||||||
tusker_type=Gorer
|
tusker_type=Woodland Boar
|
||||||
tusklet_type=Tusklet
|
tusklet_type=Piglet
|
||||||
[filter_location]
|
[filter_location]
|
||||||
terrain=*^F*
|
terrain=*^F*
|
||||||
[/filter_location]
|
[/filter_location]
|
||||||
@ -414,12 +414,12 @@ Also note: The Animal AIs are coded as Micro AIs. A Micro AI can be added and ad
|
|||||||
[/objectives]
|
[/objectives]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# After first Gorer attack on wolves, wolves do not attack those any more
|
# After first boar attack on wolves, wolves do not attack those any more
|
||||||
[event]
|
[event]
|
||||||
name=attack end
|
name=attack end
|
||||||
[filter]
|
[filter]
|
||||||
side=2
|
side=2
|
||||||
type=Gorer
|
type=Woodland Boar
|
||||||
[/filter]
|
[/filter]
|
||||||
[filter_second]
|
[filter_second]
|
||||||
side=6
|
side=6
|
||||||
@ -445,7 +445,7 @@ Translation: Those boars are mean! We better stay away from them and their youn
|
|||||||
[filter_second]
|
[filter_second]
|
||||||
type=Vampire Bat
|
type=Vampire Bat
|
||||||
[/filter_second]
|
[/filter_second]
|
||||||
avoid_type=Yeti,Giant Spider,Cave Bear,Footpad,Gorer,Tusklet
|
avoid_type=Yeti,Giant Spider,Cave Bear,Footpad,Woodland Boar,Piglet
|
||||||
[/micro_ai]
|
[/micro_ai]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
@ -469,8 +469,8 @@ Translation: Those boars are mean! We better stay away from them and their youn
|
|||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
{NEW_UNIT_SIDE_TURN 2 "Vampire Bat" "0-2" 18 33}
|
{NEW_UNIT_SIDE_TURN 2 "Vampire Bat" "0-2" 18 33}
|
||||||
{NEW_UNIT_SIDE_TURN 2 Gorer "0-1" 1 20}
|
{NEW_UNIT_SIDE_TURN 2 "Woodland Boar" "0-1" 1 20}
|
||||||
{NEW_UNIT_SIDE_TURN 2 Tusklet "0-1" 1 21}
|
{NEW_UNIT_SIDE_TURN 2 Piglet "0-1" 1 21}
|
||||||
{NEW_UNIT_SIDE_TURN 3 "Cave Bear" "0-1" 1 1}
|
{NEW_UNIT_SIDE_TURN 3 "Cave Bear" "0-1" 1 1}
|
||||||
{NEW_UNIT_SIDE_TURN 4 "Giant Spider" "0-1" 57 1}
|
{NEW_UNIT_SIDE_TURN 4 "Giant Spider" "0-1" 57 1}
|
||||||
{NEW_UNIT_SIDE_TURN 5 Yeti 0 15 1}
|
{NEW_UNIT_SIDE_TURN 5 Yeti 0 15 1}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user