View Single Post
tekknowkub
Junior Member
 
Join Date: Mar 2014
Location: Milwaukee, WI
Posts: 20

Old October 30th, 2022, 04:06 PM
Quote:
Originally Posted by ploturo View Post
In case it helps, the line in the script that reads

is calling a procedure that the original Company of Dragons datafiles added to Herolab, and you should be able to view the script for that procedure with the editor to see exactly how it is getting or calculating the variables it uses.

Open the editor, and in the "General" tabs there is a "*Procedure" tab. Hit the "New Copy" button and choose the entry for "DracHero" in that list, and you will be able to read the script in the new copy you make.

You can't edit the original DracHero procedure used by the Company of Dragons data files, but sometimes it is helpful to see the code being used.
ploturo, Thank you for this I had no idea how to find it. I can do minor edits but I am not very experienced in creating new HL classic content. Looks like its just calculating how many Draconic Hero archetypes levels have been taken.

Here is the Procedure DracHero


~ calculate Draconic Hero level

var HeroLev as number
HeroLev = 0

if (hero.tagis[ClassVary.arAlcDraco] <> 0) then
HeroLev += #levelcount[Alchemist]
endif
if (hero.tagis[ClassVary.arBbnDraco] <> 0) then
HeroLev += #levelcount[Barbarian]
endif
if (hero.tagis[ClassVary.arBrdDraco] <> 0) then
HeroLev += #levelcount[Bard]
endif
if (hero.tagis[ClassVary.arCavDraco] <> 0) then
HeroLev += #levelcount[Cavalier]
endif
if (hero.tagis[ClassVary.arClrDraco] <> 0) then
HeroLev += #levelcount[Cleric]
endif
if (hero.tagis[ClassVary.arDrdDraco] <> 0) then
HeroLev += #levelcount[Druid]
endif
if (hero.tagis[ClassVary.arFtrDraco] <> 0) then
HeroLev += #levelcount[Fighter]
endif
if (hero.tagis[ClassVary.arGunDraco] <> 0) then
HeroLev += #levelcount[Gunsling]
endif
if (hero.tagis[ClassVary.arInqDraco] <> 0) then
HeroLev += #levelcount[Inquisito]
endif
if (hero.tagis[ClassVary.arMagDraco] <> 0) then
HeroLev += #levelcount[Magus]
endif
if (hero.tagis[ClassVary.arMnkDraco] <> 0) then
HeroLev += #levelcount[Monk]
endif
if (hero.tagis[ClassVary.arOraDraco] <> 0) then
HeroLev += #levelcount[Oracle]
endif
if (hero.tagis[ClassVary.arPalDraco] <> 0) then
HeroLev += #levelcount[Paladin]
endif
if (hero.tagis[ClassVary.arRgrDraco] <> 0) then
HeroLev += #levelcount[Ranger]
endif
if (hero.tagis[ClassVary.arRogDraco] <> 0) then
HeroLev += #levelcount[Rogue]
endif
if (hero.tagis[ClassVary.arSorDraco] <> 0) then
HeroLev += #levelcount[Sorcerer]
endif
if (hero.tagis[ClassVary.arSumDraco] <> 0) then
HeroLev += #levelcount[Summoner]
endif
if (hero.tagis[ClassVary.arTasDraco] <> 0) then
HeroLev += #levelcount[Taskshape]
endif
if (hero.tagis[ClassVary.arWitDraco] <> 0) then
HeroLev += #levelcount[Witch]
endif
if (hero.tagis[ClassVary.arWizDraco] <> 0) then
HeroLev += #levelcount[Wizard]
endif
tekknowkub is offline   #6 Reply With Quote