Alistair Plugins: Blocking

Introduction

This plugin introduces what I call “Block Rate” and “Block Reduction”. The Block Rate determines the likeliness of blocking an incoming attack. Blocking an attack basically means negating some of the incoming damage altogether. You don’t necessarily need to equip a shield to block damage. Every actor has a block rate that is (by default) based on their DEF and AGI params. Of course you can change the formula or use notetags to change the Block Rate of a specific actor.

Everytime a block occurs the “Block Reduction” comes into play. This value determines the amount of damage that will be blocked. By default, this is a flat percentage (30%) but you can also use a formula or change the Block Reduction Percentage for each actor individually.

You can use this plugin with Yanfly’s Status Menu! If you want to add the Block Rate and Block Reduction to the Attributes List just use “PhyBlockRate”, “MagBlockRate”, “CerBlockRate” and “blockReduction”.

 

Usage

This plugin can be considered Plug & Play (you will have to start a new game, though).

There are some notetags:

ACTORS, ENEMIES

<Physical Block Rate: x%>

Sets this actor’s or enemy’s physical block rate to x%. It will then further be augmented by equipment etc. This notetag will ignore the default plugin parameter setting.

<Magical Block Rate: x%>

Sets this actor’s or enemy’s magical block rate to x%. It will then further be augmented by equipment etc. This notetag will ignore the default plugin parameter setting.

<Certain Block Rate: x%>

Sets this actor’s or enemy’s certain block rate to x%. It will then further be augmented by equipment etc. This notetag will ignore the default plugin parameter setting.

<Block Reduction: x%>

Sets this actor’s or enemy’s block damage reduction to x%. It will then further be augmented by equipment etc. This notetag will ignore the default plugin parameter setting.

You can use a formula with the variables: user, v[x], s[x]. User refers to the battler in question, s[x] to switch x and v[x] to variable x.

 

CLASSES, WEAPONS, ARMOURS, STATES

<Physical Block Rate: +x%> or <Physical Block Rate: -x%>

Increases or decreases physical Block Rate by x%. Note that this is an additive alteration of the value. It’s simply added onto the current value.

<Magical Block Rate: +x%> or <Magical Block Rate: -x%>

Increases or decreases magical Block Rate by x%. Note that this is an additive alteration of the value. It’s simply added onto the current value.

<Certain Block Rate: +x%> or <Certain Block Rate: -x%>

Increases or decreases certain Block Rate by x%. Note that this is an additive alteration of the value. It’s simply added onto the current value.

<Block Reduction: +x%> or <Block Reduction: -x%>

Increases or decreases the Block Damage Reduction by x%. Note that this is an additive alteration of the value. It’s simply added onto the current value.

You can use a formula with the variables: user, v[x], s[x]. User refers to the battler in question, s[x] to switch x and v[x] to variable x.

 

ITEMS, SKILLS

<Ignore Blocking>

This item/skill cannot be blocked.


Settings

 

Physical Block Rate: The default physical block rate for every actor/enemy. This can be a formula with the variables: user, v[x], s[x]. It can be a flat number too (e.g. 10%). Default: (user.def + user.agi) * 0.05

Magical Block Rate: The default magical block rate for every actor/enemy. This can be a formula with the variables: user, v[x], s[x]. It can be a flat number too (e.g. 10%). Default: (user.mdf+ user.agi) * 0.05

Certain Block Rate: The default certain block rate for every actor/enemy. This can be a formula with the variables: user, v[x], s[x]. It can be a flat number too (e.g. 10%). Default: user.luk * 0.05

Block Damage Reduction: The percentage of damage that will be negated with each block. This can be formula with the variables: user, v[x], s[x]. It can be a flat number too (e.g. 30%). Default: 30

Show Block Message: Show a block message if blocking occurs in battle? Variables: user, blockedDamage. Default: true

Block Message: The message that’s shown when blocking occurs. Default: user + ” has blocked ” + blockedDamage + ” damage!”

Physical Block Rate Name: The term used for the Physical Block Rate. Only necessary if you want to use this with Yanfly’s Status Core Plugin. Default: Physical Block Rate

Magical Block Rate Name: The term used for the Magical Block Rate. Only necessary if you want to use this with Yanfly’s Status Core Plugin. Default: Magical Block Rate

Certain Block Rate Name: The term used for the Certain Block Rate. Only necessary if you want to use this with Yanfly’s Status Core Plugin. Default: Certain Block Rate

Block Reduction Name: The term used for Block Damage Reduction. Only necessary if you want to use this with Yanfly’s Status Core Plugin. Default: Block Damage Reduction

Play SE: Play a Sound Effect when Blocking occurs? Default: true

SE Filename: The Filename of the SE to play. Default: Skill2

SE Volume:The Volume of the played Sound Effect. Default: 100

SE Pitch:The Pitch of the played Sound Effect. Default: 100

SE Pan:The Pan of the played Sound Effect. Default: 0


unt1

Get it at my Dropbox

Advertisements

8 thoughts on “Alistair Plugins: Blocking

  1. I rly love this script. First let me say thanks word.
    And i just hope one more feature in scrpts…
    Could you make the feature ‘block value?’
    In example, when character blocked attack with block value “10”, damage was reduced by 10, finally. Also equipment, state…(etc) can increase this value.
    How about this?

    Like

  2. I’m having this weird bug using Yanfly’s Status Menu:

    For physical block rate, after leveling up and going to the status menu, the value isn’t updated the first time. Leaving the menu and entering again and the value gets updated correctly. Magical Rate works just fine.

    Like

Write a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s