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?
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.
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.
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...
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.