How to make this idea happen?

Hi, Just starting with RPG VX Ace and had an idea within a game. Just curious how to go about putting this in the game, or if it is possible to do within the RPG Maker system.

I want to have a doorway that is blocked, no transfer event, that is opened after a quest is done for another NPC somewhere on the map. Hopefully that makes sense.

Basically as an example, I want an NPC to tell my party, go kill 5 slimes to get through this gate. After the 5 slimes are killed they report back to the NPC and the doorway then open and the transfer event can take place.

How would I go about this if it is possible?

Thanks
SL
I don't use Ace but I know it's possible. You'll need to learn about conditional branching, variables and switches. It might sound like a lot at first but if you look through the tutorials in this forum, it should eventually make sense.
That's basic eventing 101. Set the door to a blank page(or tab however you understand it) with the door image. Copy and paste that page and mark the second page with a condition. In your example it would probably work with a switch. You go kill the monsters (taking count of how many are killed), and talk to the npc. if # of monsters killed is a match to the conditional branch then turn switch 'door' on.
So I understand what your saying, but I'm still getting hung up. How do I go about specifying that I want 5 slimes killed? Then how do I keep track of the slimes being killed?
Since this is a very basic question I recommand you to follow Andar's tutorial before taking further steps. Don't misunderstand, it is not that people here don't want to help you but not knowing how to properly proceed may cause you troubles later on.

To track the number of slimes killed you can just set them to drop an item with 100% chance so you can just count how many items of that kind the player has. I am kinda sure something similar is also in one of the basic tutorials. If you don't want to let that item rot in the player's inventory you can set a parallel process that counts them after a battle, increases a variable by the amount of item currently in the inventory, remove those items from the inventory. After that you can use that variable in your event.

The last part is less basic but it is a combination of basic things so I recommand you to "play" around a bit with the engine and experience more different things on your own, this will give you the necessary amount of experience to start doing something more complex.
Actually, rather than use drops to count (the player might sell one!) the variable should be based on how many are killed. Assuming that the slimes are evented, then add 1 to a variable after the Battle Processing command. The check then is (via a conditional) is this variable equal to or greater than 5. If the slimes are random, then the variable addition needs to be on turn zero of the troop page.

However, I strongly second the suggestion that you go through Andar's info. He links to a playable tutorial for eventing and another playable tutorial on variables and switches. You really, really need to have a firm grasp of these if you are going to make a game.
@Kes this only works if slimes are evented AND you cannot escape that particular fight. If you increase the counter either at the begining of the fight or in a troop event once the fight started, if at some point you decide to not continue that particular fight and run away from it then your variable value will not reflect the true amount of slimes you killed. Overcoming this is possible using different checks but many ways of doing this require scripting knowledge (and I might be wrong but I don't think it is the case of the OP otherwise there was no point in asking this question).

Anyway it is true that if you count it using an item the player can just sell it. That's why I said that increasing a variable at the end of every battle based on the amount of item possessed was a better idea. More complex, of course, but much more solid. In that case the OP only has to turn on the switch related to that particular common event in the slimes troop event and turn it off when the event runs. This is super-easy but a proper knowledge of the basics is required.

Using this method prevents the player from selling the item (since the common event removes it instantly at the end of every battle) and allows the OP to properly count the amount of slimes killed even if the player decides to run away from battles and/or those battles are not evented.
Ok, so I'm reading through the tutorials. Thanks for the link to that page. It will take me a little while to work my way through that information. I am still working on the problem of my quest. I thought I had it, but something just isn't working right and I can't manage to figure out what I'm missing.

My NPC quest giver has these event pages:
2017-10-17_10h57_44.png
2017-10-17_10h57_57.png


I then set the conditions and variable on my troop in the database as follows:
2017-10-17_10h58_29.png


So that's the basic framework I have for a the quest. When I go to kill the slimes though the variable doesn't change from zero. The slimes I kill are not being added to the variable and incrementing the variable up 1.

Any thoughts?
In ACE, if the slime dies by going from more than 1% HP to 0% HP, that event never runs. What most do to avoid that is they give the monster the immortal status, then check and see if it has 0% HP. If so, they remove the immortal status, KO the slime, and then increase the counter by 1.

Or, you could do it my way, which is put the event on the map, and under the if win condition, increase the counter by however many slimes you killed.
I'm still struggling with figuring out how to create a statement that increases the variable based on a certain troop. How would I go about creating an event that had the if/win condition that increments the variable by a certain amount of slimes killed?
Once you create your event and put a Battle Processing command in it the event will answer your question on its own, you can't miss the "if Win" part in the event screen. Just create a new event, insert a new command and select Battle Processing. Everything else is quite intuitive.

Based on what I can see you now have few different ways of handling your quest. It is up to you to decide which one you want to use in your game. First of all decide HOW you want to handle these battles (if you want o use events or if you want them to be random battles) then pick then approprite method to achieve what you need.

Events -> do it the way bgillisp suggested
Random Encounters -> do it the way I suggested (or any other way that works fine)

If you are new to the engine bgillisp's way is easier to handle and will sure prevent further problems to happen. If you do it my way and do something wrong then more problems will follow.

The golden rule is: do it step by step. If you are new start with basic things. Don't think too much about handling every possible situation, just limit the amount of different situations you have to handle. Once your knowledge increases you can as well increase the number of different situations you want to handle at the same time.
I really must not be smarter than the children using this application... I insert a Battle Processing Command, but see no if win. All I see is this:

2017-10-17_12h55_57.png
For what you did, they must win. So just add the command to increase the variable after the battle. Just know that in this one there is no way for your player to escape the battle too though.
That was a new event that I just put off in no mans land to create an event. I can not get an if win statement to show up if my life depended on it. What would I do if i needed that expression to show up?

I know I seem a little thick headed, I apologize if I am dragging this out. You have no idea how many hours I have spent trying to get this to work right and it's driving me nucking futs. Then again, you probably do know how many hours.

Thanks again for all the input given on this thread.
Nevermind, I found the if win.... I missed a check box.
It occurred to me when you said they can't escape...
Ok, so I created an event on the map in a square out of the way in the water. I put in:

2017-10-17_13h15_42.png


I went killed some slimes, still when I go back to the NPC he says that I have only killed 0 slimes. The number isn't changing. <frantically pulls hair out>

Stephen Loden, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.



Next time edit the posts. Remember that double posting is posting below yourself if < 72 hours have passed.

As to the question, try a new variable. Variable 1 is used by many scripts. I usually start with 101 for any variables that I use for the game, though I also got 61 - 70 to work in my game.

Also, hit F9 and see what the value of variable 1 really is after the quest. If it is 1 like it should be, then post a screenshot of the NPC event, as that is the problem.
Sorry about the double post. Won't happen again.

Above, in a previous post, I have the screen shots of my NPC posted above the Troop screen. I changed the variable to 101, and even explicitly setting the variable to 4, my NPC tells me I have 0. I'm not sure what I'm doing wrong here.
Ah, missed that. I think you have to use \V[1], not \v[0001]. Try that.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-this-idea-happen.85829/