Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi, yes you can do that through script call, although it is a bit complicated. You can use the following code, only needing to change the variable id at the top to whatever variable you want to use:

const variableId = 1; // only change this line to your variable id you want
// do not change anything below
const oldDay = Math.floor($cgmzTemp.calculateDNSTotalFrames() / $cgmzTemp.getDNSFramesPerDay());
$cgmz._addedDNSFrames += $gameVariables.value(variableId);
const newDay = Math.floor($cgmzTemp.calculateDNSTotalFrames() / $cgmzTemp.getDNSFramesPerDay());
if(newDay !== oldDay && newDay - oldDay > 0) {
  for(let i = 0; i < newDay - oldDay; i++) {
    $cgmz.increaseDNSDay();
  }
}