Stendhal/Creature Organization/Examples: Difference between revisions
Content deleted Content added
imported>AntumDeluge |
imported>AntumDeluge |
||
Line 516:
</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''.<br><br>
Comments can be used in place of the "subclass" tag:
<pre>
<creatures>
<!-- START: skeleton -->
<creature name="skeleton">
</creature>
<creature name="warrior skeleton">
</creature>
<!-- END: skeleton -->
<!-- START: zombie -->
<creature name="zombie">
</creature>
<creature name="rotten zombie">
</creature>
<!-- END: zombie -->
</creatures>
</pre>
| |||