Hey! ^_______^
I create a Roguelike game where my character enters a room, performs actions in it (defeats all the enemies) and then a door to a new room opens for her.
I created the rooms (room 1 room 2 room 3) and I want to make him every time he walks in the door he comes to a random room out of the three I created.
I also want to create that once he enters the room and completes the task in it - he will not be able to enter this room again.
For example my character went into room 2 - defeated all the enemies in it and came to move to another room - I wish he could now randomly enter only room 1 or 3 and not room 2 again.
Say he entered room 1 after that - defeated all the enemies in it and now he has to get to another room - now he will only be able to enter room 3 - because rooms 1 and 2 he has already passed.
I would be very happy if you could explain to me how I do something like this. I just can't figure out how to make something like this happen.
Thanks so much in advance I really appreciate it!