Tabletop Simulator

Tabletop Simulator

31 lượt đánh giá
Zone Protection Tool
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Assets: Scripting
Nhãn: Misc
Kích cỡ file
Đã đăng
Đã cập nhật
33.163 KB
16 Thg05, 2017 @ 11:06am
16 Thg05, 2017 @ 11:46am
4 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Zone Protection Tool

Mô tả
A tool that prevents players from picking up items in certain areas. Each color can be given their own zone/zones that nobody else can pick up items in, and you can set areas where only the Black seat can pick up things. You can turn it on/off by flipping the tile over.

Setup is straight forward, and I have included instructions in the script on how to go about it. There is an "Admin" override that permits promoted players or host to be ignored by the script. By default I left it off, so people can get a feel for how it works when they load up my example table.

Feel free to use this token on your own tables. I also commented the code, so feel free to use that as well. As always, if you do decide to use the code in your own separate project, I would appreciate a simple credit somewhere for my "work".

And, if you get script errors, let me know what happened and I should be able to fix it.
27 bình luận
Toaster 10 Thg01, 2022 @ 3:35pm 
Shame that people can still use pieces to nudge other pieces out of protected zones. This still is a great utility so my friends can show off their towers of poker chips
victorhurtado 14 Thg03, 2021 @ 4:17pm 
Would be cool of the tool's protection extended to buttons and text fields, specially the ones from your character sheet template.
GeneralHannibal 25 Thg03, 2020 @ 8:58pm 
I'm trying to use this mod on my DnD table but it doesn't seem to be working. I'm pretty sure I followed the instructions correctly:
-spawn in the ON/OFF button
-spawn the protection zone and create a script zone over it
-save then load the table
-copy the GUID of the script zone and edit the code of the ON/OFF button

Am I missing something ? I don't know what I'm missing or if I forgot a step. Any help would be appreciated!
Brain5000 5 Thg05, 2019 @ 11:44pm 
how do i put scripted zone?
ChizBallz 4 Thg04, 2018 @ 6:42pm 
@lionbryce, i try adding your line of code, and it's giving me errors saying <onObjectPickedUp>: chunk_1:(89.25-33): cannot access field of userdata<LuaGlobalPlayer>. This error pops up everytime someone picks up an object in a restricted zone.
ChizBallz 4 Thg04, 2018 @ 4:31pm 
Does anyone know how I would make it broadcast the message in the same color of the player that's picking up the object illegally? Is it also possible make it so that it can prevent people from nudging, rotating and flipping objects that are inside the protected zone as well?
lionbryce 8 Thg03, 2018 @ 11:51am 
BTW, for those with people who are "extra annoying" and try relentlessly to drag a piece from someone's area (which is possible) open up the lua editor and put

Player[c].changeColor("Grey")
--after the line that says
broadcastToColor("You are not permitted to pick up objects in this zone.", color, {0.9,0.2,0.2})
ChizBallz 14 Thg09, 2017 @ 5:22pm 
Have any of you guys figure out how to broadcast to all from which zone the player is attempting to move objects from? Like Duranu says, it would be useful for everyone to know who the trouble maker is at the table for moderation purposes. Perhaps a color coded message (so it's easier to see at a glance what zones are being tampered with) saying, Offender's name attempted to pick up an object from Victim's name ZoneI also noticed that you're still able to flip a persons card, is there anyway to prevent that as well?
Duranu Lithdel 2 Thg08, 2017 @ 8:55pm 
Dont want that to sound unthankful, It is appreciated, while not exactly what I was looking for it will atleast tell who is mucking about and doing things they shouldnt be, thank you
Duranu Lithdel 2 Thg08, 2017 @ 8:32pm 
That works on telling that I tried to pick up an object illegally, appreciated. And no it does not pull the zone info of where (color) they tried to take it from