Although, I've figured out a majourity of what I need, for some reason whenever I try and call $dataMap.events it always returns back null
I've made a simple script
Basically when a map is loaded for the first time and is not already stored in the array, it will store all events on that map, I'm using notetags for setup.
My first though was to use Scene_Map as when it is created it loads all map data on that map ID, but that isn't working.
Is there anything I'm missing, I know this is specific but its really important for my game.
I've made a simple script
const filename = "Map%1.json".format(mapId.padZero(3));
if (!vendorArray[filename]) {
vendorArray[filename] = $dataMap.events;
}
Basically when a map is loaded for the first time and is not already stored in the array, it will store all events on that map, I'm using notetags for setup.
My first though was to use Scene_Map as when it is created it loads all map data on that map ID, but that isn't working.
Is there anything I'm missing, I know this is specific but its really important for my game.