Ah! It seems that it wasn't imported correctly the first time around. It works!
The main thing that led to me buying your extension was: "to generate placeholders, then insert a random room from a subset in place of each of them".
My system involves 43 red squares and I wish to do just that, replace each of these into a random room from a script. How would I go about replacing each of these objects? Right now I have it so the system loads rooms into specific rooms, however it seems like all of the rooms I packed into a script load at once.
var json_rooms = scr_rooms(); // generated rooms stored in the script
// pick a random room name from the map:
var name = ds_map_find_first(json_rooms);
repeat (irandom_range(0, ds_map_size(json_rooms) - 1)) {
name = ds_map_find_next(json_rooms, name);
}
if room = Temporal_Gardens {
// and load that:
room_pack_load_map(json_rooms[?name]);
}
// and when you're done:
ds_map_destroy(json_rooms);
![](https://img.itch.zone/aW1nLzIzNDY4NTQucG5n/original/D6rtFS.png)
Sorry if these seem like really basic questions. I'm still around beginner level and trying to understand this new system.