Stendhal/Creature Organization/Examples: Difference between revisions

Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 84:
=== Example animals.xml ===
 
<wiki code lang="xml">
<&lt;?xml version="1.0" encoding="ISO-8859-1"?>&gt;
<&lt;creatures xmlns="stendhal" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="stendhal ../creatures.xsd "&gt;
xsi:schemaLocation="stendhal ../creatures.xsd ">
<&lt;!-- START: aquatic -->&gt;
<&lt;creature name="crab">&gt;
<&lt;type class="animal" subclass="crab" tileid="animal.png:8"/>&gt;
<&lt;description>&gt;You see a little crab that comes from the beach, be careful of its pincers.<&lt;/description>&gt;
<&lt;attributes>&gt;
<&lt;atk value="8"/>&gt;
<&lt;def value="4"/>&gt;
<&lt;hp value="10"/>&gt;
<&lt;speed value="0.5"/>&gt;
<&lt;size value="1,1"/>&gt;
<&lt;/attributes>&gt;
<&lt;level value="0"/>&gt;
<&lt;experience value="5"/>&gt;
<&lt;respawn value="900"/>&gt;
<&lt;corpse name="small_animal"/>&gt;
<&lt;drops>&gt;
<&lt;item value="meat" quantity="[1,1]" probability="60.0"/>&gt;
<&lt;/drops>&gt;
<&lt;equips>&gt;
<&lt;/equips>&gt;
<&lt;ai>&gt;
<&lt;says>&gt;
<&lt;noise state="idle follow fight" value="click-clack-click"/>&gt;
<&lt;sound value="click-clack-1" />&gt;
<&lt;/says>&gt;
<&lt;profile name="animal"/>&gt;
<&lt;profile name="offensive"/>&gt;
<&lt;profile name="patrolling"/>&gt;
<&lt;/ai>&gt;
<&lt;/creature>&gt;
<&lt;!-- END: aquatic -->&gt;
<&lt;/creatures>&gt;
</wikicode>
 
== Option 2: Create more creature categories ==