You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dunkfordyce edited this page Nov 22, 2020
·
2 revisions
read a game KV
assuming you have setup a game key in the BackOffice/Status/KeyValue Storage named contest containing final quest
server side code
function __currentcontest(params, customData, mod) {
"use strict;"
// don't edit above this line // must be on line 3
return this.gamevfs.read(this.game.getPrivateDomain(), "contest")
.then (function (gamevfs) {
return { "contest" : gamevfs.contest };
});
}
the call to getPrivateDomain could be replaced by the name of a shared domain.