Tabletop Simulator

Tabletop Simulator

Character Sheet Template
229 条留言
pablo.gonzalez.2007 9 月 26 日 上午 6:27 
@kalez - when you modify the sheet you have to set disableSave to true, without it it will load from the saved data instead of pulling from the script. After editing turn the option to false again to enable saving
Poodlestrike 8 月 31 日 上午 5:34 
Hello - this sheet is extremely cool, but I'm struggling a bit with how time intensive it is to add a LOT of elements. It also seems to slow down considerably as I add more and more checkboxes & such. Is there any way to incorporate a loop function so I can add a whole bunch of elements in a line without having to have a separate entry for each?
kalez 6 月 9 日 上午 6:50 
So I have made my sheet and saved it, but I want several variations that have 1 different thing missing from what I added. And I guess I messed something up, because when I delete one number counter and then enable saving, the counter reappears. It is gone from the code, but there on the sheet. I don't understand why.
Dogsteeves 1 月 24 日 下午 5:17 
I am having trouble making the 2024 DND sheet
YoGGoH 2024 年 12 月 21 日 上午 4:07 
Hey, when I click on the Checkbox it shows chinese signs instead of the tick symbol. Can you please help how to fix that?
UKMasters 2024 年 9 月 28 日 下午 3:18 
Thank you for this. It's great. I've successfully added fields to one of the editable cards in my board game. I'm wondering if it's possible to apply the same fields to the other cards and define the "default" values for them. There are 100+ cards, so it would take a long time to do this manually!

I'd be grateful for any help you could provide
exhausted 2024 年 7 月 17 日 下午 12:18 
Thanks so much for making this and providing instructions on how to use it! I am however curious if it is possible to add a second page to the sheet? I've been tinkering with Monster of the Week sheets and it would be great if it was possible to do that!
SporeHarvest 2024 年 7 月 7 日 上午 9:22 
Hello in your object at the very bottom of it you have some code deeply indented. I do not know what the prurpose of it is. But it has caused me much trouble when trying to make a sheet to use on a tabble with one world. That bit of code at the end infects all items on the tabble and causes some stuff to break.

Please remove it so that anyone who tries to make any other sheet and use it with one world doesn't end up having the same frustrations.

Thank you for the tool and have a nice day.

P.S. Make sure you delete all other objects with the same code as well as it does cross infect.
Mr. Von Grimmsy 2024 年 6 月 14 日 上午 9:12 
Just started fiddling around with this, and it's pretty awesome so far - great job! :D

I had a question: Is there any way at all to have different fields react to each other's information..?

I think you may get where I'm going with this, but for example - I set my Strength to whatever, and then the sheet autopopulates the derived stats for to hit/damage bonus etc. based upon values I input elsewhere.

If this is possible, I 100% plan on making an insanely detailed AD&D 2e sheet with the help of your tool! :p03:
mooonmagic 2024 年 6 月 5 日 上午 8:37 
Just want to say, this is such a helpful, useful, and well-commented object.
kajislav 2024 年 5 月 25 日 上午 12:15 
Hi. I tried to use this tool to make a sheet and everything worked well, like i put all the text boxes and check boxes and counters where i wanted but during the game whenever i do some changes like filling the text box or marking the check box, they do not save for the future game . What am i doing wrong?
FREEDOM 2024 年 5 月 17 日 下午 7:00 
Cascading errors are fixed when you reload the table. Good to know.
FREEDOM 2024 年 5 月 17 日 下午 5:23 
Cascading errors after deleting the position helper tool. Will this go away upon reload or do I need to find its function and kill it?
Hamburger 2024 年 5 月 12 日 上午 6:45 
question: why does my character HAVE to buy groceries every day??
Dagr_Ryosh 2024 年 1 月 5 日 上午 8:33 
Thank you a lot for this.
Desperoni 2023 年 12 月 2 日 下午 11:43 
Just out of curiosity, how complicated would it be to add maximum and minimum values to the counters? Like if I don't want them to go lower than zero, or higher than ten?
eggdropsoap 2023 年 8 月 26 日 下午 5:12 
@Laminmammoth You saved the table and sheet at least once already with DisableSave = false, and now it’s stored in the sheet data and loading that when the table loads. That data can’t be removed easily, but you can easily remake a clean copy without that stored data: start a new custom sheet object, use the same image(s), then copy all the code from the tainted sheet into the remade sheet but ensure disableSave = true. Now save your table. Voilà, a fresh sheet with all your layout, but no saved data!

