Tabletop Simulator

Tabletop Simulator

59 次評價
Counting Bowl
   
獎勵
加入最愛
已加入最愛
移除最愛
Assets: Scripting
標籤: Misc
檔案大小
發佈於
更新時間
26.010 KB
2017 年 6 月 13 日 下午 3:20
2018 年 1 月 1 日 上午 7:17
5 項更新註記 (檢視)

訂閱以下載
Counting Bowl

描述
This is a bowl that counts the things that are in it. It will only count items in a list, and you can assign value (to make some values worth more than other). You can also put a value in the description to override the value you put into the script. Easy to edit. Handles stacks of items (but not containers or decks currently).

This also has an example of a sphere physics cast to locate objects. As always, if you have questions, drop a line in the comments.

Judgernaut from the forums requested this.

Updatated using the new visual debug for ray casts.

Updated to prevent it from throwing an error if deleted. Also fixed it for the bug that occurs when you copy/paste the bowl.
58 則留言
MrStump  [作者] 2017 年 6 月 18 日 上午 6:27 
Not at all. I always appreciate if I get a mention somewhere (workshop description, notepad, in the code, whereever, but even without it you're free to use it any way you please.
gryffinp 2017 年 6 月 17 日 下午 9:02 
Wow, this is nice! Would you mind if I (or possibly someone else that I help) use it for a Legend of the Five Rings mod?
MrStump  [作者] 2017 年 6 月 17 日 上午 11:21 
There ya go axis! Yes, this could be applied to any object with some edits. How I have it now, it is getting objects within a sphere the size of the interior of the bowl. So if it was to be used on a mat, I'd need to make some edits and change it to a box shape. I could probably make it a box shape with the same size of the mat now though, which would be neat.
Unreal Ed 2017 年 6 月 17 日 上午 7:47 
You can ! In fact i made another mod with a flat, 1-sided counting mat [ ulr=https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=948918429 ]here[/url]
Axis 2017 年 6 月 16 日 下午 10:28 
Would it be possible to add the scripting to a different object such as a tray?
Naveed #No2IRGC 2017 年 6 月 14 日 上午 9:33 
This is wonderful. @Devieus Maybe we should add this to our mod?
MrStump  [作者] 2017 年 6 月 14 日 上午 5:33 
Yep, you can do different values. You could also convert this to use a scripting zone fairly easilly =)
Unreal Ed 2017 年 6 月 13 日 下午 8:01 
Man, I've been thinking of making this for a while. If i read this right, it should be able to do sets of chips with different values to display a total, and that's fantastic.

If not (will test on my end), it'd be great for a spin-off mod to be able to do that