Stendhal/Creature Organization/Examples: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann m Hendrik Brummermann moved page Stendhal/Creature Organization to Stendhal/Creature Organization/Examples |
imported>AntumDeluge |
||
| Line 81: | Line 81: | ||
** <creature>tiny skelly</creature> |
** <creature>tiny skelly</creature> |
||
** <creature>zombie rat</creature> (optional) |
** <creature>zombie rat</creature> (optional) |
||
=== Example animals.xml === |
|||
<wiki code> |
|||
<?xml version="1.0" encoding="ISO-8859-1"?> |
|||
<creatures xmlns="stendhal" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="stendhal ../creatures.xsd "> |
|||
<!-- START: aquatic --> |
|||
<creature name="crab"> |
|||
<type class="animal" subclass="crab" tileid="animal.png:8"/> |
|||
<description>You see a little crab that comes from the beach, be careful of its pincers.</description> |
|||
<attributes> |
|||
<atk value="8"/> |
|||
<def value="4"/> |
|||
<hp value="10"/> |
|||
<speed value="0.5"/> |
|||
<size value="1,1"/> |
|||
</attributes> |
|||
<level value="0"/> |
|||
<experience value="5"/> |
|||
<respawn value="900"/> |
|||
<corpse name="small_animal"/> |
|||
<drops> |
|||
<item value="meat" quantity="[1,1]" probability="60.0"/> |
|||
</drops> |
|||
<equips> |
|||
</equips> |
|||
<ai> |
|||
<says> |
|||
<noise state="idle follow fight" value="click-clack-click"/> |
|||
<sound value="click-clack-1" /> |
|||
</says> |
|||
<profile name="animal"/> |
|||
<profile name="offensive"/> |
|||
<profile name="patrolling"/> |
|||
</ai> |
|||
</creature> |
|||
<!-- END: aquatic --> |
|||
</creatures> |
|||
</wiki> |
|||
== Option 2: Create more creature categories == |
== Option 2: Create more creature categories == |
||