Remember: never save the table while disableSave = false until a sheet is 100% finished and ready to be used. 😊
talkativetoilet 2023 年 8 月 21 日 上午 9:06 
I've been having an issue with my second original sheet. Whenever I set DisableSave = false, it will automatically load the sheet information from the first sheet I created. Are there files I need to rename within the script editor, or is there a particular line of code that I have to tweak in the mod file to have different unique sheets? help pls
Gilbals!? 2023 年 8 月 17 日 下午 5:41 
This is really cool, but when I delete the position helper tool, I start getting cascading errors
Fredward 2023 年 7 月 29 日 上午 9:10 
Just wanted to say a massive thank you for this, I got my Shadowdark Char Sheets made in less than 2 hours. You're brilliant!:steamhappy:
eggdropsoap 2023 年 6 月 27 日 下午 7:18 
@MireskaSunbreeze It looks like it might be z-fighting: at that size, the textbox is more likely to visually clip into the surface of the object it's on when the camera is further away. Try setting the Y coordinate (middle one: pos = {x, y, z}) of the text field to a tiny bit larger. E.g., if it's currently 0.2, try 0.21 or 0.25 or 0.3.
Endain 2023 年 6 月 23 日 上午 9:49 
Hey guys i have a bug with the big textfield that i have strange artifacts in the font.
Here is a Screenshot from the bug: https://imgur.com/a/Wsyga9q .
Thanks for Help!
blissman2020 2023 年 5 月 30 日 上午 12:49 
I just wanted to say thank you, your code is well documented and easy to follow, and helped me make a custom scoresheet for my own personal game i'm working on!
Tourfaint 2023 年 4 月 5 日 下午 9:10 
Disregard, It was a font issue on my side, I just didn't have the fancy checkmark in my font.
Tourfaint 2023 年 4 月 4 日 下午 7:40 
The checkboxes dont seem to work for me, but thank you for this great piece of code
WombatCombat 2023 年 4 月 1 日 上午 12:33 
Managed to create a nice looking character sheet for the Spire - The City Must Fall TTRPG with this!

The only problem I'm having is the background image (a PDF character sheet converted to PNG using an online tool) seems to look 'off' due to the lighting as I try it out in different scenes. Anybody got a fix for this?
Konjirmos 2023 年 3 月 23 日 上午 9:17 
This made making character sheets sooooo easy and helped me create other assets as well. Huge thanks!
Lav 2023 年 3 月 16 日 下午 4:25 
Thx dude
Pizzamovies 2023 年 1 月 11 日 上午 5:48 
Instructions unclear. After fiddling with this for a solid 40 minutes i cant get anything to work. Its unclear what lines and brackets are needed to make the code work, or what needs to be deleted to remove a simple textbox.
Sometimes changing the default image causes the location tool to stop functioning.
VipreRX 2022 年 11 月 24 日 上午 3:54 
shinjox, Rectangular works just fine. I imagine that is just saying a circular or some other non-four-sided shape won't work.
shinjox 2022 年 11 月 23 日 下午 2:34 
The sheet says that the image you copy over should be square. Most character sheets are rectangular, and so does this mean I need to make the image image square by changing the canvas on an image, or can I just use the rectangular one? I am trying to make a sheet form a landscape sheet that is wider than it is tall.
YoGGoH 2022 年 10 月 19 日 上午 11:04 
Any option to move the boxes faster than changing it number by number and reloading the sheet?
oskar 2022 年 9 月 10 日 上午 9:18 
Hi I've created a Warhammer Fantasy 4e character sheet out of a dnd character sheet that was based on your work and I have a problem with the checkboxes, I'd like them to completely change their color when they're pressed. Please help me if u can
Kaija 2022 年 8 月 26 日 下午 1:11 
Hey People, i have something very interesting that many here may want/need.
The functionality to Lock/Unlock everything on the Character sheet, that you cant accidentaly change/something important.
Creator oft the code:
https://psteamcommunity.yuanyoumao.com/profiles/76561197984745835
https://psteamcommunity.yuanyoumao.com/app/286160/discussions/7/3317484899032468003/
In Fact its such a good function that maybe MrStump would want to implement it into the mod itself.
Here's the code: https://pastebin.com/zkwygaRs
Have fun Everyone :D
Riff Rath 2022 年 8 月 3 日 下午 7:01 
I'm having an issue where I make my editing changes while set to "true" but after I've finished editing and I change it back to "false", all my changes go away.
Also, it seems this only happens randomly. For instance, I made a copy of the sheet and the copy didn't revert but the original did.... which... why would that even make a difference??
If anybody can help, please let me know.
Ron Helldiver 2022 年 7 月 26 日 上午 12:07 
This is an absolutely brilliant template, and fairly straightforward to use for somebody who has little to no experience in scripting. Nice work, and thank you!
Himel 2022 年 7 月 20 日 上午 8:01 
how do i make round checkboxes or dots?
AlteUnke 2022 年 5 月 29 日 上午 11:42 
Works good so far, just one thing we ran into multiple times yesterday:

