View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old September 8th, 2019, 04:15 PM
Hmm... and either I misunderstand something about field histories or I implemented this incorrectly. My current SkillBonus:
Code:
<!-- SkillBonus component -->
<component
  id="SkillBonus"
  name="Starting Skill Bonus"
  autocompset="no"
  panellink="basics">
  
  <field
    id="skbNamCst"
    name="Custom Name"
    type="user"
    maxlength="20"/>
    
  <field
    id="skbName"
    name="Name"
    type="static"
    maxlength="20"
    maxfinal="20">
    <finalize><![CDATA[
      if (this.field[skbNamCst].isempty = 0) then
        @text = field[skbNamCst].text
      elseif (this.isroot <> 0) then
        @text = this.root.field[name].text
      else
        @text = this.field[name].text
      endif
      ]]></finalize>
    </field>

  </component>
My code for updating the skill bonus is:
Code:
perform field[usrChosen1].chosen.field[trtBG].modify[+,bonus,field[skbName].text]
And yet, when I look at my mouseover, defined as follows:
Code:
<mouseinfo mousepos="middle+above"><![CDATA[
    @text = field[trtBG].history[", "] & "{BR}" & field[trtUser].value & " spent in creation"
    ]]></mouseinfo>
I see something like "+2 Skill Bonus: Dodge, +1 Skill Bonus: Dodge" instead of "+2 Crime Lord, +1 Ob'enn" like I might expect from the source of the skill bonuses.

Last edited by Duggan; September 8th, 2019 at 05:12 PM.
Duggan is offline   #3 Reply With Quote