Tabletop Simulator

Tabletop Simulator

Custom Chip Values (broken)
8 Comments
YellowCityBear 26 Jul, 2021 @ 6:42pm 
Run into an issue where if I stack custom chips, their value increases exponentially.
TheSharp 21 Apr, 2021 @ 5:23am 
I've made a slight mod to this script for DnD Coins we are using, it may be of interest to some

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2463781623
TheSharp 20 Apr, 2021 @ 7:25am 
Fixed the double count, needed to remove the "* quantity " parts from add, spawn, enter, leave functions. this also fixes the object not stacking past 2

I found that changing the name of the chip to the denomination such as just $ looks better when TTS sums the values.

updating the description of the stacks means if you hover over a stack in a bag it will tell you the value while in the bag, which is quite handy.

added to the enter and leave functions
container.setDescription(container.value * container.getQuantity() .. " " .. container.getName()

can clear the description for single chips by added this to the spawn function
if object.getQuantity() == -1 then object.setDescription("") end
TheSharp 20 Apr, 2021 @ 1:16am 
I really like this mod however, Chips will stack only once but then report their values as double the actual stack value. Any chance of an update?
DarkonFullPower 16 Aug, 2020 @ 3:32pm 
OH. The issue is even deeper. getValue() does not work for custom chips fundamentally. Oof.
DarkonFullPower 16 Aug, 2020 @ 3:23pm 
Shame that, from what i can tell, adding $ to the value breaks object.value.

This means you cannot use custom values to modern chip scripts without heavy reworking. Shame. Hope TTS releases a fix soon.
Jokuhrax 26 May, 2020 @ 9:07am 
I found the answer to my prior comment and found that clearing the name of the chip object (through a right click option) prior to placing it in the bag eliminates that name at the end.
Jokuhrax 26 May, 2020 @ 8:49am 
Thanks for sharing. Nice work!

Is it possible to just display the total value and not have the chip name at the end when highlighting multiple chips? When there are 2 x $25 chips on the able and 10 x $5 chips, it's slightly confusing to see '50 + 10 = 60 $25' when hovering over one and '10 + 50 = $60 $5' when hovering over the other. This is just a minor issue though.

A display like what they have for the in-game poker chips ( 2* $25 + 10 * $5 = $60) would be a great update, but this is still a wonderful mod as-is.