I'm using one big Textbox for Character Traits/Notes. So it happened that Players wanted to edit the field, click into which automatically marks all existing Text and then moved their Camera with 's'. And whoops, all the Text got replaced by an S.

Is there any way to prevent easy overwrites like that from happening? I'm able to rewind time, but I'm hesitant of doing that all the time.
Blasted 2022 年 5 月 28 日 上午 10:06 
or make checkbxoes transparent?
Blasted 2022 年 5 月 28 日 上午 12:57 
is there a way to put a label on a checkbox? would be useful to have
Sun 2022 年 5 月 3 日 下午 9:13 
oh woops, it also needs
updateSave()
before the last 'end' on the two blocks
Sun 2022 年 5 月 3 日 下午 9:07 
thank you SO MUCH for this! its super helpful and ive been using it to track turn phases for some heavier games. in case this helps anyone, i made a couple buttons for clearing checkboxes (i dont know LUA/scripting so im sure theres a lot thats wrong, but so far it seems to work). it requires buttons set up in UI.

---

function click_resetAll()
for i,data in ipairs(ref_buttonData.checkbox) do
data.state = false
self.editButton({index=i-1, label=""})
end
end

function click_resetSection()
for i,data in ipairs(ref_buttonData.checkbox) do
if i>=4 and i<=8 then
self.editButton({index=i-1, label=""})
data.state = false
end
end
end
Moberget 2022 年 4 月 17 日 下午 2:58 
@Paul Branigade - That's it! I had missed that oh so important part of the script. This made it all work, thanks a bunch!
Master Cylinder 2022 年 4 月 15 日 下午 3:36 
I used this for a recreation of VCR Clue that I'm working on and it worked incredibly well! If you are looking to make a very specific sheet for a game, this is the template to do it right here!
Paul Branigade 2022 年 4 月 14 日 下午 5:27 
@Moberget I had your exact same issue a couple of days ago, after populating my whole template and then find out I lost pretty much everything.

I look back at the answers that had been given here and I report here the one that worked for me.

---

Make sure that after you enter all the text boxes, checkmarks and counters in LUA you change disableSave = true (towards the top) to disableSave = false. That's my only guess, if that's still true data won't be saved.

Otherwise I've just saved them as objects and pulled out the stack, I've never put them into boxes.
Moberget 2021 年 12 月 22 日 上午 1:32 
Awesome tool! But is there any way to make the checks and info persist between saves/states or even just being put in a bag and taken out again? This is a rather big issue that I feel should have a pretty simple solution. But does it?
Riff Rath 2021 年 11 月 29 日 下午 6:43 
I'm having a problem where the coordinate finder just stops working for no reason...
VampireGamer 2021 年 11 月 27 日 下午 4:05 
Unfortunately, the sheets lose all the entered data after loading a save.
Malixx 2021 年 11 月 6 日 上午 9:25 
Ok, if you want to remove/hide (or change opacity/transparency) of the background of a textbox AND rotate the textbox you must change the self.createInput like this:

self.createInput({
input_function = funcName,
function_owner = self,
label = data.label,
alignment = data.alignment,
position = data.pos,
rotation = data.rot,
scale = buttonScale,
width = data.width,
height = (data.font_size*data.rows)+24,
font_size = data.font_size,
color = data.color,
font_color = data.font_color,
value = data.value,

And then the textbox should looke like this:

pos = {-0.026,0.1,1.474},
rot = {0,180,0}, -- change 180 for rotation
rows = 1,
width = 5000,
font_size = 800,
color = {1,1,1,0.4}, -- change 0.4 for opacity
font_color = {0,0,0,255},
scale = {0.1,0.1,0.1},
label = "Empty",
value = "",
alignment = 3
Malixx 2021 年 11 月 6 日 上午 5:25 
This is almost perfect! Like MasterHorus said transparent background and text rotation is all that is missing.