User Tools

Site Tools


definitions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
definitions [2014/03/04 19:43] – created thoogedefinitions [2014/05/23 15:08] (current) – [skill] thooge
Line 36: Line 36:
  
 ==== direction ==== ==== direction ====
-open-close-tag, sets the direction of the npc.+open-close-tag, sets the [[direction]] of the npc.
 Possible values: N, NE, E, SE, S, SW, W, NW. Default: N.  Possible values: N, NE, E, SE, S, SW, W, NW. Default: N. 
 +
 +==== equipped ====
 +open-close-tag, contains standard item containment tags. items must have layers to be equipped or they will be deleted after creation.
 +<code xml>
 +<equipped>
 + ...like standard item containment...
 +</equipped>
 +</code>
 +
 +==== gold ====
 +open-close-tag, sets the amount of gold the npc carries. 
 +
 +==== inherit ====
 +open-close- or single-tag. If single-tag, then it must contain attribute id. The expression of id or between the o/c-tags defines an npc section which definitions will be applied on the npc. This tag offers the opportunity for creating base and deriving child definitions.
 +<code xml>
 +<inherit id='npc_section' />
 +</code>
 +<code xml>
 +<inherit>value_expr</inherit>
 +</code>
 +
 +==== npcwander ====
 +single-tag, must contain attribute type. type can be: rectangle, rect or 3 for wandering in a box, circle or 2 for wandering in a circle, free or 1 for wandering freely, or none or 0.
 +
 +The rectangle-type must contain the attributes x1, x2, y1, y2 to define the box in offsets.
 +
 +The circle-type must contain the attribute radius.
 +<code xml>
 +<npcwander type='rectangle / rect / 3' x1='value' x2='value' y1='value' y2='value' />
 +<npcwander type='circle / 2' radius='value' />
 +<npcwander type='freely / 1' />
 +<npcwander type='none / 0' />
 +</code>
 +
 +==== shopkeeper ====
 +open-close-tag, makes the npc a shopkeeper, holds restockable-, buyable- and sellable-tags. These tags contain items for the shopkeeper's stockpile.
 +<code xml>
 +<shopkeeper>
 +  <restockable>
 +    ...like standard item containment...
 +  </restockable>
 +  <buyable>
 +    ...like standard item containment...
 +  </buyable>
 +  <sellable>
 +    ...like standard item containment...
 +  </sellable>
 +</shopkeeper>
 +</code>
 +
 +==== skill ====
 +open-close-tags, must contain attribute type which holds the 1-determined number of the [[skill]] or the skillname itself.
 +<code xml>
 +<skill id="cartography><random min="200" max="400" /></skill>
 +</code>
 +
 +==== stat ====
 +open-close-tag, must contain attribute type with value str, dex or int. Sets str, dex or int to the enclosed value.
 +
 +==== tag ====
 +open-close-tag, contains the open-close-tags key and value. the tag can have an attribute type which can define if it is wether a string or a value. Corresponds to the new tag system which shall replace the more variables.
 +<code xml>
 +<tag type='value or string'> while the type attr. is optional
 +  <key>value_expr</key>
 +  <value>value_expr</value>
 +</tag>
 +</code>
 +
 +for further possible tags see [[Character Properties]] 
  
definitions.1393962209.txt.gz · Last modified: 2014/03/04 19:43 by thooge

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki