That code works great. I made a couple of tiny changes for what I wanted but yeah, thanks heaps!
It's kinda frustrating how close it looked like I was to solving this myself and just not knowing what I was doing wrong.
Pre-levels, 4999
Code:
~ If we are under level 3 don't do anything as we will cause errors
~ Once we have three classes then we can modify it down to two.
doneif (hero.tagcount[Classes.?] < 3)
~ Test to see if this does anything useful
var nHitDice as number
var nClasses as number
var nGestalt as number
var iX as number
nHitDice = hero.tagcount[Hero.HitDice]
nClasses = hero.tagcount[Classes.?]
nGestalt = hero.tagcount[Classes.S2Gestalt]
nHitDice = nHitDice - (nGestalt * 2)
nClasses = nClasses - (nGestalt * 2)
perform delete[Classes.S2Gestalt]
perform hero.pulltags[Classes.?]
perform hero.delete[Classes.?]
iX = 0
while (iX < nClasses)
iX += 1
perform hero.assign[Classes.S2Gestalt]
loop
Pre-levels 5001
Code:
~ If we are under level 3 don't do anything as we will cause errors
~ Once we have three classes then we can modify it down to two.
doneif (hero.tagcount[Classes.?] < 3)
~ Test to see if this does anything useful
perform hero.delete[Classes.?]
perform hero.pushtags[Classes.?]
perform delete[Classes.?]
Really I should just stop here for now. Maybe once I get better at Hero Lab programming I'll try to fix the issue with the incorrect level showing for the mouseinfo section.
Thanks for the help everyone. I really do appreciate it.