生き物やプレイヤーのレースを追加し、それらのレースに基づいて修正されたダメージを受けたり受けたりする方法を追加するプラグイン – AES_RaceCore.js
- タイトル
- Adds creature/player races, plus ways to deal or receive modified damage based on these races.
- 作者名
- Aesica様
- ヘルプ
- For terms of use, see: https://github.com/Aesica/RMMV/blob/master/README.md
Support me on Patreon: https://www.patreon.com/aesica
===================
Introduction
===================
Add races to players and enemies! This also allows you to assign bonuses or
penalties to attacks made by or against creatures of specific races. Ever
want to create a Dragonslayer sword, a spell which does extra damage against
undead regardless of elemental affinity, or armor that reduces damage dealt
by demons? Now you can! This can even be used to cause healing effects
to damage undead foes, or healing to have no effects on mechanical beings.
===================
Note Tags
===================
- Actor/Enemy note tags:
<Subrace: x>
Specify a subrace for the actor or enemy. This is for vanity purposes only,
and is accessible via Game_BattlerBase.prototype.subrace as outlined below.
If no subrace exists, returns an empty string instead.
- Actor/Enemy, Class, Equip,and State note tags:
<Race: RaceType> sets the creature/actor's racetype(s)
Adds the specified race to the battler's race list.
<Sex: n>
Specfies a sex for the actor/enemy based on priority:
Actor/Enemy < Class < Equips < States, with Actor/Enemy having the lowest
priority and states having the highet priority. So if an actor is set to
Female, she could equip a ring that changes her to Male. Please don't be
gross with this, guys.
- Actor/Enemy, Class, Equip, State, Item/Ability note tags:
<Attack vs RaceType: n>
All attacks vs this racetype are multiplied by n
<Physical Attack vs RaceType: n>
Physical attacks vs this racetype are multiplied by n
<Magical Attack vs RaceType: n>
Magical attacks vs this racetype are multiplied by n
<Certain Attack vs RaceType: n>
Certain hit attacks vs this racetype are multiplied by n
<Defense vs RaceType: n>
All incoming attacks from this racetype are multiplied by n
<Physical Defense vs RaceType: n>
Physical incoming attacks from this racetype are multiplied by n
<Magical Defense vs RaceType: n>
Magical incoming attacks from this racetype are multiplied by n
<Certain Defense vs RaceType: n>
Certain hit incoming attacks from this racetype are multiplied by n
- Replace "RaceType" with the desired race text (ex: Humanoid, Dragonkin,
Celestial, Robot, Potato, etc) or race ID pointing to a race defined in the
plugin parameters. Be aware that the first race is at index 1, as 0 is
reserved for the Unknown racial identifier.
- To assign more than one race to an actor/enemy, separate with commas (ex: <Race: Undead, Plant>
- Replace "n" with the desired multiplier. (ex: 0.5 for 50% damage, 2.5 for 250% damage, etc)
- All modifiers are multiplicative with one another.
- Since this is a battle plugin, place it below other battle plugins, especially if they overwrite Game_Action.prototype.makeDamageValue
===================
Note Tag Examples
===================
<Race: Aberration> - assigns the race, "Aberration," to an actor or enemy.
This is pretty straightforward~
<Physical Attack vs Aberration: 1.5> - 150% damage modifier against
"Aberration" actors or enemies when using physical attacks. If assigned to
a skill or item, the bonus applies only when that skill or item is used. If
assigned to a weapon or armor, the bonus applies to every physical attack as
long as the weapon or armor is equipped. If assigned to a state, the bonus
only applies if the attacking actor/enemy is affected by that state. If
assigned to a class, any actor of that class gains the bonus. If assigned
to an actor or enemy, the bonus is always enabled for that actor/enemy.
<Magical Defense vs Aberration: 0.8> - 80% damage modifier against magical
attacks from "Aberration" actors or enemies. Same rules applies per source
as listed above.
<Certain Attack vs Aberration: 5> - 500% (!) damage with certain hit
abilities vs "Aberration" actors or enemies.
<Defense vs Aberration: 2> - 200% damage from ALL types of attacks coming
from "Aberration" actors/enemies
<Attack vs Aberration: 0.01> - 1% (!) damage modifier to ALL attacks made
against "Aberration" actors or enemies
<Attack vs Undead: -1> - All damage (or healing) vs Undead will be inverted,
making for an easy solution if you want healing effects to damage undead
===================
Useful Function Calls
===================
Game_BattlerBase.prototype.raceList
Returns array of races associated with the battler.
Game_BattlerBase.prototype.race
Returns a string of all races associated with the battler.
Game_BattlerBase.prototype.defaultRace
Returns the name of the race found on the battler or enemy only. Excludes
class, equip, and state races.
Game_BattlerBase.prototype.subrace
Returns the name of the battler's subrace, if any
Game_BattlerBase.prototype.isRace(race)
Returns true if a battler is associated with the specified race
Game_BattlerBase.prototype.sex
Returns the name of the battler's sex, if any
Game_BattlerBase.prototype.sexId
Returns the ID number of the battler's sex, if any - パラメータ
-
param Unknown Race desc The race to return via battler.raceList when none is specified default Unknown param Unknown Sex desc The sex to return via battler.sex when none is specified default Unknown param Race List desc List of races. Note that the first race is considered to be at index 1, not 0 type text[] default ["Humanoid","Beast","Avian","Aquatic","Dragon","Demon","Undead","Mechanical"] param List Delimiter desc Separator used by Game_BattlerBase.prototype.race for multiple races type text default , param Subrace Fallback desc Determines what to show for battlers without subraces when battler.subrace is invoked type boolean on Primary Race(s) off Empty String default true param Sex List desc List of sexes. Note that the first sex is considered to be at index 1, not 0 type text[] default ["Female","Male","Other"] - ライセンス表記
紹介ページ https://github.com/Aesica/RMMV/blob/master/AES_RaceCore.js