#JavaScript + RPG Maker MV integration

2 messages · Page 1 of 1 (latest)

digital shuttle
#

also I'm certain I formatted the whole 'if, else if' thing way wrong, it's supposed to be 3 seperate arrays for "true" "leave it as it was" and "false"

#
    Scene_Map.prototype.onMapLoaded = function () {
        MATTIE.RPG.sceneMapOnLoaded.call(this);
        if (MATTIE.multiplayer.isActive) {
            if ([115, 108, 1].includes($gameMap.mapId()) {
                $gamePlayer.setTransparent(true);
            else 
            if([8, 4, 9].includes($gameMap.mapId()) {
              console.log('empty');
            }
        }
    };```