← Return to game
Log in with itch.io to leave a comment.
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.
state
true
false
So for example, if you want to disable encounters in region 5 of map 3: $gamePlayer.setDataEncounter(3, 5, false);
$gamePlayer.setDataEncounter(3, 5, false);
And to re-enable them later: $gamePlayer.setDataEncounter(3, 5, true);
$gamePlayer.setDataEncounter(3, 5, true);
Hope that helps!
Yes, thank you kindly
You get an error for the battlebacks with an enemy encounter happens in the web browser game.
Certainly some background images of the battles had not been compiled. The error has been corrected. I apologize and thank you for the feedback.
← Return to game
Comments
Log in with itch.io to leave a comment.
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
stateparameter is a boolean — it controls whether encounters are enabled or disabled in that region.true→ encounters onfalse→ encounters offSo 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
You get an error for the battlebacks with an enemy encounter happens in the web browser game.
Certainly some background images of the battles had not been compiled. The error has been corrected. I apologize and thank you for the feedback.