1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/entities/units/hele_isw_b1.xml
2004-11-11 23:53:10 +00:00

42 lines
1.0 KiB
XML
Executable File

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<Entity Tag="hele_isw_b1" Parent="isw">
<Traits>
<Id
civ="hele"
class2="Infantry"
class3="Melee"
generic="Infantry Swordsman"
specific="Dude"
ranked="Basic Dude"
personal="hele_names.csv"
icon="unit_dude"
rollover="The Dude is hiding among the Hellenic forces, since the Greeks have no swordsmen."
type="UnitSwordsman, UnitNonMechanical, UnitMilitary, UnitCitizenSoldier"
/>
<Health
hitpoints="250"
hpcurr="10"
/>
</Traits>
<Event On="Initialize">
<![CDATA[
// PASAP wander-between-houses script
houses = entities.subset( "this.template.tag == \"House\"" );
while( houses.length )
{
index = Math.floor( Math.random() * houses.length );
house = houses[index];
console.write( house.position );
this.orderQueued( 4 /* patrol */, house.position.x, house.position.z );
houses.remove( index );
}
console.write( "A new Dude has entered your dungeon." );
]]>
</Event>
<Actor>The Dude</Actor>
</Entity>