【漢化】YEP.175 – Actor Auto Battle AI

Introduction

This plugin requires YEP_BattleAICore. Make sure this plugin is located under YEP_BattleAICore in the plugin list.
此插件需要YEP_BattleAICore。確保此插件位于插件列表中的YEP_BattleAICore下。

By default, if an actor has the auto battle trait, it will cycle through each one of its learned skills (whether or not it has access to the skill type doesn’t matter) and selects the hardest hitting skill of them all. This setup may work for some auto-battlers but not all of them. What this plugin does is it incorporates the A.I. Priority system from the YEP Library’s Battle A.I. Core for actor auto-battlers.
默認(rèn)情況下,如果一個(gè)角色具有自動(dòng)戰(zhàn)斗特征,它將循環(huán)通過其所學(xué)習(xí)的每一項(xiàng)技能(和技能類型無關(guān))并選擇所有這些技能最難的技能。此設(shè)置可能適用于某些自動(dòng)角色。這個(gè)插件結(jié)合了YEP的戰(zhàn)斗AI核心系統(tǒng)。

If you don’t have YEP_BattleAICore yet, please download it from here.
如果您還沒有YEP_BattleAICore,請從此處下載

Plugin Parameters

Default AI Level: – See ‘Actor AI Level’ in the Notetags section below.
默認(rèn)AI等級(jí):- 請參閱下面的Notetags部分中的'Actor AI Level'。

Bypass Requirement:
– This is a list of the skills that bypass that requirement to have learned the skill in order to use it. This is namely for skills like ‘Attack’ and/or ‘Guard’ that aren’t normally learned by actors, but are available to them through the command window.
直接使用:- 不需要學(xué)習(xí)就可以使用的技能列表。例如“攻擊”和/或“守衛(wèi)”等技能,這些技能通常不會(huì)被角色學(xué)習(xí),但可以通過命令窗口使用。

Curate Skill List:
– Skills used for Auto Battle can only be skills accessible through available skill types. This is a selectable option because sometimes, skills that are learned by actors can be used through auto battle despite not having access to that skill type. An example of this would be an actor that has learned skills in the Knight class, but upon switching to the Mage class the actor loses the Knight skill type. Yet, despite that, auto battle would let the Mage class use skills from the Knight skill type if it’s a part of the setup. Turning this on to curate the skill list will remove the ability use skills outside of available skill types.
技能列表:- 用于自動(dòng)對戰(zhàn)的可用的技能類型。這是一個(gè)可選擇的選項(xiàng),因?yàn)橛袝r(shí)候,角色學(xué)到的技能可以通過自動(dòng)戰(zhàn)斗使用,盡管無法訪問該技能類型。這方面的一個(gè)例子是在Knight類中學(xué)習(xí)技能的演員,但是在切換到Mage類時(shí),演員失去了Knight技能類型。然而,盡管如此,如果它是設(shè)置的一部分,自動(dòng)戰(zhàn)斗將讓Mage類使用Knight技能類型的技能。啟用此功能來刪除在可用技能類型之外的技能。

Undecided AI:
– If no skill is determined through the A.I. Priority list, the actor will use the default Auto Battle AI to determine which skill to use. Otherwise, the actor perform only a basic attack if the setting is false.
未定AI:- 如果未通過AI優(yōu)先級(jí)列表確定技能,則角色將使用默認(rèn)的自動(dòng)對戰(zhàn)AI來確定要使用的技能。否則,如果設(shè)置為false,則actor僅執(zhí)行基本攻擊。

Notetags

The notetags to setup the auto battle A.I. will go into the class noteboxes.
設(shè)置自動(dòng)戰(zhàn)斗AI的注意事項(xiàng)。

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Actor AI Level
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Actor AI levels do not determine how smart 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.
角色的AI等級(jí)并不能決定他們的聰明程度。相反,他們確定他們將嚴(yán)格遵循<AI Priority>列表。AI等級(jí)為80意味著它有80%的機(jī)會(huì)在AI優(yōu)先級(jí)列表上執(zhí)行優(yōu)先操作,然后移動(dòng)到下一個(gè)將有80%的機(jī)會(huì)等等。如果AI水平較低,則機(jī)會(huì)較低,使AI更隨機(jī)。

Class Notetag:

<AI Level: x>
Sets the actor’s AI level to x. The lower x, the more random the actor. The higher for x, the more strict the actor is about following the AI Priority list found in its notebox, too.
將actor的AI級(jí)別設(shè)置為x。x越低,技能越隨機(jī)。x越高,AI優(yōu)先級(jí)列表就越受約束。

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Actor AI Priority
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

If a class has an AI Priority list, the actor 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 actor will partake in.
如果一個(gè)類具有AI優(yōu)先級(jí)列表,則該actor將從上到下(從頂部開始的操作優(yōu)先于底部的操作)查找已滿足條件的操作。如果滿足該條件,那么該動(dòng)作將是角色執(zhí)行的動(dòng)作。

To set up a Priority List for the actor, you must place inside the class’s notebox notetags that match the following format:
要為actor設(shè)置優(yōu)先級(jí)列表,您必須在notebox中放置符合以下格式的notetags:

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

or

<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.
可以在兩個(gè)<AI Priority>標(biāo)簽之間放置任意數(shù)量的條件和技能。您可以選擇使用技能ID或技能名稱。但是,如果您使用技能名稱,請記住它不區(qū)分大小寫,如果數(shù)據(jù)庫中的任何技能具有匹配的名稱,則具有較大技能ID的技能將是所使用的操作。

Conditions

The conditions to be used for the <AI Priority> notetag are the same as the ones from the YEP_BattleAICore plugin. Please refer to the YEP_BattleAICore help file for which conditions can be used with the A.I. setups.
用于<AI Priority> notetag的條件與YEP_BattleAICore插件中的條件相同。請參閱YEP_BattleAICore幫助文件,了解哪些條件可用于AI設(shè)置。

Happy RPG Making!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容