Hello. My game consists of four major areas and a respective boss. When the player approaches the first boss, it should be where the player faces a coffin before descending into battle. Then, once the boss has been defeated, and the variable "BeatForest" == 1, the player should be on the tile left to the coffin facing right (done), and the boss sprite should be on the tile right to the coffin facing left (not done). How do I keep the boss from showing up until she's been defeated in battle?
Controlling sprite appearance through variables
RPG Maker VXAce SupportYou set your variable as a condition for her event. She will only show up when all of these conditions are true.
Thank you for your reply, but I'm still confused. I spaced my event onto three pages. First is the short dialogue that prefaces the battle. Second is the battle and the conditional branch, winning sets variable to 1 and losing just lets the player spawn at the room entrance again. Third only shows when variable has been met. However, it still shows the boss sprite and immediately gives the player a key item without initiating a battle. Do you know what I'm missing?
The Event pages are checked from highest to lowest, until one of them contains true conditions. This one will be executed, the rest will be ignored.
So, if your last page is playing right away, the conditions of that page seem to return True.
Screenshots of your event pages might help to narrow down, what's going wrong.
So, if your last page is playing right away, the conditions of that page seem to return True.
Screenshots of your event pages might help to narrow down, what's going wrong.
I've attached three screenshots of the pages. If the pages are checked from highest to lowest, should I switch what I have in 1 with what I have in 3?
No, keep the order of your pages.
But pages 2 and 3 have no limiting conditions set.
Page 3
"Variable 4" is set to be "0 or above" to return true. It will always be "0 or above" (except you have negative values, but I don't think so). Set it to "1 or above", as that is what you wanted.
Page 2
This has no conditions at all, so it will always play instead of Page 1. But ... I'm not quite sure why this exists. Do you want it to play after the dialogue in Page 1? You don't have to separate it. Put it at the end of the dialogue of Page 1 and delete Page 2.
If you want to play the dialogue only one time (and skip it, if you retry the battle), you can set up a Conditional Branch. Let me know if you need help with that.
PS: I don't think "event touch" is the Trigger you want. If it should be at Key Hit, use Action Button. If you want it to start on it's own like a cutscene, use Autostart.
But pages 2 and 3 have no limiting conditions set.
Page 3
"Variable 4" is set to be "0 or above" to return true. It will always be "0 or above" (except you have negative values, but I don't think so). Set it to "1 or above", as that is what you wanted.
Page 2
This has no conditions at all, so it will always play instead of Page 1. But ... I'm not quite sure why this exists. Do you want it to play after the dialogue in Page 1? You don't have to separate it. Put it at the end of the dialogue of Page 1 and delete Page 2.
If you want to play the dialogue only one time (and skip it, if you retry the battle), you can set up a Conditional Branch. Let me know if you need help with that.
PS: I don't think "event touch" is the Trigger you want. If it should be at Key Hit, use Action Button. If you want it to start on it's own like a cutscene, use Autostart.
Thank you so much, it worked! I'm just going to figure out the player's placement (which is pretty easy). If you wouldn't mind, I would appreciate you explaining how to only show her dialogue once.
Sure! You want to use a Conditional Branch for that.
You can think of it as a "if condition X is True, do this. Else case, do that." So, once you had your dialogue, you will activate a Switch.
This switch is the condition to not show the dialogue.
This is MZ interface, but it should work the same in VXAce:
You could also define an "ELSE Case", to show a different dialogue. Something like "You again?"
As you can see, showing the dialogue requires "Self Switch A" to be OFF. After hearing the dialogue, "Self Switch A" is set to ON. So, if you run this event a second time, the condition is FALSE, and the dialogue will be skipped.
Since your battle is outside of the Conditional Branch, it will run anyway.
You can think of it as a "if condition X is True, do this. Else case, do that." So, once you had your dialogue, you will activate a Switch.
This switch is the condition to not show the dialogue.
This is MZ interface, but it should work the same in VXAce:
You could also define an "ELSE Case", to show a different dialogue. Something like "You again?"
As you can see, showing the dialogue requires "Self Switch A" to be OFF. After hearing the dialogue, "Self Switch A" is set to ON. So, if you run this event a second time, the condition is FALSE, and the dialogue will be skipped.
Since your battle is outside of the Conditional Branch, it will run anyway.
Thank you! It works great.
Original thread: https://forums.rpgmakerweb.com/threads/controlling-sprite-appearance-through-variables.174249/