Stendhal/Creature Organization/Examples: Difference between revisions

Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 472:
** <creature>bloody zombie</creature>, <creature>zombie</creature>, <creature>rotten zombie</creature> & <creature>headless monster</creature>
** myling (not activated)
 
== Examples ==
 
* A possible method of organization would be to put the creatures in a file with a corresponding class name, and use a subclass tag to segregate different creatures within their class.
 
Example: undead.xml
<pre>
<creatures>
 
<subclass value="skeleton">
<creature name="skeleton">
</creature>
<creature name="warrior skeleton">
</creature>
</subclass>
<subclass value="zombie">
<creature name="zombie">
</creature>
<creature name="rotten zombie">
</creature>
</subclass>
</creatures>
</pre>
 
In the above example creatures <creature>skeleton</creature> & <creature>warrior skeleton</creature> would be of class ''undead'' and subclass ''skeleton'' while <creature>zombie</creature> & <creature>rotten zombie</creature> would be class ''undead'' and subclass ''zombie''.