Tabletop Simulator

Tabletop Simulator

HP Bar Writer
160 Comments
Rebe 26 Jan @ 3:45am 
HP bar and secondary bar glitch into each other (overlap), is that a know problem and if yes ,is there a way to solve that issue?
Zythe 9 Jun, 2024 @ 1:04pm 
Am I dumb? I don't understand how this works at all
Outlaw Wolf 2 Apr, 2022 @ 2:40am 
this Tool has been updated here https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2454472719 as i think this creator has gone quiet.
guardianangelkuro 22 Mar, 2022 @ 5:49pm 
Hey so some of my token's bars are very very very VERY thin, how do i fix that?
gfeather 14 Mar, 2022 @ 12:09pm 
It's a great tool.The third resource bar (yellow) doesn't hide when you set it visible for black only.
It would be nice:
-if you could rotate the roll of the hp bars so they are viewable from overhead rather than the side.
-For the character viewer window, include initiative tracking that would order the characters according to initiative
- a setting directly on the large character board that would allow you to manipulate the translation of the hp bar. Sometimes the bar ends up inside the figurine which is impossible click and get to the settings. Or a button that will auto bring up an offset height menu of all settings for figurines
-Support for hovering over a status effect and bringing up a tooltip / text then all the effects of the status effect will pop up.
-Also, perhaps an area on the character board that will list all status effects along with their effect (+4 whatever, 1/2 movement etc)
Just some thoughts :).
Bladecom 8 Feb, 2022 @ 6:09am 
I wanted to say thank you for your work on TTS, I keep finding myself learning code from several of your projects to help improve my own projects. sub/find, getLuaScript(), setLuaScript() were things I didn't know existed in the api, and just opened a lot of doors and saved me so much time.

Probably not your intention with this mod or other projects, but I've really learned a lot by your examples.
The_Journeyman 25 Jan, 2022 @ 5:04am 
Got it fixed. Just added a small function to each figure to reset the max health and current health to whatever I need.
The_Journeyman 19 Jan, 2022 @ 2:09pm 
Hi, I've incorporated your mod into a scripted setup on a mod I am working on. Really love what you have done here. (your other scripted mods are first class too, way above my level)
I wanted to be able to adjust the health levels on the fly, and can see it uses the table health{} but just changing that table isnt enough to change the HP bar. Is there an easy way to do it? I know you did it in some of your mods but I'm struggling to reverse engineer your code...
Radimir Winnin 7 Jan, 2022 @ 1:50pm 
Adjusting heightModifier for either a model or the hp tool itself does not adjust the height
Arukādo 6 May, 2021 @ 9:41am 
Hello Kijan!

I am the creator of Yu-Gi-Oh! Dungeon Dice Monsters mod on TTS.
First I want to thank you for your awesome work on this mod.

I am planning to use your mod on DDM, but I would like to request you some changes on it.

- Could you, if possible, add the 2 other bar values and controls in the Bar Panel?
- Could you explain how to change the name and colors of the bars so I can put HP/ATK/DEF?

In YGO DDM monsters have HP, ATK and DEF stats, and it could be awesome for my mod if everything was synced on the panel!

Thanks in advance for your reply!
Syntax 28 Apr, 2021 @ 11:34am 
LOVE this mod! Any chance you'd consider revisiting this mod to make the conditions stackable? Or has anybody else figured out how to make conditions stackable?
SiN Fury 7 Apr, 2021 @ 6:38pm 
I really like a lot of the options on here. Is there any way to add number tokens for different models of the same type (like on Gloomhaven). So if I have 4 of the same model, I know which one is 1, 2, 3 and 4.
Agonos 21 Mar, 2021 @ 9:42am 
Hello. Very good mod but you can't add options like for example in this mod? :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1694376433
victorhurtado 17 Mar, 2021 @ 12:15pm 
Hello there!

The script is amazing, but it has two serious issue.

1) If you toggle for visibility only for black and switch to another color, you can still see the bars and text. Some people have reported on steam can still see the bars even if they change visibility. The status of the bars and text doesn't seem to update even if you reload the game.
2) The second resource bar always stays visible regardless of the options chosen
[ProN00b] Christmas 10 Mar, 2021 @ 6:57pm 
this is great, how difficult would it be to track HP and Mana as two bars on the standee :D
Sued 4 Mar, 2021 @ 9:45am 
I would love an option to hide the numbers and have only the HP bar.
Congratulations, this mod is amazing!
garbadthestrong 19 Feb, 2021 @ 3:22pm 
Just found this awesome health/status bar maker. Has everything i want and more. Your link in the comments to the vid to make custom tiles worked like a charm. Thanks a bunch man.
machineguy 10 Feb, 2021 @ 9:17pm 
Hi, I was wondering if you could stop the panel from getting squished when the object has been scaled?
Outlaw Wolf 4 Feb, 2021 @ 1:26am 
Hello, can anyone help me with this. I love this tool but my biggest problem is the "only black can see the bars" does not work for me. I don’t know if it is user error or not. My players for my dnd game don’t like to know the enemy hp and the bars are always visible and even show up though my hidden DM area and are a dead give away.

