How do I make a scan attack?


STEP 1 - Making the skill

The first thing you should do is go into your skill/magic editor in your database. Make an attack called 'Scan' or whatever you please and make that skill a switch, then make a switch named 'scan used', and make that switch activated by the skill you are making. You should next make an attack animation that will represent the attack when it's used (It will be needed later on in the script.).


STEP 2 - Making a single enemy formation scan

(If you wish to know how to make a multiple enemy formation scan, please jump down to step 3.)

Single enemy scans are pretty easy. Start by making a in-battle script for the formation that is triggered by the switch activated by your scan attack. Next in the event window start by making and setting two variables. One representing the enemy's HP, and the other representing the enemy's MP. Set them by selecting the option being 'set' and the operand being the 1:enemy's HP/MP(Which ever one you are setting.). Next insert a 'show battle animation', and select the animation you made for the scan attack and set it for 1:enemy. After that instert a message saying somthing like this, we'll use one of Project Gemini's monsters for this.

Replace the '*' with the variable number representing the enemy's HP, and the '**' with the variable number representing the enemy's MP.

Then insert another message saying the monster's weaknesses(if the monster has any.). Then turn the switch that activated this event off. When your finished, the event window should say all of this, we'll use the single pigman for an example.

 

That's it for the single enemy formation scan tutorial!


STEP 3 - Scanning multiple-enemy formations

(This is a little harder than before, so I sudgest that you read the single-enemy formation scan tutorial first.)

Start by making an in-battle script that is triggered by the switch the scan skill activates, then create and set variables for each enemy's HP&MP(We'll use a 3 enemy formation from Project Gemini as an example.). Then make fork options equal to the number of enemies in the formation. The option should be for monsters possible behavior, and there should be one monster assigned to each fork option. It should look like this so far;

Then when the first fork condition starts, the first thing should be the battle animation of your scan attack on the enemy the fork option represents. Then display the message;

Replace the '*' with that enemy' HP max, and the '**' with that enemy's MP max.

Then instert another message stating that enemy's weakness. Repeat this pattern with each enemy, but the variables in the message should be \V[3]&\V[4] for enemy number two, and \V[5]&\V[6] for enemy number three. When your all finished, the complete event should look like this;

That's all for the scanning tutorial!


by DanioBoy201

Сайт управляется системой uCoz