【汉化】YEP.16 – Battle A.I. Core

YEP.16 – Battle A.I. Core

Tired of dumb enemies that turn your otherwise challenging game into an easy-peasy walk in the park? The Battle A.I. Core plugin allows you to manually adjust the settings and patterns of your enemies so that they can deliver MANLY poundings onto your players.

是否厌倦了在地图上轻松的走动,随意的虐怪。这个插件可以让你调整敌方设置


Introduction


RPG Maker MV’s default enemy AI is a bit lackluster even if you managed to have it based completely on the rates and switches. There is no way to control the way the enemy chooses targets by default, nor are the conditions imposed by the default editor enough to satisfy the majority of checks. This plugin enables you to set a priority list of conditions, actions, and the targets selected for the enemy to go through before making a decision on how to participate in battle.

MV默认的敌方智能有些枯燥,即便你想利用概率和开关来改变他们。这里没法控制敌方攻击目标。这个插件可以让你设置一个条件优先列表。

These conditions contain all of the default editor’s conditions plus more, such as determining the parameter values of a target, whether or not a state exists on a target, the target’s elemental weakness (or resistances), and more before deciding an action. Furthermore, you can set an AI level for the enemies to make them more consistent in the way they go about fighting your players or more random in the way the enemies treat the priority list, too.

这些条件包括默认条件,就像目标的状态参数,或者元素等等。你甚至可以设置敌方智能等级,让其战斗更加随机有趣


Parameters


Dynamic Actions
By default, the enemy’s actions are determined at the start of the turn. While this works in its own right, enabling Dynamic Actions allow enemies to make a decision when the enemy’s turn comes up instead. This prompts enemies to be more flexible and to appear more intelligent in battle, thus, giving your players a bit more of a challenge.

伤害行动:开启时,敌方将会更加灵活

Element Testing
If this is disabled, enemies will automatically know the elemental weakness, resistance, etc. about all actors. If enabled, enemies will need to test out the skills on various actors first before making a decision. Until the enemy learns about the actor’s elemental rates, the enemy is always willing to try using the skill on the target actor. However, if the skill itself does not possess an element, then no information will be registered. All elemental data is reset at the start of each battle for all enemy parties.

元素测试:关闭时,敌方会自动了解我方元素抵抗情况。如果开启,则需要利用技能测试。如果敌方掌握了玩家的元素信息,将会用技能作用玩家。

Default AI Level
Not all enemies are intelligent. In fact, some of them are dumb or random. Setting the AI Level of a foe at a low number means the foe is more random while a higher AI Level foe is more consistent. How the AI Level works is, a random number will be checked from 0 to 99. If that enemy’s AI Level is higher than that number, that action is checked to see if the condition is fulfilled or not. If the AI Level is lower than that number, the condition is automatically deemed false and continues on to the next action. The check is ran each time a new action is checked upon. This random factor is only applied to <AI Priority> lists and do not apply to default actions.

默认智能等级:不是所有敌方都是智能的。如果等级较低,就意味着敌方行为更加随机,而相反则更加固定。如果如果敌方智能等级高于默认值,则行动会检查条件状态,如果没有则不会。


Enemy AI Level


Enemy AI levels do not determine how difficult they are. Instead, they determine how strictly they will follow the <AI Priority> lists. An AI Level of 80 means it has an 80% chance of following the prioritized action on the AI Priority list before moving onto the next one where there will be another 80% chance and so on. If the AI level is lower, the chance is lower, making the AI to be more random.

敌方智能等级:这决定这敌方困难程度。80级的智能意味着将会80%的几率执行智能行动。

Enemy Notetag:

<AI Level: x>

Sets the enemy’s AI level to x. The lower x, the more random the enemy. The higher for x, the more strict the enemy is about following the AI Priority list found in its notebox, too.

设置敌方智能等级


Enemy AI Priority


If an enemy has an AI Priority list, the enemy will go down that list from top to bottom (giving the actions at the top more priority than the ones at the bottom) looking for any actions whose conditions are fulfilled. If that condition is fulfilled, then that action will be the action the enemy will partake in.

如果设置了敌方智能优先执行列表,将会从上到下检索。

To set up a Priority List for the enemy, you must place inside the enemy’s notebox notetags that match the following format:

你需要用下面标签来设置优先列表

<AI Priority>
condition: SKILL x, target
condition: SKILL x, target
</AI Priority>

<AI Priority>
condition: skill name, target
condition: skill name, target
</AI Priority>

Any number of conditions and skills can be placed in between the two <AI Priority> tags. You can choose to use skill ID’s or the skill names. However, if you use the skill names, keep in mind that it is not case sensitive and if any skills in your database have matching names, the skill with the larger skill ID will be the action used.

你可以在里面放置多个条件。


Conditions


The following is a list of ways you can format your conditions for the enemy to choose the right skill. In addition to deciding whether or not the skill will be used, the condition also selects the enemy target. The following list will tell you how the conditions are met and what targets will be selected for battle.

下面这个列表你可以用来参考作为你的条件。

ALWAYS

This condition will always be fulfilled. The valid target group is all targets within scope.

条件总是满足

Example:

Always: Skill 10, Lowest HP%

ELEMENT X case

This allows you to match the element rate of element X (use either a number or the name of the element in place of ‘X’) to see whether or not the conditions for the action are fulfilled. Replace ‘case’ with ‘Neutral’ for normal element rate, ‘Weakness’ for anything above 100% element rate, ‘Resistant’ for below 100% element rate, ‘Null’ for 0% element rate, and ‘Absorb’ for below 0% element rate. Valid targets will be those with the matching element rates.

允许你设置元素情况,例如中立,虚弱,抵抗,无等

Example:

Element Fire Weakness: Fireball, Lowest HP%
Element Water Resistant: Water Cancel, Highest MAT
Element 4 Null: Earthquake, Lowest MDF

EVAL eval

This allows you to use any kind of code to check and fulfill a condition. This condition uses all alive members of the skill’s scope as valid targets.

你可以使用代码来设置条件


Targeting


Targeting is optional but can be done via a small change to the condition. All you have to do is add a ‘,’ after the skill to indicate which target in the valid target group you would like to target. For example:

目标是可选的,你可以用逗号来添加多个目标

Random 50%: Fire, Highest HP%

The condition to be met is the 50% random chance, but if it is fulfilled, the target selected will be the member on the targeting scope’s team with the highest HP percentage. When that happens, the ‘Fire’ skill will be used upon that target.

50%的概率,用火攻击生命百分比最高的

If no target is specified, a random target will be selected amongst the group of valid targets. Otherwise, refer to the following list:

如果目标没有特殊情况,将会随机选择,其他可参考列表


Happy RPG Making!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 211,948评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,371评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,490评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,521评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,627评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,842评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,997评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,741评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,203评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,534评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,673评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,339评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,955评论 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,770评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,000评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,394评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,562评论 2 349

推荐阅读更多精彩内容