Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hello, so in the set up in the plug in it says $gamePlayer.setDataEncounter (mapId, regionId, state): May i ask what the state is? Means? thanks!

Hi! The state parameter is a boolean — it controls whether encounters are enabled or disabled in that region.

  • true → encounters on
  • false → encounters off

So for example, if you want to disable encounters in region 5 of map 3: $gamePlayer.setDataEncounter(3, 5, false);

And to re-enable them later: $gamePlayer.setDataEncounter(3, 5, true);

Hope that helps!

Yes, thank you kindly