Tabletop Simulator

Tabletop Simulator

31 betyg
Zone Protection Tool
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Assets: Scripting
Taggar: Misc
Filstorlek
Lades upp
Uppdaterades
33.163 KB
16 maj, 2017 @ 11:06
16 maj, 2017 @ 11:46
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
Zone Protection Tool

Beskrivning
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 kommentarer
Toaster 10 jan, 2022 @ 15:35 
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 mar, 2021 @ 16:17 
Would be cool of the tool's protection extended to buttons and text fields, specially the ones from your character sheet template.
GeneralHannibal 25 mar, 2020 @ 20:58 
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 maj, 2019 @ 23:44 
how do i put scripted zone?
ChizBallz 4 apr, 2018 @ 18:42 
@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 apr, 2018 @ 16:31 
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 mar, 2018 @ 11:51 
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 sep, 2017 @ 17:22 
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 aug, 2017 @ 20:55 
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 aug, 2017 @ 20:32 
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