[beta] Most NPCs that inherit from BaseHumanoid have identical stats

Issue #1 open
syntaxaire created an issue

Currently most characters that inherit from `BaseHumanoid` (most of the NPCs in the game) have the same stats. This is caused by the sValue attribute of the <stat> tag overriding any subsequent Value attributes of tags in children.

Example from ObjectBlueprints.xml:

  <object Name="BaseHumanoid" Inherits="Humanoid">
    <stat Name="Strength" sValue="14,1d3,(t)d1" />
    <stat Name="Agility" sValue="14,1d3,(t)d1" />
    <stat Name="Toughness" sValue="14,1d3,(t)d1" />
    <stat Name="Intelligence" sValue="14,1d3,(t)d1" />
    <stat Name="Willpower" sValue="14,1d3,(t)d1" />
    <stat Name="Ego" sValue="14,1d3,(t)d1" />
  </object>
  <object Name="ElderBob" Inherits="NPC">
    <stat Name="Intelligence" Value="26" />
    <stat Name="Willpower" Value="32" />
    <stat Name="Ego" Value="28" />
  </object>

Loading a new character in Joppa and wishing swap to Elder Irudad, then displaying his stats, shows stats derived from the first block of XML, not the second (stats are still boosted by level).

Comments (12)

  1. Log in to comment