Stendhal/Creature Organization/Examples: Difference between revisions

Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 582:
* 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 <b><i><span style="color:bluered">This ismethod howwill thenot reorganizationsbe is laid outused. ItThere is thecurrently sameno asuse beforefor withusing commentsa tosubclass separate subclasses within the creature.xmltag.</span></i></b>
<b><i><span style="color:red">This method will not be used. There is currently no use for using a subclass tag.</span></i></b>
<pre>
<creatures>
Line 612 ⟶ 611:
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>
 
If subclass tags not possible comments can be used in place of them in the traditional method: <b><i><span style="color:blue">This is how the reorganizations is laid out. It is the same as before with comments to separate subclasses within the creature.xml.</span></i></b>
<pre>
<creatures>