HowToAddCreaturesStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Hendrik Brummermann
Line 6: Line 6:
This file contains all the description of the creatures in game.
This file contains all the description of the creatures in game.
For example.
For example.
<source lang="xml">
<pre>
<creature name="deer">
<creature name="deer">
<type class="animal" subclass="deer" tileid="animal.png:9"/>
<type class="animal" subclass="deer" tileid="animal.png:9"/>
<description></description>
<description></description>
<attributes>
<attributes>
<atk value="5"/>
<atk value="5"/>
<def value="9"/>
<def value="9"/>
<hp value="20"/>
<hp value="20"/>
<speed value="1.0"/>
<speed value="1.0"/>
<size value="1,1"/>
<size value="1,1"/>
</attributes>
</attributes>
<level value="0"/>
<level value="0"/>
Line 22: Line 22:
<corpse name="animal"/>
<corpse name="animal"/>
<drops>
<drops>
<item value="meat" quantity="[1,3]" probability="60.0"/>
<item value="meat" quantity="[1,3]" probability="60.0"/>
<item value="ham" quantity="[1,2]" probability="30.0"/>
<item value="ham" quantity="[1,2]" probability="30.0"/>
<item value="antidote" quantity="[1,1]" probability="5.0"/>
<item value="antidote" quantity="[1,1]" probability="5.0"/>
</drops>
</drops>
<equips>
<equips>
</equips>
</equips>
<ai>
<ai>
<profile name="non_offensive"/>
<profile name="non_offensive"/>
<profile name="animal"/>
<profile name="animal"/>
<profile name="coward"/>
<profile name="coward"/>
<profile name="patrolling"/>
<profile name="patrolling"/>
</ai>
</ai>
</creature>
</creature>
</source>

</pre>


It is important to understand how it works.
It is important to understand how it works.