• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

class not found?

TCArknight

Well-known member
All,

I've got:
<thing id="cHelpDeH" name="Dedicated Hero" compset="ClassHelp" uniqueness="unique">
<fieldval field="cSpecName" value="Talents"/>
<fieldval field="cSpecSing" value="Talent"/>
<fieldval field="cAbbr" value="DeH"/>
<fieldval field="cHDSides" value="6"/>
<fieldval field="cSkills" value="5"/>
<arrayval field="cBonFtTot" index="1" value="1"/>
<arrayval field="cBonFtTot" index="3" value="2"/>
<arrayval field="cBonFtTot" index="5" value="3"/>
<arrayval field="cBonFtTot" index="7" value="4"/>
<arrayval field="cBonFtTot" index="9" value="5"/>
<arrayval field="cCustTot" index="0" value="1"/>
<arrayval field="cCustTot" index="2" value="2"/>
<arrayval field="cCustTot" index="4" value="3"/>
<arrayval field="cCustTot" index="6" value="4"/>
<arrayval field="cCustTot" index="8" value="5"/>
<usesource source="D20MCore" parent="D20Mod" name="D20 Modern - Core Rules"/>
<tag group="ClassSkill" tag="kTumble" name="Tumble" abbrev="Tumble"/>
<tag group="Classes" tag="DedicatH" name="Dedicated Hero" abbrev="Strong Hero"/>
<tag group="cAttack" tag="Medium" name="Medium" abbrev="Medium"/>
<tag group="cFort" tag="Poor" name="Poor" abbrev="Poor"/>
<tag group="cRef" tag="Medium" name="Medium" abbrev="Medium"/>
<tag group="cWill" tag="Poor" name="Poor" abbrev="Poor"/>
<tag group="psiClDisc" tag="None" name="None" abbrev="None"/>
<tag group="psiClass" tag="AddNewTag" name=" Specify tag!" abbrev=" Specify tag!"/>
<tag group="BonusFor" tag="ffFastH" name="Fast Hero" abbrev="Fast Hero"/>
<tag group="ClassSkill" tag="Profession" name="All Profession Skills" abbrev="All Profession Skills"/>
<tag group="ClassSkill" tag="kBalance" name="Balance" abbrev="Balance"/>
<tag group="ClassSkill" tag="kCraftMech" name="Craft: Mechanical" abbrev="Craft: Mechanical"/>
<tag group="ClassSkill" tag="kDrive" name="Drive" abbrev="Drive"/>
<tag group="ClassSkill" tag="kEscape" name="Escape Artist" abbrev="Escape Artist"/>
<tag group="ClassSkill" tag="kHide" name="Hide" abbrev="Hide"/>
<tag group="ClassSkill" tag="kKnowEvent" name="Knowledge: Current Events" abbrev="Knowledge: Current Events"/>
<tag group="ClassSkill" tag="kKnowPop" name="Knowledge: Popular Culture" abbrev="Knowledge: Popular Culture"/>
<tag group="ClassSkill" tag="kKnowStree" name="Knowledge: Streetwise" abbrev="Knowledge: Streetwise"/>
<tag group="ClassSkill" tag="kMoveSil" name="Move Silently" abbrev="Move Silently"/>
<tag group="ClassSkill" tag="kPilot" name="Pilot" abbrev="Pilot"/>
<tag group="ClassSkill" tag="kRWLang" name="Read/Write Language" abbrev="Read/Write Language"/>
<tag group="ClassSkill" tag="kRide" name="Ride" abbrev="Ride"/>
<tag group="ClassSkill" tag="kSleight" name="Sleight of Hand" abbrev="Sleight of Hand"/>
<tag group="ClassSkill" tag="kSpeakLang" name="Speak Language" abbrev="Speak Language"/>
<bootstrap thing="fCSkill3"></bootstrap>
<bootstrap thing="fCFeat1"></bootstrap>
<bootstrap thing="fWepSimple"></bootstrap>
<bootstrap thing="xClassDef"></bootstrap>
<bootstrap thing="xReputatn"></bootstrap>
<bootstrap thing="xActionPts"></bootstrap>
<bootstrap thing="fOccupatn"></bootstrap>
<bootstrap thing="fCSkill1"></bootstrap>
<bootstrap thing="fCSkill2"></bootstrap>
<eval phase="PreAttr" priority="10000">~ Class defense
~ As this varies for each class, the formula may change

var classdef as number
var mylevel as number
classdef = 0
mylevel = #levelcount[cDedicatH]

classdef = (mylevel) / 2
classdef = round(classdef, 0, -1)
classdef += 3

hero.child[xClassDef].field[Value].value += classdef</eval>
<eval phase="PreAttr" priority="10000" index="3">~ Action Points

var myAP as number
var mylevel as number
myAP = 0
mylevel = #levelcount[cFastH]

myAP = (mylevel) / 2
myAP = round(myAP, 0, -1)

myAP += 5

hero.child[xActionPts].field[Value].value += myAP</eval>
<eval phase="PreAttr" priority="10000" index="2">~ Reputation

var myrep as number
var mylevel as number
myrep = 0
mylevel = #levelcount[cFastH]

myrep= (mylevel) / 2
myrep = round(myrep, 0, -1)

hero.child[xReputatn].field[Value].value += myrep</eval>
</thing>
<thing id="cDedicatH" name="Dedicated Hero" compset="ClassLevel" maxlimit="10">
<tag group="ClassType" tag="Normal"/>
<bootstrap thing="cHelpDeH"></bootstrap>
<link linkage="helper" thing="cHelpDeH"/>
</thing>

the #levelcount[cDedicatH] gives me an error:

Syntax error in 'eval' script for thing 'cHelpDeH' (Eval Script '#1') on line 7
-> Tag 'Classes.cDedicatH' not defined

As you can see, I've got the cDedicatH defind.

Ideas on what gives?
 
NM. I realized what was wrong. Somehow this line got changed:

<tag group="Classes" tag="DedicatH" name="Dedicated Hero" abbrev="Strong Hero"/>

I made that cDedicatH and everything seems to work fine..
 
Back
Top