The main question:
Can I use tilemagic somehow to identify and change a specific tile within an area? Further, can I do this with a simple, reusable script (like, would it work between tilesets)?
The application:
I'm working on a procedural dungeon generator that expands as agents enter new doorways.
Each new room saves its coordinates to a waypoint variable. Further, each player has a coordinate variable and each doorway has a test script to say
-What is player coordinate?
-What X,Y Change would entering this door result in?
-Does that room exist already? If Yes, transition to there, if no, grab new room.
Which works great. The problem is, I'd like to get a lot of work from a relatively small number of Areas. If I could, for instance, have a single Sewer Area with 4 doors leading from it (N,S,E,W) and have a randomizer remove some of those doorways when choosing the room, I could pull far more mileage off of it. The unfortunate alternative is 8 iterations of the same Area with various door combinations.
I wouldn't want to imposition someone too much, but if you happen to know of a inc script or even a website where this concept is mentioned, it'd help a lot!