Also my players track their own HP outside the game but I use the HP tracker for condition markers for their figurines. Is there a way to get rid of the bars all together so it can just be a Conditions marker for them and not show up an empty bar?

thank you kindly for your time
MoonkeyMod 16 Dec, 2020 @ 9:24am 
@Kijan, thank you for such a great mod, are you continuing to support and develop it?
Kisho 8 Oct, 2020 @ 12:53am 
@Kijan there's a bug in the "extra" bar. It can only write 10/10.
KappaLord 24 Sep, 2020 @ 10:01pm 
@Kaze Kitsune
Continue from the last part.

So with this reason, one approach to fix the status effects is to add each of the status image with the correct name(this depends on the code) to the object's custom UI assets. This could be automated by scripts to if you a familiar with it.

It's a long time that I figure out there is a problem TTS have issues sometimes loading images. So if above isn't work, then maybe also try applying it to the global object. Or I am missing a rendering script to handle the image issue.

Hope this helps.
KappaLord 24 Sep, 2020 @ 10:01pm 
@Kaze Kitsune
This is from experience, for objects to load image properly in any map the images have to be in the custom UI Assets of the object itself or else sometimes you will run into issues.

In tabletop simulator when you right click on a object there is a scripting option if you are the host, each object in tabletop simulator has their own script and also parameters or data stored in objects so that the objects could locally access those data itself. When opening the scripting option after the scripting UI appears, you can see on the topright beside the X there is a tool bar like button. That is the custom UI assets for that object.
Kaze Kitsune 24 Sep, 2020 @ 9:09pm 
Has anyone ran into an issue where, the mod works 100% with status effects, but when you load the character into a Gloomhaven game, the status effects show a White Box instead of the image of the status ailment? If so, is there a fix?
jpmarcotte 28 Aug, 2020 @ 8:21am 
Though I did discover a new bug. If the Extra/Resource bars are visible when you save, when you load again, they overlap the health bar. Workaround is to hide Extra/Resource on save, then reveal on load. (It can be fixed by doing this as well)
jpmarcotte 28 Aug, 2020 @ 8:01am 
Figured out my issue (or at least a workaround). The other minis were listed as "Generic" under the Custom menu button. Changing them to `Figurine` and clicking `Import` before dropping them onto the pad will load the scripting onto the model, but the bars still don't appear for some reason. After that, the game just needs to be saved and reloaded (either manually, or through the Save & Play part of the Scripting Menu) and then the bars appear.
Feraga 21 Aug, 2020 @ 4:50pm 
any way to change the size/scale of the bars/text the game i play the bars are difficult to see, and the numbers inside them... forget it.... or maybe i need new glasses O.O i have been browsing through the scripting code, but i am no good at it at all. LOVE this mod btw. <3
jpmarcotte 21 Aug, 2020 @ 4:16pm 
This is working great on some figures, but not others. I'm specifically trying to use it with this mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1371901280 and it works on the monster figures, but not the hero figures. Anyone able to help me figure out why?
raultiberiu 15 Jun, 2020 @ 2:45pm 
The bar is located at the foot of my miniature instead of above.
This is a bug.
Imperetor Juber the werewolf! 27 Apr, 2020 @ 2:28pm 
Is there a way to remove the HP bar from a specific Figure?
Plothos 25 Apr, 2020 @ 12:12pm 
Any way this could be made to work for tokens and tiles?
_Nick 18 Apr, 2020 @ 8:06am 
Can you please make it so that the panels are not classified as "Board"?
Board objects are visible to all players so i cant hide the HP panel from them even if the healthbars are hidden. I really love the idea behind your mod but as it is right now it cant be used for its intended purpose.
Frankie Fire 10 Apr, 2020 @ 5:15am 
Hi there! This is awesome! Only things I miss is the option to hide the health bar itself as well, to still keep track of it on the panel but hidden to the players, and only show them the "extra" bar for an abstract health level (healthy, injured, dying etc., no text, just values 5 to 1). Also, the possibility to manage all 3 bars on the panel would be fantastic and make up for the health bar showing all the time.
Still, fanstastic work!
Kijan  [author] 2 Apr, 2020 @ 8:21am 
i will check this mod in the future... atm i am busy with Gloomhaven and Frosthaven. But i will do my best then ;)
TrytoTakeOvertheWorld 2 Apr, 2020 @ 7:45am 
Hi - is there a way to make it so opposite sides of the table can see the text of the HP bar? It's the mirror image which makes it hard to play against someone.
Goodie 23 Feb, 2020 @ 8:25pm 
Was having issues loading condition images on figures when the HP Bar Writer object wasn't on the table, can add object.UI.setCustomAssets(self.UI.getCustomAssets()) to line 600 of the HP Bar Writer script to have it add the ui assets to each model individually.
xinlli 19 Feb, 2020 @ 3:37am 
hi,with this"when you now drop an object with the name of the image, on a figure that was dropped on the Writer, it should appear over the Figure." can i change the image and how?i want to play descent with this mod....
Sadwick 9 Jan, 2020 @ 3:00am 
for now, not really ! I just tried again : it is functional the way it is on my previous version !

