Hello,
sorry but I think this is a rather complicated problem. I am trying to build a "Bindings of Isaac"-like game, but you can only go from left to right. If I go right, I teleport into a random map.
It is basicly the same map everytime, they just look a little different and have different monsters, but the events are all the same, so that always the same eventing processes will run when entering a new room.
I just copy and paste the initial map and then change the others ever so slightly. There is a common event that sets the "random room" variable to 27...29, cause these are rooms I am using atm.
Going to a random Map everytime works fine, but I want the program to remember the rooms I already have been in, so that I can return back for whatever reason.
When I then go right again, it should bring me back to the rooms I have already been. UNLESS there is no room anymore where I have already been in, then it should throw me into a random room again.
Here is a flawless image trying to explain this method:
After visiting 5 random rooms with monsters n stuff I should teleport into a bossroom.
But this is a problem I was able to handle by setting a variable, that increases +1 whenever I go right but doesnt decrease when going left, and another one that does decrease when going left and so the game knows, that whenever these two are equal, I go into a random map.
If not, it should bring me into a specific map, depending on the amount of rooms I have visited before.
I've been working for a long time on a way to remember the ID's of the rooms in variables and then setting up my teleport fields, so that the player goes to the room he should go.
First, a screenshot of the event-placements and everything that could be useful:
The events top right are just for the chests, the top left are for remembering the game-ID.
Important Note: The 4 events up left are all almost identical, just the Condition/Switch/Variable Numbers vary from 2-5, since the first room is a different, not random room! (So second left event would look like: If "room number == 3", blavariable [room3] = Map ID, etc...)
(left has 2 pages and right 3 because I am constantly trying things and so I changed something while writing this... sorry. But was just a boring "if self switch a is on" page)
First page triggers only, if I enter a new room I have not been in before.
The teleport-event will check first, if the two variables mentioned earlier are equal.
If yes, it throws me into a random room and activates the switch "First visit".
Depending on the Variable "Roomcounter", like for example if it is at 2, it should store the game ID onto a variable with the name "room2". The "roomcounter"-Variable is the variable that does decrease when going left.
Second page activates, when the player goes left, then a switch will activate depending on the "Roomcounter". So, if "Roomcounter" is 2, Switch "MapID2" will activate.
This is the system I was trying to establish, that the game always knows, in which room I am in. Sooo I made 4 of those because I dont wanted to make a gigantic conditional branch tree, things were already complicated enough.
This is the left Teleporter. If MapID2 (That's just the name of the switches, not the actual MapID) is activated, it does a direct teleport back to the first map, because map 1 isnt random, so thats easy.
If MapID 3 is active, teleport location is set to the Variable, where the Map ID (this time the real Map ID) of Room 2 is stored (Variable "room2".
It also flips on a switch, that I just went back. If this switch ("Went back") is on, it should lead the upper left events to detect the room number and switch on the fitting "MapID". Then it switches itself off (Don't know if that's allowed..)
The common event is for the chests, it just sets a bunch of different variables and switches but this wont be the cause for any error here, so please ignore that.
And this is the last one, the right teleporter. Just as explained, by going left and activating the switch "Went back", the upper left event group's second page should activate, flipping a MapID switch on, depending on the number of my roomcounter.
(I have a variable-counter script. The counter works fine, I can see that.)
So for example if switch "Went back" is on and Variable "Room Number" is 3, it should activate the switch "MapID3".
Both teleporters have an event page, that if "MapID3", they do something. Going Left TPs to room 2, Going Left to Room 4 or a random room. After this, they turn the switch "MapIDx" (depending which map you are), off.
Then the difficult part: When going left, the game has to remember where you have been before, so if you go right again, you should go back to the room you just came from.
I have tried so many things and never got to that result. Sometimes I was able to build it, so that I could go all the way back in the right order, but when going right again either the teleport command didnt tp, sometimes even after doing it successfully ONCE, but then it disappeared in the next room, or it suddenly teleports me into the same room over and over again.
I am on an emotional roalercoaster, I have been so close sometimes, even thinking I did it. The disappointment hits even harder, when it lets you think your thingy is working for the first 4-5 rooms, just to stop working somewhere. I need help, with this setup and emotionally as well 🙁
sorry but I think this is a rather complicated problem. I am trying to build a "Bindings of Isaac"-like game, but you can only go from left to right. If I go right, I teleport into a random map.
It is basicly the same map everytime, they just look a little different and have different monsters, but the events are all the same, so that always the same eventing processes will run when entering a new room.
I just copy and paste the initial map and then change the others ever so slightly. There is a common event that sets the "random room" variable to 27...29, cause these are rooms I am using atm.
Going to a random Map everytime works fine, but I want the program to remember the rooms I already have been in, so that I can return back for whatever reason.
When I then go right again, it should bring me back to the rooms I have already been. UNLESS there is no room anymore where I have already been in, then it should throw me into a random room again.
Here is a flawless image trying to explain this method:
After visiting 5 random rooms with monsters n stuff I should teleport into a bossroom.
But this is a problem I was able to handle by setting a variable, that increases +1 whenever I go right but doesnt decrease when going left, and another one that does decrease when going left and so the game knows, that whenever these two are equal, I go into a random map.
If not, it should bring me into a specific map, depending on the amount of rooms I have visited before.
I've been working for a long time on a way to remember the ID's of the rooms in variables and then setting up my teleport fields, so that the player goes to the room he should go.
First, a screenshot of the event-placements and everything that could be useful:
The events top right are just for the chests, the top left are for remembering the game-ID.
Important Note: The 4 events up left are all almost identical, just the Condition/Switch/Variable Numbers vary from 2-5, since the first room is a different, not random room! (So second left event would look like: If "room number == 3", blavariable [room3] = Map ID, etc...)
(left has 2 pages and right 3 because I am constantly trying things and so I changed something while writing this... sorry. But was just a boring "if self switch a is on" page)
First page triggers only, if I enter a new room I have not been in before.
The teleport-event will check first, if the two variables mentioned earlier are equal.
If yes, it throws me into a random room and activates the switch "First visit".
Depending on the Variable "Roomcounter", like for example if it is at 2, it should store the game ID onto a variable with the name "room2". The "roomcounter"-Variable is the variable that does decrease when going left.
Second page activates, when the player goes left, then a switch will activate depending on the "Roomcounter". So, if "Roomcounter" is 2, Switch "MapID2" will activate.
This is the system I was trying to establish, that the game always knows, in which room I am in. Sooo I made 4 of those because I dont wanted to make a gigantic conditional branch tree, things were already complicated enough.
This is the left Teleporter. If MapID2 (That's just the name of the switches, not the actual MapID) is activated, it does a direct teleport back to the first map, because map 1 isnt random, so thats easy.
If MapID 3 is active, teleport location is set to the Variable, where the Map ID (this time the real Map ID) of Room 2 is stored (Variable "room2".
It also flips on a switch, that I just went back. If this switch ("Went back") is on, it should lead the upper left events to detect the room number and switch on the fitting "MapID". Then it switches itself off (Don't know if that's allowed..)
The common event is for the chests, it just sets a bunch of different variables and switches but this wont be the cause for any error here, so please ignore that.
And this is the last one, the right teleporter. Just as explained, by going left and activating the switch "Went back", the upper left event group's second page should activate, flipping a MapID switch on, depending on the number of my roomcounter.
(I have a variable-counter script. The counter works fine, I can see that.)
So for example if switch "Went back" is on and Variable "Room Number" is 3, it should activate the switch "MapID3".
Both teleporters have an event page, that if "MapID3", they do something. Going Left TPs to room 2, Going Left to Room 4 or a random room. After this, they turn the switch "MapIDx" (depending which map you are), off.
Then the difficult part: When going left, the game has to remember where you have been before, so if you go right again, you should go back to the room you just came from.
I have tried so many things and never got to that result. Sometimes I was able to build it, so that I could go all the way back in the right order, but when going right again either the teleport command didnt tp, sometimes even after doing it successfully ONCE, but then it disappeared in the next room, or it suddenly teleports me into the same room over and over again.
I am on an emotional roalercoaster, I have been so close sometimes, even thinking I did it. The disappointment hits even harder, when it lets you think your thingy is working for the first 4-5 rooms, just to stop working somewhere. I need help, with this setup and emotionally as well 🙁