Skeleton File Changes V3.1: Difference between revisions

From HLKitWiki
Jump to navigationJump to search
No edit summary
Line 21: Line 21:


===File: "advancement.core"===
===File: "advancement.core"===
Line 19: Added the "Notation" tag shown below.
<pre>
<value id="Notation"/>
</pre>
Line 160: Insert new logic to handle notation advancements at the start of the Eval script, as shown below.
<pre>
~if this advancement has an annotation, there is no user-selection, so build
~the name from our pieces and we're done
if (tagis[Advance.Notation] <> 0) then
  perform gizmo.child[advDetails].setfocus
  field[livename].text = field[name].text & ": " & focus.field[advUser].text
  done
  endif
</pre>


===Next===
===Next===

Revision as of 05:23, 19 February 2009

Context: HL Kit &#133; Kit Reference &#133; Skeleton Data File Revision History 

File: "actor.str"

Line 163: Change the reference to the "trtLeft" field to "trtUser".

Line 221: Replace the Eval script with the revised script below.

<eval index="1" phase="Final" priority="1000"><![CDATA[
  ~if no damage has been incurred, assign a tag to indicate that state
  if (field[acHPNow].value >= field[acHPMax].value) then
    perform hero.assign[Hero.NoDamage]

  ~if the hero is dead or otherwise out of combat, indicate that state
  elseif (field[acHPNow].value = 0) then
    perform hero.assign[Hero.Dead]
    endif
  ]]></eval>

File: "advancement.core"

Line 19: Added the "Notation" tag shown below.

<value id="Notation"/>

Line 160: Insert new logic to handle notation advancements at the start of the Eval script, as shown below.

~if this advancement has an annotation, there is no user-selection, so build
~the name from our pieces and we're done
if (tagis[Advance.Notation] <> 0) then
  perform gizmo.child[advDetails].setfocus
  field[livename].text = field[name].text & ": " & focus.field[advUser].text
  done
  endif

Next