I will update eventually, when others features come in :)

Great year 2020 to you, and thanks ! :)
Kijan  [author] 8 Jan, 2020 @ 11:38pm 
@KappaLord
I will check it out

@Saint Fen
If it is working for you how you like it then dont update
there is no big change for you then
because if you want to update, you have to recreate the bars so you have to create new standees and drop them again on the writer
but you will not benefit from anything i think ... or do you have any issues?
Sadwick 8 Jan, 2020 @ 4:18pm 
Hey Kijan !! Big thanks and sorry, didnt saw your previous answer (about the 0/0 hidden status :) )

I just checked, the actual version I have of your mod (never update it) is still working for my status with dragged tokens (no H/H needed here) .. should i still update it? If so, how do I do that without breaking everything???

Or is the rule : if it aint break, dont update it !!!:p Thank you
KappaLord 5 Jan, 2020 @ 5:04pm 
An image of the Stackable Status

Imgur Link:
https://imgur.com/a/oRCnxZo
KappaLord 5 Jan, 2020 @ 12:30pm 
Hello Kijan,

It's an excellent work you got there.
Here I used your code and make a modified version, where(PasteBin Link Below):
1. The status you put on the figure could stack up showing "x1" to" xn", n is number of the status object you collide with the figure.
2. The UI Asset would load from the map's Global and save to the object, means that only uploading the image to Global could let the object get the UI Asset and save to it's local. This means no more reloading maps, where the UI will always show the normal image instead of white boxes.

Copy the code from PasteBin and paste it to a figure's lua script then you will see the effect(reload the figure is needed, to activate the script)

I used some of your code to make something, so I want to share with you what I've done here.
Also, this piece of code is for you to look at and add in the status stacking function if you want to your WorkShop of "HP Bar Writer".

Link here:
https://pastebin.com/2iz6Pka1
Kijan  [author] 4 Jan, 2020 @ 7:06am 
das wäre einfacher gewesen ;)
Generation 4 Jan, 2020 @ 2:20am 
Und warum schreib ich nicht auf Deutsch xD
Generation 4 Jan, 2020 @ 2:19am 
I rebuild the complete Table and now it works kind of... the hp bars and the ressource bars are sometime now not overlapsed but they are way apart from another... (copy,paste,delete did the job for now so the script seems to work but on my table the script is messed up...)
Kijan  [author] 4 Jan, 2020 @ 12:01am 
today i checked and wanted to work on it but i cant see any errors?
Maybe send me a save with the error so that i can see it or a video maybe?
i cant figure out what your problems are.
I can drop figurines on it and they have the bars on it.

@Saint Fen
I fixed it with 0/0 HP ;)
if you create a mini with 0 hp then the hp bar is not shown, but if you want to change something in the menu you have to show all hp bars atm because you cant click the hp bar for the menu ^^
Yatagarasu 3 Jan, 2020 @ 1:15pm 
Kijan, any progress on making the bars work again? :)
Kijan  [author] 16 Dec, 2019 @ 7:30am 
Sorry that have to do with a TTS update :( ... i will look into it when i have time ;)
Generation 12 Dec, 2019 @ 9:15am 
I hope the Creator can make it work again... Its really buggy on our Table. On the First Load all Player Figures are without Hp bars, the second hp bar goes in the red hp bar so that they overlapse... The Black Only Figures wont work anymore so that the Players can see the Hp Numbers...
The King 9 Dec, 2019 @ 8:53pm 
How do I even make this work? I am dropping figurines on the tool but nothing happens.