TheGenerator says:
Perhaps there's a way to do it with some CSS code shenanigans, but I've never tried it. I might give it a try when I have some time this week :)
My first idea is to make 10 (or more) boxes and hide the unused ones based on the level number. No idea if it would work.
Great minds! I had a similar idea, but couldn't make it work. There's so many CSS tricks though, many of which I don't know, maybe you can find a solution that works.
In the meantime, I have an alternate solution. It's not perfect, but might work for you, MaJunior. It depends a bit on why you like the checkboxes. If it's because of the visual, then I think my solution will work for you. You edit the "Current" number in place and it adjusts the visual representation. If it's the "clicking" aspect for easy adjustment, then my second solution might work for you but it's a bit less elegant. Basically it uses checkboxes as a toggle, and then translates that to my custom visual and enforces a max so if you click too many checkboxes you get a warning and you don't get extra HD.
It looks like this:
If the toggle is set beyond the max, it looks like this:
Here's the code:
[f=display:none]
This code is necessary for the visual effect, but is not displayed.
[_zero=]
[_onew=βͺ]
[_twow=βͺβͺ]
[_threew=βͺβͺβͺ]
[_fourw=βͺβͺβͺβͺ]
[_fivew=βͺβͺβͺβͺβͺ]
[_sixw=βͺβͺβͺβͺβͺβͺ]
[_sevenw=βͺβͺβͺβͺβͺβͺβͺ]
[_eightw=βͺβͺβͺβͺβͺβͺβͺβͺ]
[_ninew=βͺβͺβͺβͺβͺβͺβͺβͺβͺ]
[_tenw=βͺβͺβͺβͺβͺβͺβͺβͺβͺβͺ]
[_oner=π΄]
[_twor=π΄π΄]
[_threer=π΄π΄π΄]
[_fourr=π΄π΄π΄π΄]
[_fiver=π΄π΄π΄π΄π΄]
[_sixr=π΄π΄π΄π΄π΄π΄]
[_sevenr=π΄π΄π΄π΄π΄π΄π΄]
[_eightr=π΄π΄π΄π΄π΄π΄π΄π΄]
[_niner=π΄π΄π΄π΄π΄π΄π΄π΄π΄]
[_tenr=π΄π΄π΄π΄π΄π΄π΄π΄π΄π΄]
[_maxwarn=β Toggle Above MAX β]
[_blank=]
[/f]
[f=h3]Visual Solution Only[/f]
Level: [_lev=5]
[table="compact ht"]
Current | Max | Hit Dice
[_hd=3] | [_$=lev] | [_$=(min(hd,lev)==1?oner:(min(hd,lev)==2?twor:(min(hd,lev)==3?threer:(min(hd,lev)==4?fourr:(min(hd,lev)==5?fiver:(min(hd,lev)==6?sixr:(min(hd,lev)==7?sevenr:(min(hd,lev)==8?eightr:(min(hd,lev)==9?niner:(min(hd,lev)==10?tenr:zero))))))))))][_$=(lev-min(hd,lev)==1?onew:(lev-min(hd,lev)==2?twow:(lev-min(hd,lev)==3?threew:(lev-min(hd,lev)==4?fourw:(lev-min(hd,lev)==5?fivew:(lev-min(hd,lev)==6?sixw:(lev-min(hd,lev)==7?sevenw:(lev-min(hd,lev)==8?eightw:(lev-min(hd,lev)==9?ninew:(lev-min(hd,lev)==10?tenw:zero))))))))))]
[/table]
[f=h3]Additional Toggle Solution[/f]
Level: [_lev=5]
Toggle: [_hd=3/10] ([_$=hd]/10)
[f=color:red bold][_$=(hd>lev?maxwarn:blank)][/f]
[table="compact ht"]
Current | Max | Hit Dice
[_$=min(hd,lev)] | [_$=lev] | [_$=(min(hd,lev)==1?oner:(min(hd,lev)==2?twor:(min(hd,lev)==3?threer:(min(hd,lev)==4?fourr:(min(hd,lev)==5?fiver:(min(hd,lev)==6?sixr:(min(hd,lev)==7?sevenr:(min(hd,lev)==8?eightr:(min(hd,lev)==9?niner:(min(hd,lev)==10?tenr:zero))))))))))][_$=(lev-min(hd,lev)==1?onew:(lev-min(hd,lev)==2?twow:(lev-min(hd,lev)==3?threew:(lev-min(hd,lev)==4?fourw:(lev-min(hd,lev)==5?fivew:(lev-min(hd,lev)==6?sixw:(lev-min(hd,lev)==7?sevenw:(lev-min(hd,lev)==8?eightw:(lev-min(hd,lev)==9?ninew:(lev-min(hd,lev)==10?tenw:zero))))))))))]
[/table]
Note: the code goes to a max of Level 10. If you need higher you can try to expand it yourself or let me know and I can expand it.