Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker 2003 > A Search Event

A Search Event


This is how to make your characters during battle look for a treasure, or something. The example I use here is looking for the coffin of a vampire, to permanently kill it.

First, there's something you need to know about 2003 battles. I'm not sure if you've tried this, but just having Enemy HP 0 will not prevent the ending of a battle. You will need to create another enemy. The best way to do this is create a totally blank enemy, with immunity to practically everything, and place it as monster 2 behind the first enemy (you can also give it an evade attacks status).

When the main enemy dies, have some sort of Enemy 1: HP 0 event, saying something like "let's look for its coffin." Put any needed switches to keep it from respawning then or repeating the message, and remove all battle commands from the party hero (you should need a CommonEvent for this switch, since it doesn't have such a command in the battle event).

Then add a skill subset called something like Move or Search, and make a skill with the name Move. The usage graphic should not be skill use, but the walking animation, and you should create a skill animation with nothing but blank images. Add the skill along with the battle commands. Then make it move towards the target (which will be the blank remaining enemy). This will create the effect of your main character moving around the screen.

Now make some sort of variable for random numbers. If it's one probability, you find nothing, and the enemy that you killed respawns. Here you make a scene where the main character says something about it coming back to life/following you. You will need to remove Death from the enemy, and have a Variable EnemyMaxHP. Then have that variable be restored for the enemy. Make another probability where you force flee, and outrun it or something. Assign a ForceFlee event here. The final one is that you find the object you were searching for, in this case the vampire's coffin. Here, respawn the enemy first (restoring full hp as before), then kill the blank enemy, replacing it with a hidden enemy (Enemy #3 Coffin) So long as the coffin is there, the vampire won't stop respawning, but if you kill the coffin it will. In any case, your search is over.

In each probability, revert the skills and battle commands to what they were before, before all the other stuff, so you aren't left with a main character that only uses Move. 
Details
Tutorial: A Search Event
Date Listed: 2010-09-08
Author: bulmabriefs144
Total Hits: 1575


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal