Tabletop Simulator

Tabletop Simulator

Custom Chip Values (broken)
8 則留言
YellowCityBear 2021 年 7 月 26 日 下午 6:42 
Run into an issue where if I stack custom chips, their value increases exponentially.
TheSharp 2021 年 4 月 21 日 上午 5:23 
I've made a slight mod to this script for DnD Coins we are using, it may be of interest to some

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2463781623
TheSharp 2021 年 4 月 20 日 上午 7:25 
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 2021 年 4 月 20 日 上午 1:16 
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 2020 年 8 月 16 日 下午 3:32 
OH. The issue is even deeper. getValue() does not work for custom chips fundamentally. Oof.
DarkonFullPower 2020 年 8 月 16 日 下午 3:23 
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 2020 年 5 月 26 日 上午 9:07 
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 2020 年 5 月 26 日 上午 8:49 
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.