Skip to main content

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

Suggestion! An option to turn a Self Switch On/Off for every event on the map

A topic by cathxart created Mar 13, 2025 Views: 45 Replies: 1
Viewing posts 1 to 2
(1 edit)

With the base self switches you can do it like this.

const mapId = $gameMap.mapId();
$gameMap.events().forEach(event => {
    $gameSelfSwitches.setValue([mapId, event.eventId(), 'A'], false);
});
Developer

Hi Cathxart!

That same script should work with my plugin too. Just replace 'A' with the other self switches you waant. Like 'E'.