<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hlkitwiki.wolflair.com//api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Michele</id>
	<title>HLKitWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://hlkitwiki.wolflair.com//api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Michele"/>
	<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Special:Contributions/Michele"/>
	<updated>2026-05-05T15:53:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3118</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3118"/>
		<updated>2014-04-15T15:22:12Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text – Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text – indicates what the data is and should be one of the following: &lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointsval – The number of &amp;quot;points&amp;quot; for a character. e.g. 2000&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointstext – The textual representation of the points value. e.g. &amp;quot;2,000 XP&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingval – The difficulty for a character. e.g. 4&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingtext – The textual representation of the rating value. e.g. &amp;quot;CR 4&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;sourcebooks – The books where a character originates.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – Specifies the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;encounter ratingterm=&amp;quot;CR&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointsval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointstext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingtext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;sourcebooks&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/bookinfo&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;name&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/encounter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3117</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3117"/>
		<updated>2014-04-15T15:21:03Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text – Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: &lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointsval - The number of &amp;quot;points&amp;quot; for a character. e.g. 2000&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointstext - The textual representation of the points value. e.g. &amp;quot;2,000 XP&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingval - The difficulty for a character. e.g. 4&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingtext - The textual representation of the rating value. e.g. &amp;quot;CR 4&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;sourcebooks - The books where a character originates.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;encounter ratingterm=&amp;quot;CR&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointsval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointstext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingtext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;sourcebooks&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/bookinfo&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;name&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/encounter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3116</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3116"/>
		<updated>2014-04-15T15:18:37Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: &lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointsval - The number of &amp;quot;points&amp;quot; for a character. e.g. 2000&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;pointstext - The textual representation of the points value. e.g. &amp;quot;2,000 XP&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingval - The difficulty for a character. e.g. 4&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ratingtext - The textual representation of the rating value. e.g. &amp;quot;CR 4&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;sourcebooks - The books where a character originates.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;encounter ratingterm=&amp;quot;CR&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointsval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointstext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingtext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;sourcebooks&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/bookinfo&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;name&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/encounter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3115</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3115"/>
		<updated>2014-04-15T15:11:04Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: &lt;br /&gt;
    pointsval - The number of &amp;quot;points&amp;quot; for a character. e.g. 2000&lt;br /&gt;
    pointstext - The textual representation of the points value. e.g. &amp;quot;2,000 XP&amp;quot;&lt;br /&gt;
    ratingval - The difficulty for a character. e.g. 4&lt;br /&gt;
    ratingtext - The textual representation of the rating value. e.g. &amp;quot;CR 4&amp;quot;&lt;br /&gt;
    sourcebooks - The books where a character originates. &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;encounter ratingterm=&amp;quot;CR&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointsval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointstext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingtext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;sourcebooks&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/bookinfo&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;name&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/encounter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3114</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3114"/>
		<updated>2014-04-11T19:37:49Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: &lt;br /&gt;
    pointsval - The number of &amp;quot;points&amp;quot; for a character. ie 2000&lt;br /&gt;
    pointstext - The textual representation of the points value. ie &amp;quot;2,000 XP&amp;quot;&lt;br /&gt;
    ratingval - The difficulty for a character. ie 4&lt;br /&gt;
    ratingtext - The textual representation of the rating value. ie &amp;quot;CR 4&amp;quot;&lt;br /&gt;
    sourcebooks - The books where a character originates. &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;encounter ratingterm=&amp;quot;CR&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointsval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;pointstext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/xpaward&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingval&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;value&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;ratingtext&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/challengerating&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;encounterinfo type=&amp;quot;sourcebooks&amp;quot;&lt;br /&gt;
      xpath=&amp;quot;/document/public/character/bookinfo&amp;quot;&lt;br /&gt;
      attribute=&amp;quot;name&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/encounter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3113</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3113"/>
		<updated>2014-04-11T19:28:55Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: &lt;br /&gt;
    pointsval - The number of &amp;quot;points&amp;quot; for a character. ie 2000&lt;br /&gt;
    pointstext - The textual representation of the points value. ie &amp;quot;2,000 XP&amp;quot;&lt;br /&gt;
    ratingval - The difficulty for a character. ie 4&lt;br /&gt;
    ratingtext - The textual representation of the rating value. ie &amp;quot;CR 4&amp;quot;&lt;br /&gt;
    sourcebooks - The books where a character originates. &lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element that contains a specific piece of data in the custom output XML for a stock portfolio. This should only be used in game systems with custom output XML.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3112</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3112"/>
		<updated>2014-04-11T16:06:18Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific information for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: pointsval, pointstext, ratingval, ratingtext, or sourcebooks.&lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element in a stock portfolio to find a specific piece of data.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3111</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3111"/>
		<updated>2014-04-11T16:04:12Z</updated>

		<summary type="html">&lt;p&gt;Michele: Added encounter and encounterinfo elements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounter&amp;quot; Element{{anchor|encounter}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;encounter&amp;quot; element defines game specific locations into the stock character data files for use within the encounter builder. The encounter element contains one or more encounterinfo elements. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|ratingterm&lt;br /&gt;
|(Optional) Text - Defines the term used for the rating or difficulty of a monster. This is used in the encounter builder form in the rating filter label. If there is no rating term defined then the rating filter controls are hidden. If there is a rating term defined then there must also be an encounterinfo element with type=&amp;quot;ratingval&amp;quot; to define the location of the rating value in the portfolio.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The encounter element contains one or more encounterinfo elements. The list of these child elements is below. Click on the links to access the details for each element. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#encounterinfo|encounterinfo]]&lt;br /&gt;
|One or more &amp;quot;encounterinfo&amp;quot; elements must appear as defined by the given link. This element gives a location in a stock portfolio to find a specific piece of data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;encounterinfo&amp;quot; Element{{anchor|encounterinfo}}==&lt;br /&gt;
The encounterinfo element is a child of the encounter element and contains locations to data in stock portfolios. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|type&lt;br /&gt;
|(Required) Text - indicates what the data is and should be one of the following: pointsval, pointstext, ratingval, ratingtext, or sourcebooks.&lt;br /&gt;
|-&lt;br /&gt;
|xpath&lt;br /&gt;
|(Required) Text – The xpath should give a location of the element in a stock portfolio to find a specific piece of data.&lt;br /&gt;
|-&lt;br /&gt;
|attribute&lt;br /&gt;
|(Required) Text – specify the attribute of the node given in xpath that contains the data.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3110</id>
		<title>Behavior Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Behavior_Element_(Data)&amp;diff=3110"/>
		<updated>2014-04-08T20:57:30Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;behavior&amp;quot; Element */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Definition File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;behavior&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
Each game system has a variety of behaviors that will need to be defined. These behaviors are collectively specified within a &amp;quot;behavior&amp;quot; element. The complete list of attributes for a &amp;quot;behavior&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|defaultname&lt;br /&gt;
|(Optional) Text – Default name to be used for all actor that have not been explicitly named by the user. Maximum length is 50 characters. Default: &amp;quot;Unnamed&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondaryphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|secondarypriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Secondary Tag Expression|Secondary tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for a Secondary tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencephase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit phase is assigned for an Existence tag expression, this one is used. Default: &amp;quot;Setup&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|existencepriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority to be used as the default for all [[Existence Tag Expression|Existence tag expressions]] assigned by tables and choosers. If no explicit priority is assigned for an Existence tag expression, this one is used. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearphase&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the phase during which all [[Gear Weight Determination|built-in gear processing]] is performed. This includes the calculation of gear weights throughout all gear holders. Default: &amp;quot;Effects&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gearpriority&lt;br /&gt;
|(Optional) Integer – Specifies the priority at which all [[Gear Weight Determination|built-in gear processing]] is performed. Default: &amp;quot;5000&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|mouseinfo&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[MouseInfo Script|MouseInfo script]] within portals. Default: &amp;quot;MouseInfo&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|description&lt;br /&gt;
|(Optional) Id – Specifies the unique id of the procedure to automatically invoke as the [[Description Script|Description script]] within portals. Default: &amp;quot;Descript&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initascend&lt;br /&gt;
|(Optional) Boolean – Indicates whether initiative order ascends or descends. When it ascends, lower numbers take their actions first, and vice versa. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initperturn&lt;br /&gt;
|(Optional) Boolean – Indicates whether to re-generate new initiative values at the start of every turn instead of at the start of every combat. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initsimultaneous&lt;br /&gt;
|(Optional) Boolean – Indicates whether it is valid for two actors to have identical initiatives and act simultaneously. If not, HL will automatically generate a tie-breaker value. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initminimum&lt;br /&gt;
|(Optional) Boolean – Specifies the minimum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;-99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|initmaximum&lt;br /&gt;
|(Optional) Boolean – Specifies the maximum value allowed for the initiative value when the user is adjusting the value on the Tactical Console. Default: &amp;quot;99&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|interleave&lt;br /&gt;
|(Optional) Boolean – Indicates whether the evaluation cycles of all actors within the context of the same lead are interleaved, which governs the [[Minion and Master Relationships|behavior of minions and masters]]. If enabled, masters can influence changes upon their minions and minions can also influence changes upon their masters. If not enabled, masters all fully evaluated before minions, so the influence can only occur in the downward direction. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;behavior&amp;quot; element also possesses child elements that describe additional facets of the game system. The list of these child elements is below and must appear in the order shown. Click on the links to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#diceroller|diceroller]]&lt;br /&gt;
|A single &amp;quot;diceroller&amp;quot; element must appear as defined by the given link. This element customizes the integrated Dice Roller.&lt;br /&gt;
|-&lt;br /&gt;
|[[#leadsummary|leadsummary]]&lt;br /&gt;
|An optional &amp;quot;leadsummary&amp;quot; element may appear as defined by the given link. This element defines the [[LeadSummary Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newcombat|newcombat]]&lt;br /&gt;
|An optional &amp;quot;newcombat&amp;quot; element may appear as defined by the given link. This element defines the [[NewCombat Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#newturn|newturn]]&lt;br /&gt;
|An optional &amp;quot;newturn&amp;quot; element may appear as defined by the given link. This element defines the [[NewTurn Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#integrate|integrate]]&lt;br /&gt;
|An optional &amp;quot;integrate&amp;quot; element may appear as defined by the given link. This element defines the [[Integrate Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initiative|initiative]]&lt;br /&gt;
|An optional &amp;quot;initiative&amp;quot; element may appear as defined by the given link. This element defines the [[Initiative Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#initfinalize|initfinalize]]&lt;br /&gt;
|An optional &amp;quot;initfinalize&amp;quot; element may appear as defined by the given link. This element defines the [[InitFinalize Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#loaderror|loaderror]]&lt;br /&gt;
|An optional &amp;quot;loaderror&amp;quot; element may appear as defined by the given link. This element defines the [[LoadError Script]]. If omitted, default handling is employed.&lt;br /&gt;
|-&lt;br /&gt;
|[[#encounter|encounter]]&lt;br /&gt;
|An optional &amp;quot;encounter&amp;quot; element may appear as defined by the given link. This element defines fields used by the encounter builder. If omitted, default values are used.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;diceroller&amp;quot; Element{{anchor|diceroller}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;diceroller&amp;quot; element defines characteristics of the [[Configuring the Dice Roller|integrated Dice Roller]] mechanisms when used with the game system. The complete list of attributes for a &amp;quot;diceroller&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|mode&lt;br /&gt;
|(Optional) Set – Specifies the initial dice rolling mode to start out in for the game system. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;totals – The dice rolled are added and that total is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;successes – Each die rolled is compared against the threshold for declaring a success and the number of successes is displayed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;totals&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|dietype&lt;br /&gt;
|Integer – Specifies the default die type to be rolled.&lt;br /&gt;
|-&lt;br /&gt;
|quantity&lt;br /&gt;
|(Optional) Integer – Specifies the default number of dice to be rolled. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|success&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result is achieved. Game systems like World of Darkness and Shadowrun utilizes successes instead of adding the dice results. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|explode&lt;br /&gt;
|(Optional) Integer – Specifies the threshold value at which a success result &amp;quot;explodes&amp;quot; by allowing a re-roll. If a value of zero is given, no explosion occurs. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|maxexplode&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of times that a single roll may explode. A value of zero indicates that explosion is unlimited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;leadsummary&amp;quot; Element{{anchor|leadsummary}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;leadsummary&amp;quot; element defines the [[LeadSummary Script|LeadSummary script]] that is used to synthesize summary information for each actor. This summary is displayed when the user previews the available actors for import into the current portfolio. &lt;br /&gt;
The complete list of attributes for a &amp;quot;scriptmacro&amp;quot; element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LeadSummary script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newcombat&amp;quot; Element{{anchor|newcombat}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newcombat&amp;quot; element defines the [[NewCombat Script|NewCombat script]] that is invoked whenever the user begins a new combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewCombat script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;newturn&amp;quot; Element{{anchor|newturn}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;newturn&amp;quot; element defines the [[NewTurn Script|NewTurn script]] that is invoked whenever the user starts a new turn of combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the NewTurn script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;integrate&amp;quot; Element{{anchor|integrate}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;integrate&amp;quot; element defines the [[Integrate Script|Integrate script]] that is invoked whenever the user integrates pending actors into an existing combat within the Tactical Console. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Integrate script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initiative&amp;quot; Element{{anchor|initiative}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initiative&amp;quot; element defines the [[Initiative Script|Initiative script]] that is used to calculate the initiative score for each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the Initiative script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;initfinalize&amp;quot; Element{{anchor|initfinalize}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;initfinalize&amp;quot; element defines the [[InitFinalize Script|InitFinalize script]] that is used to tailor the final displayed text for the initiative score of each actor during combat. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the InitFinalize script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;loaderror&amp;quot; Element{{anchor|loaderror}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;loaderror&amp;quot; element defines the [[LoadError Script|LoadError script]] that is used to provide helpful information to the user about changes across releases of your data files and errors that can be safely ignored. The complete list of attributes for the element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|PCDATA&lt;br /&gt;
|Script – Specifies the code comprising the LoadError script.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what a &amp;quot;behavior&amp;quot; element might look like. All default values are assumed for omitted optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;behavior&lt;br /&gt;
  defaultname=&amp;quot;Nobody&amp;quot;&lt;br /&gt;
  interleave=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;diceroller mode=&amp;quot;totals&amp;quot; dietype=&amp;quot;6&amp;quot; quantity=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;leadsummary&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~start with the race&lt;br /&gt;
    var txt as string&lt;br /&gt;
    txt = hero.firstchild[&amp;quot;Race.?&amp;quot;].field[name].text&lt;br /&gt;
    if (empty(txt) &amp;lt;&amp;gt; 0) then&lt;br /&gt;
      txt = &amp;quot;No Race&amp;quot;&lt;br /&gt;
      endif&lt;br /&gt;
    @text &amp;amp;= txt&lt;br /&gt;
&lt;br /&gt;
    ~append the CP rating of the character&lt;br /&gt;
    @text &amp;amp;= &amp;quot; - CP: &amp;quot; &amp;amp; hero.child[resCP].field[resMax].value&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/leadsummary&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;initiative&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
    ~calculate the secondary initiative rating&lt;br /&gt;
    @secondary = 0&lt;br /&gt;
    ~calculate the primary initiative rating&lt;br /&gt;
    @initiative = random(10) + 1&lt;br /&gt;
    ]]&amp;gt;&amp;lt;/initiative&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/behavior&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Style_Element_(Data)&amp;diff=3061</id>
		<title>Style Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Style_Element_(Data)&amp;diff=3061"/>
		<updated>2013-11-05T00:54:59Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;style_edit&amp;quot; Element{{anchor|edit}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Structural File Reference}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
All of the basic visual look and behaviors of portals is encapsulated in a [[Managing Styles|collection of styles]]. Each distinct category of portal has its own type of style, and you can only associate styles with portals of the corresponding type. Each separate style is specified through the use of a &amp;quot;style&amp;quot; element. The complete list of attributes for this element is below.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|id&lt;br /&gt;
|Id – Specifies the unique id of the style. This id is used in all references to the style.&lt;br /&gt;
|-&lt;br /&gt;
|border&lt;br /&gt;
|(Optional) Id – Identifies the border to used in conjunction with this style. All portals may have a border drawn around them, and the border is controlled via the style. You can specify the unique id of the border to use or &amp;quot;none&amp;quot; to indicate no border. Default: &amp;quot;none&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style&amp;quot; element also possesses child elements that define the specifics of the style. The list of these child elements is below and must appear in the order shown. Click on the link to access the details for each element.&lt;br /&gt;
&lt;br /&gt;
{{important}}With the exception of the &amp;quot;resource&amp;quot; element, exactly &#039;&#039;&#039;one&#039;&#039;&#039; of these child elements may be specified for each style. If multiple are given, a compiler error will be reported. The chosen child element dictates the type of style that is being defined. You may include as many &amp;quot;resource&amp;quot; elements as you wish after the single child element that specifies the style.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|[[#label|style_label]]&lt;br /&gt;
|An optional &amp;quot;style_label&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with label portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#image|style_image]]&lt;br /&gt;
|An optional &amp;quot;style_image&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with image portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#edit|style_edit]]&lt;br /&gt;
|An optional &amp;quot;style_edit&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with edit portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#checkbox|style_checkbox]]&lt;br /&gt;
|An optional &amp;quot;style_checkbox&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with checkbox portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#menu|style_menu]]&lt;br /&gt;
|An optional &amp;quot;style_menu&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with menu portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#action|style_action]]&lt;br /&gt;
|An optional &amp;quot;style_action&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with action portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#x|style_incrementer]]&lt;br /&gt;
|An optional &amp;quot;style_incrementer&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with incrementer portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#chooser|style_chooser]]&lt;br /&gt;
|An optional &amp;quot;style_chooser&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with chooser portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#region|style_region]]&lt;br /&gt;
|An optional &amp;quot;style_region&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with region portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#table|style_table]]&lt;br /&gt;
|An optional &amp;quot;style_table&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with table portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#separator|style_separator]]&lt;br /&gt;
|An optional &amp;quot;style_separator&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with separator portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#special|style_special]]&lt;br /&gt;
|An optional &amp;quot;style_special&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with special portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[#output|style_output]]&lt;br /&gt;
|An optional &amp;quot;style_output&amp;quot; element may appear as defined by the given link. This element specifies the details of a style for use with output portals.&lt;br /&gt;
|-&lt;br /&gt;
|[[Resource Element (Data)|resource]]&lt;br /&gt;
|Zero or more &amp;quot;resource&amp;quot; elements may appear as defined by the given link. This element specifies new resources that are used in conjunction with the style.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Colors in Styles{{anchor|colors}}==&lt;br /&gt;
&lt;br /&gt;
Many styles allow you to directly specify a color value in the format &amp;quot;xxxxxx&amp;quot;. The format for the color uses standard HTML color syntax, with each character representing a hexadecimal digit. The first two characters define the Red color value, the next two Green, and the last two Blue. For example, the color &amp;quot;ff0080&amp;quot; specifies a Red value of &amp;quot;ff&amp;quot;, a Green value of &amp;quot;00&amp;quot;, and a Blue value of &amp;quot;80&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For additional details on specifying colors via the HTML syntax, please refer to one of the many websites that provide this information, such as &lt;br /&gt;
[http://www.w3schools.com/Html/html_colors.asp http://www.w3schools.com/Html/html_colors.asp].&lt;br /&gt;
&lt;br /&gt;
==Scaling of Images{{anchor|scaling}}==&lt;br /&gt;
&lt;br /&gt;
When encoded text is supported within a category of portal, you will typically be given control over the scaling of images within the corresponding style. When enabled, image scaling is applied to all bitmaps that are inserted into the encoded text that is rendered into the portal. The scaling ratio is based on the difference between the initial font size for the portal and the current font size at which the text is now being rendered. Scaling is valuable for when you want to ensure that the bitmaps remain proportionally sized relative to the font size of the text, which is important when text and bitmaps are interleaved within the encoded text.&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_label&amp;quot; Element{{anchor|label}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_label&amp;quot; element defines the facets of a style for label portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|background&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource to use as the background. If omitted, the text is drawn transparently on the existing background region. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|alignment&lt;br /&gt;
|(Optional) Set – Specifies how the text should be horizontally aligned within the portal width. Must be one of these values:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;left – Text is left-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;center – Text is centered within the portal.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;right – Text is right-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;left&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|ispattern&lt;br /&gt;
|(Optional) Boolean – Indicates whether the background bitmap should be centered within the portal dimensions or tiled to fill the entire portal. Default: &amp;quot;yes&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|scaleimage&lt;br /&gt;
|(Optional) Boolean – Indicates whether bitmaps included within encoded text are scaled ([[#scaling|see above]]). Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_image&amp;quot; Element{{anchor|image}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_image&amp;quot; element defines the facets of a style for image portals. Since image portals simply contain the image and nothing else, there are no special attributes for this element.&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_edit&amp;quot; Element{{anchor|edit}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_edit&amp;quot; element defines the facets of a style for edit portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolor&lt;br /&gt;
|(Optional) Text – Color value to be used as the background in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;backcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background. If omitted, the &amp;quot;backcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|placeholdercolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for the placeholder text. If omitted, the system &amp;quot;Disabled&amp;quot; color will be used.&lt;br /&gt;
|-&lt;br /&gt;
|alignment&lt;br /&gt;
|(Optional) Set – Specifies how the text should be horizontally aligned within the portal width. Must be one of these values:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;left – Text is left-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;center – Text is centered within the portal.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;right – Text is right-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;left&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|autoselect&lt;br /&gt;
|(Optional) Set – Indicates whether to automatically select the entire text contents of the portal when it gains the focus. Must be one of the following:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;yes – Contents are always automatically selected when focus is gained.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;no – Contents are never selected when focus is gained.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;default – Default handling is performed. If the edit portal contains a numeric field, the contents are automatically selected, but no selection is performed for text-based fields.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;default&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|itemborder&lt;br /&gt;
|(Optional) Id – Unique id of the border resource to draw around each individual edit cell for an &amp;quot;edit_date&amp;quot; portal. If &amp;quot;none&amp;quot;, no border is drawn. Default: &amp;quot;none&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
{{note}}An &amp;quot;edit_date&amp;quot; portal can be assigned &#039;&#039;&#039;either&#039;&#039;&#039; an item border &#039;&#039;&#039;or&#039;&#039;&#039; a border around the entire portal, but never both.&lt;br /&gt;
|-&lt;br /&gt;
|septext&lt;br /&gt;
|(Optional) Text – Specifies the text to be drawn between each individual edit cell for an &amp;quot;edit_date&amp;quot; portal. Default: &amp;quot;/&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|sepfont&lt;br /&gt;
|(Optional) Id – Unique id of the font resource to be used for drawing the separator text between individual cells for an &amp;quot;edit_date&amp;quot; portal. If empty, the resource specified by the &amp;quot;font&amp;quot; attribute is assumed. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|sepcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing the separator text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;sepcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|sepcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing the separator text. If omitted, the &amp;quot;sepcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_checkbox&amp;quot; Element{{anchor|checkbox}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_checkbox&amp;quot; element defines the facets of a style for checkbox portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|scaleimage&lt;br /&gt;
|(Optional) Boolean – Indicates whether bitmaps included within encoded text are scaled ([[#scaling|see above]]). Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|check&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource used to indicate the box is checked. If omitted, a default bitmap it used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|checkoff&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource used to indicate the box is checked when the portal is disabled. If omitted, a default bitmap it used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|uncheck&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource used to indicate the box is not checked. If omitted, a default bitmap it used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|uncheckoff&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource used to indicate the box is not checked when the portal is disabled. If omitted, a default bitmap it used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_menu&amp;quot; Element{{anchor|menu}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_menu&amp;quot; element defines the facets of a style for menu portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolor&lt;br /&gt;
|(Optional) Text – Color value to be used as the background in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;backcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background. If omitted, the &amp;quot;backcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|selecttext&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text of the selected item when the menu is &amp;quot;dropped&amp;quot; in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;selecttextid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|selecttextid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text of the selected item when the menu is &amp;quot;dropped&amp;quot;. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|selectback&lt;br /&gt;
|(Optional) Text – Color value to be used as the background of the selected item when the menu is &amp;quot;dropped&amp;quot; in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;selectbackid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|selectbackid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background of the selected item when the menu is &amp;quot;dropped&amp;quot;. If omitted, the &amp;quot;backcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|activetext&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text of the selected item in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). This color is only used within the &amp;quot;non-dropped&amp;quot; region of the menu and allows the color highlighting of invalid menu items without impacting the behavior of the &amp;quot;dropped&amp;quot; menu. If omitted, the &amp;quot;selectbackid&amp;quot; attribute may be specified. If neither color is specified, the &amp;quot;selecttext&amp;quot; color is used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|activetextid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background of the selected item. See the &amp;quot;activetext&amp;quot; attribute above for further details. If omitted, the &amp;quot;activetext&amp;quot; attribute may be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|droplist&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap to be used for the drop arrow on the right when the menu is enabled. If omitted, the system default bitmap is used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|droplistoff&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap to be used for the drop arrow on the right when the menu is disabled. If omitted, the system default bitmap is used. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|scaleimage&lt;br /&gt;
|(Optional) Boolean – Indicates whether bitmaps included within encoded text are scaled ([[#scaling|see above]]). Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_action&amp;quot; Element{{anchor|action}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_action&amp;quot; element defines the facets of a style for action portals (typically used as clickable buttons). The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|up&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the &amp;quot;up&amp;quot; state of the action portal.&lt;br /&gt;
|-&lt;br /&gt;
|down&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the &amp;quot;down&amp;quot; state of the action portal.&lt;br /&gt;
|-&lt;br /&gt;
|off&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the &amp;quot;up&amp;quot; state of the action portal when the portal is disabled.&lt;br /&gt;
|-&lt;br /&gt;
|xoffset&lt;br /&gt;
|(Optional) Integer – Specifies the offset adjustment of any text along the horizontal X axis. The text is centered along the axis and can be shifted left or right via this attribute, with positive values shifting to the right and negative values shifting left. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|yoffset&lt;br /&gt;
|(Optional) Integer – Specifies the offset adjustment of any text along the vertical Y axis. The text is centered along the axis and can be shifted up or down via this attribute, with positive values shifting downward and negative values shifting upward. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_incrementer&amp;quot; Element{{anchor|incrementer}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_incrementer&amp;quot; element defines the facets of a style for incrementer portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|(Optional) background&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the background. If empty, the portal has no background and is drawn transparently. Default: Empty.&lt;br /&gt;
{{note}}If a background bitmap is specified, the incrementer size is dictated by the dimensions of the bitmap. If not specified, then the dimensions must be specified via the &amp;quot;fullwidth&amp;quot; and &amp;quot;fullheight&amp;quot; attributes.&lt;br /&gt;
|-&lt;br /&gt;
|fullwidth&lt;br /&gt;
|(Optional) Integer – Specifies the fixed width to utilize for all incrementers assigned this style. If &amp;quot;0&amp;quot;, a background must be specified to dictate the dimensions. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fullheight&lt;br /&gt;
|(Optional) Integer – Specifies the fixed height to utilize for all incrementers assigned this style. If &amp;quot;0&amp;quot;, a background must be specified to dictate the dimensions. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|textleft&lt;br /&gt;
|Integer – Specifies the left edge of the region in which text is drawn within the incrementer.&lt;br /&gt;
|-&lt;br /&gt;
|texttop&lt;br /&gt;
|Integer – Specifies the top edge of the region in which text is drawn within the incrementer.&lt;br /&gt;
|-&lt;br /&gt;
|textwidth&lt;br /&gt;
|Integer – Specifies the width of the region in which text is drawn within the incrementer.&lt;br /&gt;
|-&lt;br /&gt;
|textheight&lt;br /&gt;
|Integer – Specifies the height of the region in which text is drawn within the incrementer.&lt;br /&gt;
|-&lt;br /&gt;
|plusup&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;+&amp;quot; button in its &amp;quot;up&amp;quot; state.&lt;br /&gt;
|-&lt;br /&gt;
|plusdown&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;+&amp;quot; button in its &amp;quot;down&amp;quot; state.&lt;br /&gt;
|-&lt;br /&gt;
|plusoff&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;+&amp;quot; button in its &amp;quot;up&amp;quot; state when the incrementer is disabled.&lt;br /&gt;
|-&lt;br /&gt;
|plusx&lt;br /&gt;
|Integer – Specifies the offset along the horizontal X axis where the &amp;quot;+&amp;quot; button is positioned within the overall incrementer portal.&lt;br /&gt;
|-&lt;br /&gt;
|plusy&lt;br /&gt;
|Integer – Specifies the offset along the vertical Y axis where the &amp;quot;+&amp;quot; button is positioned within the overall incrementer portal.&lt;br /&gt;
|-&lt;br /&gt;
|minusup&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;-&amp;quot; button in its &amp;quot;up&amp;quot; state.&lt;br /&gt;
|-&lt;br /&gt;
|minusdown&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;-&amp;quot; button in its &amp;quot;down&amp;quot; state.&lt;br /&gt;
|-&lt;br /&gt;
|minusoff&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used for the &amp;quot;-&amp;quot; button in its &amp;quot;up&amp;quot; state when the incrementer is disabled.&lt;br /&gt;
|-&lt;br /&gt;
|minusx&lt;br /&gt;
|Integer – Specifies the offset along the horizontal X axis where the &amp;quot;-&amp;quot; button is positioned within the overall incrementer portal.&lt;br /&gt;
|-&lt;br /&gt;
|minusy&lt;br /&gt;
|Integer – Specifies the offset along the vertical Y axis where the &amp;quot;-&amp;quot; button is positioned within the overall incrementer portal.&lt;br /&gt;
|-&lt;br /&gt;
|editable&lt;br /&gt;
|(Optional) Boolean – Indicates whether the incrementer value can be directly user-edited by clicking within the value region. Disabling this can be useful when the value does not correspond to what is displayed, such as when selecting a die type (e.g. d6, d8, d10). Default: &amp;quot;yes&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|scaleimage&lt;br /&gt;
|(Optional) Boolean – Indicates whether bitmaps included within encoded text are scaled ([[#scaling|see above]]). Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_chooser&amp;quot; Element{{anchor|chooser}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_chooser&amp;quot; element defines the facets of a style for chooser portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolor&lt;br /&gt;
|(Optional) Text – Color value to be used as the background in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;backcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background. If omitted, the &amp;quot;backcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|scaleimage&lt;br /&gt;
|(Optional) Boolean – Indicates whether bitmaps included within encoded text are scaled ([[#scaling|see above]]). Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_region&amp;quot; Element{{anchor|region}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_region&amp;quot; element defines the facets of a style for region portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|(Optional) background&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the background for the region. If empty, the portal has no background and is drawn transparently. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_table&amp;quot; Element{{anchor|table}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_table&amp;quot; element defines the facets of a style for table portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|(Optional) background&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the background for the table. If empty, the portal has no background and is drawn transparently. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|itemborder&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource to be used as a border around each individual item inside the table. If empty, no border is drawn. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|showgridhorz&lt;br /&gt;
|(Optional) Boolean – Indicates whether horizontal grid lines should be drawn between each item within the table. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|showgridvert&lt;br /&gt;
|(Optional) Boolean – Indicates whether vertical grid lines should be drawn between each item within the table. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridwidth&lt;br /&gt;
|(Optional) Integer – Thickness of the grid lines drawn between items within the table (in pixels). The thickness of both horizontal and vertical grid lines is always the same. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing grid lines in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). Default: &amp;quot;888888&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing grid lines. If specified, the default value for the &amp;quot;gridcolor&amp;quot; attribute is ignored. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_separator&amp;quot; Element{{anchor|separator}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_separator&amp;quot; element defines the facets of a style for separator portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|isvertical&lt;br /&gt;
|(Optional) Boolean – Indicates whether the separator is oriented vertically or horizontally. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|start&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used at the left/top end of the separator.&lt;br /&gt;
|-&lt;br /&gt;
|end&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used at the right/bottom end of the separator.&lt;br /&gt;
|-&lt;br /&gt;
|center&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used in the middle of the separator. This bitmap is tiled as necessary to fill the entire span of the separator.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_special&amp;quot; Element{{anchor|special}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_special&amp;quot; element defines the facets of a style for special portals. Due to its nature, there are no attributes for this element.&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;style_output&amp;quot; Element{{anchor|output}}==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;style_output&amp;quot; element defines the facets of a style for output portals. The complete list of attributes for this element is below. &lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|font&lt;br /&gt;
|Id – Unique id of the font resource to be used for the style.&lt;br /&gt;
|-&lt;br /&gt;
|textcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing text in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;textcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|textcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing text. If omitted, the &amp;quot;textcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolor&lt;br /&gt;
|(Optional) Text – Color value to be used as the background in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). If omitted, the &amp;quot;backcolorid&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|backcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used as the background. If omitted, the &amp;quot;backcolor&amp;quot; attribute must be specified. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|alignment&lt;br /&gt;
|(Optional) Set – Specifies how the text should be horizontally aligned within the portal width (for labels). Must be one of these values:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;left – Text is left-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;center – Text is centered within the portal.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;right – Text is right-aligned.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;left&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|(Optional) background&lt;br /&gt;
|Id – Unique id of the bitmap resource to be used as the background for tables. If empty, the portal has no background and is drawn transparently. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|itemborder&lt;br /&gt;
|(Optional) Id – Unique id of the bitmap resource to be used as a border around each individual item inside a table. If empty, no border is drawn. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|showgridhorz&lt;br /&gt;
|(Optional) Boolean – Indicates whether horizontal grid lines should be drawn between each item within a table. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|showgridvert&lt;br /&gt;
|(Optional) Boolean – Indicates whether vertical grid lines should be drawn between each item within a table. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridwidth&lt;br /&gt;
|(Optional) Integer – Thickness of the grid lines drawn between items within a table (in pixels). The thickness of both horizontal and vertical grid lines is always the same. Default: &amp;quot;1&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridcolor&lt;br /&gt;
|(Optional) Text – Color value to be used for drawing grid lines in the format &amp;quot;xxxxxx&amp;quot; ([[#colors|see above]]). Default: &amp;quot;888888&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|gridcolorid&lt;br /&gt;
|(Optional) Id – Unique id of the color resource to be used for drawing grid lines. If specified, the default value for the &amp;quot;gridcolor&amp;quot; attribute is ignored. Default: Empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what various &amp;quot;style&amp;quot; elements might look like. All default values are assumed for optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;style id=&amp;quot;label&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_label textcolor=&amp;quot;f0f0f0&amp;quot; font=&amp;quot;fntnormal&amp;quot; alignment=&amp;quot;center&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;edit&amp;quot; border=&amp;quot;sunken&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_edit textcolor=&amp;quot;d2d2d2&amp;quot; backcolor=&amp;quot;000000&amp;quot; font=&amp;quot;fntedit&amp;quot; alignment=&amp;quot;center&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;increment&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_incrementer textcolor=&amp;quot;f0f0f0&amp;quot; font=&amp;quot;fntincrsim&amp;quot;&lt;br /&gt;
      textleft=&amp;quot;13&amp;quot; texttop=&amp;quot;0&amp;quot; textwidth=&amp;quot;24&amp;quot; textheight=&amp;quot;20&amp;quot;&lt;br /&gt;
      fullwidth=&amp;quot;50&amp;quot; fullheight=&amp;quot;20&amp;quot;&lt;br /&gt;
      plusup=&amp;quot;incplusup&amp;quot; plusdown=&amp;quot;incplusdn&amp;quot; plusoff=&amp;quot;incplusof&amp;quot;&lt;br /&gt;
      plusx=&amp;quot;39&amp;quot; plusy=&amp;quot;0&amp;quot;&lt;br /&gt;
      minusup=&amp;quot;incminusup&amp;quot; minusdown=&amp;quot;incminusdn&amp;quot; minusoff=&amp;quot;incminusof&amp;quot;&lt;br /&gt;
      minusx=&amp;quot;0&amp;quot; minusy=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;/style_incrementer&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;action&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_action textcolor=&amp;quot;000088&amp;quot; font=&amp;quot;fntactbig&amp;quot;&lt;br /&gt;
      up=&amp;quot;actbigup&amp;quot; down=&amp;quot;actbigdn&amp;quot; off=&amp;quot;actbigof&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;/style_action&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;actbigup&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;button_big_up.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;actbigdn&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;button_big_down.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;actbigof&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;button_big_off.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;table&amp;quot; border=&amp;quot;brdsystem&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_table itemborder=&amp;quot;sunken&amp;quot; showgridhorz=&amp;quot;yes&amp;quot; gridcolor=&amp;quot;808080&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;checkbox&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_checkbox textcolor=&amp;quot;f0f0f0&amp;quot; font=&amp;quot;fntcheck&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;image&amp;quot; border=&amp;quot;brdsystem&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_image/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;menu&amp;quot; border=&amp;quot;sunken&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_menu font=&amp;quot;fntmenu&amp;quot; textcolor=&amp;quot;84c8f7&amp;quot; backcolor=&amp;quot;2a2c47&amp;quot;&lt;br /&gt;
      selecttext=&amp;quot;1414f7&amp;quot; selectback=&amp;quot;f0f0f0&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;separator&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_separator isvertical=&amp;quot;no&amp;quot;&lt;br /&gt;
      start=&amp;quot;sephorzsta&amp;quot; center=&amp;quot;sephorzmid&amp;quot; end=&amp;quot;sephorzend&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;sephorzsta&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;sep_horz_start.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;sephorzmid&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;sep_horz_middle.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;resource id=&amp;quot;sephorzend&amp;quot; isbuiltin=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;bitmap bitmap=&amp;quot;sep_horz_end.bmp&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/resource&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style id=&amp;quot;region&amp;quot; border=&amp;quot;brdsystem&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;style_region/&amp;gt;&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Edit_Element_(Data)&amp;diff=3060</id>
		<title>Edit Element (Data)</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Edit_Element_(Data)&amp;diff=3060"/>
		<updated>2013-11-05T00:49:07Z</updated>

		<summary type="html">&lt;p&gt;Michele: /* The &amp;quot;edit&amp;quot; Element */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|Kit Reference|Data File Reference|Portal Element (Data)}}&lt;br /&gt;
&lt;br /&gt;
==The &amp;quot;edit&amp;quot; Element==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;edit&amp;quot; element is used to allow the user to directly enter a value or text that is then saved into a field. This portal is ideal for allowing the user to enter names or descriptions, as well as entering a wide-ranging or arbitrary value. The complete list of attributes for this element is below.&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|field&lt;br /&gt;
|Id – Specifies the unique id of the field where the contents to be edited are both retrieved and stored. The field must exist within the pick/thing associated with the containing template. If this portal is not defined within a template, an edit portal is not allowed.&lt;br /&gt;
|-&lt;br /&gt;
|maxlength&lt;br /&gt;
|(Optional) Integer – Specifies the maximum number of characters that can be entered for this field. If zero, a numeric value will be edited. Default: &amp;quot;0&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|ismultiline&lt;br /&gt;
|(Optional) Boolean – Indicates whether the field should be edited as if it contains multi-line text. This attribute only applies to text-based edit portals. Default: &amp;quot;no&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|readonly&lt;br /&gt;
|(Optional) Boolean – Indicates whether the information within the portal can be edited by the user or is displayed as read-only. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|format&lt;br /&gt;
|(Optional) Set – Designates any special numeric formatting to be enforced for a value-based field. Must be one of these values:&lt;br /&gt;
&amp;lt;ul class=&amp;quot;sets&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;integer – The contents are edited as an integer value.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;float – The contents are edited as a floating-point value.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;any – No restrictions are imposed on the contents.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Default: &amp;quot;any&amp;quot;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|signed&lt;br /&gt;
|(Optional) Boolean – Indicates whether the user can specify a negative value when a value-based field is being edited. Default: &amp;quot;no&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|placeholdertext&lt;br /&gt;
|(Optional) – A hint describing what the user should enter. It will appear in the edit control when the control is empty.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates what an edit portal might look like. All default values are assumed for optional attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;portal id=&amp;quot;hair&amp;quot; style=&amp;quot;editNormal&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;edit field=&amp;quot;perHair&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/portal&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michele</name></author>
	</entry>
</feed>