The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Event Systems => Topic started by: jameswhite89 on April 20, 2011, 03:46:29 PM

Title: [VX] Make Enemy Run Skill
Post by: jameswhite89 on April 20, 2011, 03:46:29 PM
This event is enables you to make a fear skill which upon use will cause the enemy you are targeting
to flee from the battle

First we need the Common event for the skill in Question, feel free to change as you see fit!
@> Control Switches: Switch [001: Fear] = ON
@>



Next make a state call it Fear
Set its priority at 10
Make it non-resistance
Put: [is scared] in the enemy state apply box
Make it release after 0 turn with 0 Chance



Then make a skill and call it Fear!
Give it 0 Base Damage
Give it 0 Attack-Force
Make the skill add the Fear state
Set the mp cost to zero
Make it use the Fear common event
Set the target as one enemy



Then Go into your troop box
Make a new event page call it Fear
Set its condition as: Switch [001: Fear] = ON make its span a turn
Then add:
@> Conditional Branch: [Enemy 1] is [Fear] Inflicted
@> Force Action: [Enemy 1], Escape, Index 1
@> Control Switches [001: Fear] = OFF
@>
: Else
@>
: Branch End
@> Conditional Branch: [Enemy 2] is [Fear] Inflicted
@> Force Action: [Enemy 2], Escape, Index 2
@> Control Switches [001: Fear] = OFF
@>
: Else
@>
: Branch End
@> Conditional Branch: [Enemy 3] is [Fear] Inflicted
@> Force Action: [Enemy 3], Escape, Index 3
@> Control Switches [001: Fear] = OFF
@>
: Else
@>
: Branch End
@> Conditional Branch: [Enemy 4] is [Fear] Inflicted
@> Force Action: [Enemy 4], Escape, Index 4
@> Control Switches [001: Fear] = OFF
@>
: Else
@>
: Branch End

And so on till you reach enemy 8.

Let me know of any bugs in it!
If you have any questions feel free to ask