设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 91|回复: 0

[转载发布] POG_ProhibitedEncounters: Disable / Enable encounters and modify the frequency w

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4600

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    23207
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28701

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式


    License: Free for personal or commercial use.


    Context: The player enters the battle after moving a number of steps on the game map. Although quite functional, this is a static and uninteresting model of forcing the player to fight.


    Description: This script allows you to add a little unpredictability to determine when the player will or will not enter a battle. At the same time, it gives the player the possibility to act strategically to enter or avoid the fight. it also allows the developer to temporarily turn off combat and reactivate it whenever he wishes.


    Script configuration: you will need to determine the number of database changes that will indicate whether battle encounters are enabled or disabled.
    Spoiler: image



    To activate or deactivate meetings, use the plugin command: ON / OFF encounters.


    Steps to determine the encounters.

    An encounter is the moment when the player is taken into battle against a creature on another screen (battle screen). The encounter takes place after the player moves around the map a predetermined number of steps. This number of steps is determined in the map settings:
    Spoiler: image



    In the example above, the encounter will take place from the moment the player moves 10 times on the map.


    Modifying the moments of encounter

    This script allows the encounter to have a chance to happen after the player takes the number of steps determined in the map settings. This means that after traveling 10 times (for example) the event will not necessarily happen, instead it may or may not occur according to a percentage value.

    For example: There is an 80% chance that the player will engage in combat after moving 10 steps. After the player moves 10 times, a function generates a random value (as if it were a roll of a dice with 100 faces) and compares it with the player's chance to enter combat. If the randomly generated value is less than or equal to the player's chance of entering combat, the encounter takes place. However, if the randomly generated value is greater than the player's chance to enter combat, the encounter does not take place. When the encounter does not take place, the number of steps for a new encounters reset.


    Chance of a character entering combat

    Each character in the database has a chance to engage in combat or not. By default, this chance is 100%, that is, he will always go into combat according to the normal settings of the RPG MAKER MZ.

    The developer can change the chance of a character entering combat with the tag:

    <rateEncounter:percent>​



    • percent is the percentage value (from 0 to 100) that expresses the character's chance to enter combat. Example:

    Spoiler: image


    Chance of player entering combat

    The percentage value that determines the player's chance to enter combat or not is equivalent to the simple average of the chances of the characters that are part of the group. This means that all the characters that make up the group influence the chance of the encounter happening or not.
    Spoiler: image











    Modifying a character's chance to meet

    (1) It is possible to modify a character's chance of encounter. To do this, use the Increase / Decrease Rate plugin commands.
    Spoiler: image

    (2) Another way to modify a character's chance of meeting is through a status. In this case, it is necessary to set the status to call a common event which in turn calls the plugin command:
    Spoiler: image


    (3) It is still possible to have an item consumed to increase or decrease a character's chance of encounter.

    Spoiler: image



    Other plugin commands

    % actor into battle :
    assigns a character's chance of finding a database variable.


    % party into battle: assigns the chance of encounter the group of characters to a variable in the database.



    Extra Content:

    One of the things that has always bothered me about RPG MAKER is that the player can avoid going into combat simply by standing in the same place. Since combats are only activated after the player moves a certain number of times, standing still is a strategy that never made much sense in my opinion.

    To prevent this from happening, the POG_ProhibitedEncounters script has a function that makes the encounter can be activated after a certain time. This means that even if the player remains still, after a certain period of time he will still be at risk of going into battle.


    Plugin configuration:

    In the plugin settings, set the time (in seconds) that "equals" a player's movement. Thus, even if the player remains stationary every time that this period of time has passed, the RPG MAKER will reduce by 1 the necessary number of steps for the player to have an encounter.
    Spoiler: image



    The plugin command: change time allows you to change the encounter time:

    Spoiler: image





    Finally, it is possible to activate or deactivate the meeting time using the plugin command:

    Spoiler: image









    本贴来自国际rpgmaker官方论坛作者:Logica处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/pog_prohibitedencounters-disable-enable-encounters-and-modify-the-frequency-with-which-they-occur.128666/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-16 15:57 , Processed in 0.113794 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表