Junior Member
Join Date: Mar 2021
Location: New Zealand
Posts: 18
|
Background info: I'm trying to fix an issue with the Fused Summoner where it doesn't give the correct base attack bonus for wearing the Eidolon. I haven't even altered the code for cSumFusEid Id yet, and I'm getting an error when compiling.
I've run into an error regarding a script already implemented in Herolab. When I duplicate the cSumFusEid Id in Herolab and run compile, it gives me this error: Code:
Non-existent sortset 'explicit' referenced by script Code:
~ build up a description of our Eidolon and include that in our description foreach pick in gizmo from BaseRace field[CustDesc].text &= eachpick.field[name].text & "{br}" field[CustDesc].text &= hero.tagabbrevs[Alignment.?,""] & " " ~This only handles the sizes that are available to an Eidolon, not the ~full range of sizes in the game if (eachpick.field[rSizeMod].value = -1) then field[CustDesc].text &= "Small " elseif (eachpick.field[rSizeMod].value = 0) then field[CustDesc].text &= "Medium " elseif (eachpick.field[rSizeMod].value = 1) then field[CustDesc].text &= "Large " elseif (eachpick.field[rSizeMod].value = 2) then field[CustDesc].text &= "Huge " endif field[CustDesc].text &= "outsider{br}" nexteach var ac as number ac = field[abValue3].value + 10 field[CustDesc].text &= "{b}AC{/b} " & ac & " (" & signed(field[abValue3].value) & " natural){br}" var hpbonus as number var hdcount as number foreach pick in gizmo from BaseHitDie hpbonus += eachpick.field[cHPBonus].value hdcount += 1 nexteach field[CustDesc].text &= "{b}hp{/b} " & field[trkMax].value & " (" & hdcount & "d10" & signed(hpbonus) & "){br}" var attrtext as string var attrabbrev as string foreach pick in gizmo from BaseAttr sortas explicit ~ the abbreviation is stored in ALL CAPS, and we want title case attrabbrev = eachpick.field[aAbbr].text attrabbrev = left(attrabbrev,1) & right(lowercase(attrabbrev),2) attrtext = splice(attrtext,"{b}" & attrabbrev & "{/b} " & eachpick.field[aFinalVal].value,", ") nexteach field[CustDesc].text &= attrtext & "{br}" field[CustDesc].text &= "{b}Base Atk{/b} " & signed(field[abValue].value) & "{br}" var evoltext as string foreach pick in gizmo from RaceCustom where "!Hide.All" evoltext = splice(evoltext,eachpick.field[livename].text,", ") nexteach field[CustDesc].text &= "{b}Evolutions{/b} " & evoltext ~ now that we're done building it, append it to our description (the ~ printed output also uses this text, but it uses the raw CustDesc field) #appenddesc[cSumFusEid,"{b}Eidolon{/b}{br}" & field[CustDesc].text] ~ display our current HP as part of our name field[livename].text &= " (" & field[trkLeft].value & "/" & field[trkMax].value & " HP)" Last edited by Arkadious; September 8th, 2021 at 05:36 PM. |
#1 |
|
|