じ☆ve冰风 发表于 2026-7-30 11:41:21

Encounter Alert

This script displays an encounter balloon over your player character on the

map whenever you are about to encounter a random battle monster.

When this balloon is displayed, the player can choose to skip the random

encounter by pressing a specific button.

This only applies to random encounters.


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/encounter_alert1.jpg


Download

Script and demo: Get it at Hime Works!

You will also need this spritesheet. Place it inside your Graphics/System folder


http://dl.dropbox.com/u/23043573/RPG%20Maker/Library/Encounter_Balloons.png


Usage

Place the above spritesheet into your Graphics/System folder.

There are several configuration options, though the defaults should be fine for most purposes.

You can disable the encounter balloon option by making a script call

Skip Condition

Each troop comes with a skip condition, which is a special condition

associated with the troop that determines whether your party can skip

the battle or not.

To set up a skip condition:

1. Create an event page for the troop

2. The first command must be a comment, with the line

<skip condition>3. The second command is a conditional branch, which you will use to specify the skip condition
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/encounter_alert2.jpg


Whenever a random encounter appears, the colour of the balloon determines

whether you can skip the battle or not: if it is red, then you can’t skip.

If it is blue, then you can skip. The skip condition must be met in order

for the balloon to be blue. If no skip condition is specified, then it is

assumed to be not skippable.


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/encounter_alert3.jpg


Encounter Points

In order to skip battles, you must have enough "encounter points". The encounter points are stored with the game party, and tied to a variable of your choice.

In the configuration, you can set the max amount of encounter points you can have.

Each troop may require a certain amount of encounter points in order to skip.

If you choose to skip the battle, then your encounter points will decrease

by that amount.


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/encounter_alert5.jpg


To specify the amount of encounter points is required to skip a battle:


[*]In the same troop page that you used for the skip condition
[*]Create a comment "<encounter points>"
[*]Create a "control variable" command, and use the script box to set theamount of encounter points required. This is a formula.

http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/encounter_alert4.jpg

Encounter Level

In addition to encounter points, a party also has an encounter level.

This can be used in the encounter points formula.

You can change the encounter level by changing the assigned variable, or using script calls

encounter_level_up(x)encounter_level_down(x) Disabling encounter skipping

You can disable the encounter balloon option by making a script call

                Code:       
disable_encounter_balloonenable_encounter_balloon

If disabled, random encounters will be processed as usual.


本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/encounter-alert.9857/
页: [1]
查看完整版本: Encounter Alert