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

[Script TrackerJacker] Where are the informations stocked ?

1458598165

Edited 1458598204
Hi everyone,  I am trying to copy a campaign and making it fully fonctionnal like the original. When you copy a campaign, everything is copied except the scripts, so i copied them again manually but i see that the informations i entered for the script TrackerJacker aren't here (i am speaking about the status i entered by chat command). So my question is : where are those informations stocked if not in the script ?
1458599384

Edited 1458599484
Lithl
Pro
Sheet Author
API Scripter
state, most likely. It's a variable that API scripts can write to (and read from) that keeps its value between sessions. You could create a script that spits out the contents of state in one game and an API command to set state in another. Something like this: on('ready', function() { sendChat('API state', JSON.stringify(state)); }); on('chat:message', function(msg) { var parsedState; if(!playerIsGM(msg.playerid)) return; if (msg.content.indexOf('!setstate ') === 0) { try { parsedState = JSON.parse(msg.content.substring(10)); _.extend(state, parsedState); sendChat('System', 'state variable updated successfully!'); } catch(e) { sendChat('System', 'Could not parse state string'); sendChat('System', e.stack); } } }); Install the first script in the old campaign and the second script in the new campaign. The API will spit out the entire contents of the state variable to chat in the old campaign. Copy that (all of it!) and in the new campaign type "!setstate " and paste the text you copied. If you get a message that the state variable was updated, you're done. Note: the above scripts are untested. Note: depending on the scripts you have installed in the old campaign, the first script might spit out a considerable amount of text. In order for the second script to work, the text you give it must be a valid JSON string, and the easiest way to do that is to make sure you copy the entire output from the first script.
1458602819
The Aaron
Pro
API Scripter
Also, any references to character and token ids are unlikely to work. 
ITS ALIVE!! ALIIIIVE !!!! MOUAHAHAHA Yep it works like a charm, ^^ Thanks you very much, its always a hassle to make proper saves of games because of scripts.