Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Fallout Terminal JSON Help

OK, so, I get how to set everything up except setting a password on the terminal. The 'instructions' don't show how, and the example given is without a password. I know it can be set, but I can't figure out how to set it. I've tried with and without quotes, with and without brackets, both together... I just can't get it to work with a password. If anyone has used this before, could you just give me an example password JSON and I can go from there?
1595124532

Edited 1595124542
The Aaron
Roll20 Production Team
API Scripter
It should just be a string in the key "password".  From the Readme: { "name": String, // The name of the terminal. "content": String, // The content of the terminal's first screen. "locked": [Boolean], // Whether the terminal is locked. Default false. "password": [String], // The password for the locked terminal. "attempts": [Number], // The number of attempts allowed to guess the locked terminal's password. "screens": [{ // The screens or screen IDs that the initial screen can access. { "name": String, // The name of this screen. "content": [String], // The content of this screen. "screens": [more screens] // Additional screens that can be accessed from this screen. } }] } So, something like: { "name": "The Aaron's Workshop", "content": "Fooled you!", "locked": true, "password": "noraAehT", "attempts": 42, "screens": [{ { "name": "Stuff", "content": "Stuuuuuufffff" } }] }
Well, so it may not be my JSON... It's giving me the error: "FALLOT TERMINAL ERROR: Unexpected token & in JSON at position 1" I am using the example script, which worked for me previously. Now, when I use the sample script, it's still not working and giving the same error. I tried deleting the token and re-creating one and using only the example script in the API and it still is giving the error.
1595140437
The Aaron
Roll20 Production Team
API Scripter
Hmm. The JSON goes in a handout?  Might be the editor issue. I'll take a look tomorrow. 
I create a token and name it "terminal" From there, you enter the JSON in the GM notes
1595189990
The Aaron
Roll20 Production Team
API Scripter
What is happening is when you copy it from the forum or an editor, it gets HTML entities in it, like &amp;nbsp;.&nbsp; If you drop your JSON into something like this:&nbsp; <a href="https://codebeautify.org/jsonminifier" rel="nofollow">https://codebeautify.org/jsonminifier</a> &nbsp;:it will clean up the contents and remove that issue.&nbsp;
1595190836
The Aaron
Roll20 Production Team
API Scripter
I pushed an update to the script that will prevent this issue and also fixes an output bug with the random hack text.&nbsp;&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/pull/1040" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/1040</a>