RPTools.net

Discussion and Support

Skip to content

It is currently Sun Feb 25, 2018 3:05 am 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 3 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Giant
 
Joined: Sat Jul 10, 2010 4:45 pm
Posts: 198
 Post subject: Can you keep players from editing Token Properties?
PostPosted: Sat Jan 06, 2018 9:39 pm 
I'm making a basic framework for my campaign, which pulls from token properties. Is there a way to keep players from editing the token properties of their own tokens? I trust my players current players, but occasionally I bring in new people and you just never know. Anything I can do?


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3844
Location: MD
 Post subject: Re: Can you keep players from editing Token Properties?
PostPosted: Sun Jan 07, 2018 2:44 am 
Tyshalle wrote:
I'm making a basic framework for my campaign, which pulls from token properties. Is there a way to keep players from editing the token properties of their own tokens? I trust my players current players, but occasionally I bring in new people and you just never know. Anything I can do?

I use a property on my player tokens called Library. The value of which is the name of a lib token specifically tied to the token (i.e "Lib:John").

Create a library token for each PC with properties you want to protect.

Then you can call a value from the lib token like so:

Code:
[h: value = getLibProperty("Property Name", Library)]


It makes it so players can't monkey with their token props and helps with concurrency issues.

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8014
Location: Bay Area
 Post subject: Re: Can you keep players from editing Token Properties?
PostPosted: Sun Jan 07, 2018 3:47 pm 
I do that too (sort of) with my lib:players token. It creates a new lib token for each new user name. But since the updates I've been thinking of changing that since you can now dynamically update tables now. Rather than holding the any specific token info, it holds global player info. I use it for player chat.

In your case, I would recommend using hidden variables, ones that don't appear in the token type. Or you can obfuscate the info and put it in a json data structure.

Another option would be to write a function that writes to a token but also updates a hidden variable. Using another function to get that data will check the value vs the hidden value to notice any tampering. You wouldn't have to use it for all your variables, just certain ones that are likely to be tampered with.

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: Bing [Bot] and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman