New account registrations are disabed. This website is now an archive. Read more here.

RPG Maker VX Ace    Posted January 25, 2015 by xTsukihime

Random Encounter Events

Introduction

This script allows you to run a common event when you encounter an enemy through "random encounter".

 

When the common event finishes executing, the random encounter battle will begin.

 

In this common event, you have the opportunity to run some extra logic before the battle occurs. The enemy troop that you will battle is available, and you can use this information in your event. For example, you may choose to display a message if a certain troop is encountered.

 

This script provides a special command that allows you to "cancel" the encounter, allowing you to create mechanics that allow players to skip encounters if they do not wish to battle.

Video

License Terms

Attribution 3.0 Unported - You must attribute the work in the manner specified by the author or licensor. Commerical use allowed.

Instructions

Get it at HimeWorks!

 

In the configuration, you can choose a variable that you will use to determine which common event to run. This allows you to change the common event during the game if necessary.

 

The enemy troop that is encountered can be accessed using script calls by referencing

$game_troop

If you would like to cancel the random encounter, use the script call

cancel_encounter

And the encounter will be canceled.

Leave a Reply

xTsukihime

  • Posted about 10 years ago

  • Engine
    RPG Maker VX Ace
  • Category
    Environment and Field Scripts
  • License
    Attribution 3.0 Unported
  • Version

Stats

1,622 views

0 comments

Tags

n-a