Hello, I need help regarding an event command. I want the player to have a personal room, and for them to be able to buy room themes.
To achieve this, I thought about the change tileset command. Make multiple tilesets with the same structure, just change the wall and floor used. So everytime the player wants to change their room theme, this command is used and the walls/floor gets replaced.
Thing is that, I did a test and this command only works while being inside of the map. Once you leave, it returns to its original tileset.
Is there any way to make the changed tileset stay on the map even when the player leaves and re-enters the map? Thanks in advance! and thanks for reading.
Set a variable and use an autorun event to change to the appropriate tileset every time the map is loaded?
you could have the selection store a variable, then have an event that checks that variable and then sets the theme according to the variable, like:
if x = 1, Pink flowers
if X = 2, blue flowers, etc
Edit: Dang, I was slower that Turan
It's a pretty self-explanatory system using some of the most basic parts of the engine, so it's hard to explain it any more simply. Perhaps pictures would help, unfortunately I am at work and am not able to provide them. So hopefully someone will come along with screen shots. However to the best of my ability I will explain:
First, let's go to the event you already created where you first change the tileset the first time. In my example, let's pretend this happens after fighting a boss in a war-battered land. So when we fight the boss, the tileset is the destroyed tileset, and after the boss, the tileset changes to beautiful green meadows.
In the boss battle event, let's create a new variable and set it to 1 after we win the fight.
Create the variable by double clicking in the event, selecting the "variable control" command. Choose and available variable number, and name it "GameStory" (or any other name that will help you remember it's function)
Create a new event on your map where you want the tileset change to be permanent. Open the event to edit it. At the bottom there should be a drop down box for the type of event. Set it to Autorun (or whatever this might be called in your native language).
Autorun will pause player input while the event executes its logic. Also worth noting Autorun events will loop indefinitely until you provide a command for them to stop. We will address the event running infinitely soon.
Now, in the event, create a conditional branch:
If GameStory is equal to or greater than (= >) 1:
Change tileset to green meadow.
End
This basically says, if the GameStory variable is 1 or higher, then the tileset will be changed to the green meadow tileset. If this condition is not met (the GameStory variable is 0) then it will not execute this function and it will be ignored.
Finally in the event, add the "erase event" command.
This command will delete the event temporarily. Every time you enter the map, the event will appear again. It will execute it's logic, then erase itself.
Voila, the change tileset command is now "permanent"
Hope that helps! 👋
Edit:
Cleaned up the information so it flows in a more sensible order.
Also, a final note I want to add: technically in this case, you should use a switch since it is either on or off. However, the GameStory variable can be used as a quest staging variable. Say for example another fight after our war chief happens takes place. A new war chief rises up and destroys the nearby town. We when that happens we can set our GameStory variable to 2 and have a conditional check in town check if that variable is 2. If it is, change the tileset appropriately.
Glad I could help. Embarassingly, I will admit to not fully reading your OP, but instead writing my post based on the replies. So despite my hypothetical situation not matching yours, glad you were still able to understand it! 👋