Help - Search - Members - Calendar
Full Version: [Eventing]Scan with Events
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion > RPG Maker VX Tutorials
Granas3
Scan
The Scan or Libra ability allows the user to view extra information on the enemy, generally it's HP. What I'm going to show you is a basic version of this, but feel free to customise. I've used Rpg maker VX for this, though it should work in RMXP as well, although it proabably won't work in RM2k.

Set-Up
To do this, first set up a 8 variables (I called them all HP) as shown.

There must be eight, since any of eight enemies can be targetted.
Next, You'll need to set up a Scanned State

It expires after one turn, otherwise every time you scan, you'll also recieve information on previously scanned enemies, or those scanned within n turns. This also assumes that only one character will be able to cast scan at any time, otherwise you will find this cumulative effect. Of course, you may prefer this.
If you do decide to not make it go away after one turn, you MUST make KO dispel this effect., otherwise you'll continue to recieve information on dead enemies. Also, since this makes use of an animation to distinguish between multiple enemies, there could be a logic error if the scan state is not dispelled by KO.
Now, onto the Common Event. I've chosen to use the Melee/Physical animation to show which enemy is being targette, but you could just use a new animation that flashes white on the target.

Copy everything from the conditional branch down and paste it seven times. Change the red circled areas to 2, 3, 4, 5, 6, 7 and 8 each time. You should end up with something like this-

Now to actually make the skill. Prepapre an animation for the Scanning(special 1 is perfect for this) and set up the skill as shown.

Again, I've done a few things to customise it, although it is generally preferable for scan to take place once evryone else has had a chance to attack, so a speed deduction is advisable.
Now to see what all this does!

aviayaso
everytime i scan the enemy it says "0 HP Remaining".
why?
Granas3
I really can't think why if you followed everything. When you set up the conditional branch, did you uncheck the box "Set handling when conditions do not apply"?
Oceans Dream
Make sure the variable that's used inside the \v[ ] is the same as you're using to check the enemies HP. If you're using the variable 250 for enemy 1's HP, then you should write \v[250].

It works pretty similarly in RM2K3, but you can't check for enemy HP or which enemy was targetting in a common event, you have to do that in the monster group tab.

What I do is have it set a variable to the enemies HP and a variable for MP. I only use one variable for this one. Show battle animation: Scan on the enemy. Then, I have common events for every enemy. In the common event, there's a message that displays the enemies HP, MP, what they're strong/weak against, and status effect resistances. So whenever you put one enemy into the monster group, just have that call the common event for that enemy type.
aviayaso
QUOTE
Make sure the variable that's used inside the \v[ ] is the same as you're using to check the enemies HP. If you're using the variable 250 for enemy 1's HP, then you should write \v[250].

LOL i feel stuiped blush.gif
i set up the variables from variable 2 until 9.
and i used in the common event variables 1-8.
because of that i havent got informatiom about the first enemy,
and when i scaned the second i got the first enemy's states.
now it works!!
thanks!!!!!!! biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.