forked from 0ad/0ad
43 lines
1.1 KiB
XML
Executable File
43 lines
1.1 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"
|
|
personal1="hele_male_names_1st.csv"
|
|
personal2="hele_male_names_2nd.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>
|
|
|