DevPortal

Developers Forum

Recent Forum Posts

Viewing 15 topics - 16 through 30 (of 48 total)
Viewing 15 topics - 16 through 30 (of 48 total)

Persistent variables using localStorage

In a browser, JavaScript scripts can store persistent data (the data which survives page reload) using a localStorage mechanism. We’ve added the similar functionality to the Bots Playground: localStorage.set() and localStorage.get() functions. These two functions store and retrieve values to/from a persistent storage: var controlling_avatar = localStorage.get(“my_master”); … if(new_master) { controlling_avatar = new_master; // We…

Bots Playground updated

The Bots Playground has been updated with the following improvements: Scripts now restart automatically This is the most important update which relaunches your scripts if Playground server gets restarted. Page controls got refined for 1378×768 screen resolution This is the most popular resolution for compact laptops, so we refined page controls: script rename/remove links has been changes; long script…