============================================================================
Overview
============================================================================
Block Generate is a utility plugin which simulates Block in the style of
deckbuilders like Slay the Spire. Block is a defensive resource that can be
accumulated by playing cards or having certain items equipped. When damage
is dealt to the Actor, Block is deducted first before Health.
This plugin lets you designate states as Block States and Resource States.
Block States allow an Actor or Enemy to build block as a resource and use it
as part of their Actions. You can configure each Block State to have a
different initial and max value, damage type interactions, and log messages.
Actors can have multiple Block States on them at a given time with each State
managing its own Block value.
If there are multiple Block States on a target and they take Damage, you can
choose the rules by which that Damage is dealt in the Plugin Parameters.
1) Ascending - Block States with lower IDs will lose value first.
2) Descending - Block States with higher IDs will lose value first.
3) Even Spread - Damage is equally distributed among all valid Block States.
You can also set rules about who Block States interact with Slip Damage and
whether a State is removed when its value hits 0 in the plugin parameters.
Resource States are purely for UI where they show a readout of an Actor/Enemy's
resources such as HP, MP, TP etc. You can also set each Resource States to
pull its value from a different value associated with the Battler (e.g. ATK,
DEF, MAT, MDF, Gold) by changing the value in the Text tab.
Both Block and Resource States are shown in Battle via Icons with Text drawn
on them. You can configure the appearance and placement of these Icons in the
paramters for each state.
There are a number of Notetags and Script Calls that allow you to configure
Block settings for Actors and Enemies. In addition, a number of new Card
Actions have been added to let you make Cards that can manipulate the Block
values of targets. Please review them below.
============================================================================
Card Actions
============================================================================
Add Block [State ID] [+/-]X
Add Block [State Name] [+/-]X
Adds X to the value of a Block State for the target of the Card Actions.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
Set Block [State ID] X
Set Block [State Name] X
Sets the value of a Block State to X for the target of the Card Actions.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a positive whole number.
X can be the value stored in a Variable using \v[x] text code.
Fill Block [State ID]
Fill Block [State Name]
Sets the value of a Block State to max for the target of the Card Actions.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
Maximum will take the Battler's Maximum for a Block State set by their Notetags.
If no maximum was provided, will default to Maximum set in parameters.
Clear Block [State ID]
Clear Block [State Name]
Sets the value of a Block State to 0 for the target of the Card Actions.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
============================================================================
Notetags
============================================================================
For Actors, Classes and Enemies:
<Init Block [State ID]: X>
<Init Block [State Name]: X>
Sets initial value of a Block State of this Actor/Enemy to X at battle start.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
<Max Block [State ID]: X>
<Max Block [State Name]: X>
Sets maximum value of a Block State of this Actor/Enemy to X can have at once.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
<Hide Block [State ID]>
<Hide Block [State Name]>
<Hide Block [State ID], [State ID], ... >
<Hide Block [State Name], [State Name], ...>
<Hide All Block>
Hides Icon of a Block State on the Battler's Sprite and Windows.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
Hide All Block will hide icons for every ID on the Block State list.
<Hide Resc [State ID]>
<Hide Resc [State Name]>
<Hide Resc [State ID], [State ID], ...>
<Hide Resc [State Name], [State Name], ....>
<Hide All Resc>
Hide Icon of a Resource State on the Battler's Sprite and Windows.
If an ID is not provided, it defaults to the first Resource State in the list.
You may use name of the Resource State instead of the ID (not case sensitive).
Hide All Resc will hide icons for every ID on the Resc State List.
For Skills and Items:
<Ignore Block [State ID]>
<Ignore Block [State Name]>
<Ignore Block [State ID], [State ID], ...>
<Ignore Block [State Name], [State Name], ...>
Damage Formula of these Skills/Items will ignore target's Block State X
value and deal their damage directly to HP instead. Useful for "piercing"
type Skills/Items.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
For Weapons and Armors:
<Mod Init Block [State ID]: [+/-]X>
<Mod Init Block [State Name]: [+/-]X>
Modifies an Actor's Initial for a value Block State by adding Y to it.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
Can stack from multiple sources (like different pieces of equipment).
<Mod Max Block [State ID]: [+/-]X>
<Mod Max Block [State Name]: [+/-]X>
Modifies an Actor's Max for a Block State value by adding X to it.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
Can stack from multiple sources (like different pieces of equipment).
For States:
<Change Block [State ID]: [+/-]X>
<Change Block [State Name]: [+/-]X>
Determines how much an Actor with a Block State will gain/lose Block at the
end of their turn (during the Regenerate Step).
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
X must be a negative or positive whole number.
X can be the value stored in a Variable using \v[x] text code.
Can stack from multiple sources (like different States on the same Battler).
If there is both Block Gain and Block Loss from multiple States, the values
are summed together and applied as a single instance of generation e.g. if
State A gains 20 BLOCK each turn and State B loses 40 Block each turn, then
an Actor with both State A and B loses 20 Block (+20 - 40 = -20) each turn
<Fill Block [State ID]>
<Fill Block [State Name]>
<Fill Block [State ID], [State ID], ...>
<Fill Block [State Name], [State Name], ...>
When a State with this Notetag is applied to a Battler, that Block State value
is set to max. If an ID is not provided, it defaults to the first Block State in
the list. You may use name of the Block State instead of the ID (not case
sensitive). Maximum will take the Battler's Maximum for that Block State set by
their Notetags.
If no maximum was provided, will default to Maximum set in parameters.
<Clear Block [State ID]>
<Clear Block [State Name]>
<Clear Block [State ID], [State ID], ...>
<Clear Block [State Name], [State Name], ...>
When a State with this Notetag is applied to a Battler, the Block State value
is set to 0. If an ID is not provided, it defaults to the first Block State in
the list. You may use name of the Block State instead of the ID (not
case sensitive).
<Negate Block [State ID]>
<Negate Block [State Name]>
<Negate Block [State ID], [State ID], ...>
<Negate Block [State Name], [State Name], ...>
When a State with this Notetag is applied to a Battler, Block State is removed
and can't be applied to the Battler until this state elapses or is removed.
Anything trying to Add or Set value to Block State will fail while this State
is on the Battler.
If an ID is not provided, it defaults to the first Block State in the list.
You may use name of the Block State instead of the ID (not case sensitive).
============================================================================
Script Calls
============================================================================
For Actors and Enemies:
{battler}.getBlock(id)
Returns the Battler's current value for Block State of specified ID.
If an ID is not provided, it defaults to the first Block State in the list.
{battler}.setBlock(id, value, show)
Sets the Battler's value for Block State of specified ID.
If an ID is not provided, it defaults to the first Block State in the list.
Value will be processed as a positive or negative whole number.
Show can be true/false based on if you want a Damage Popup + Log Message
for the action.
{battler}.addBlock(id, value, show)
Adds value to the Battler's Block State of specified ID.
If an ID is not provided, it defaults to the first Block State in the list.
Value will be processed as a positive or negative whole number.
If it goes over the Battler's Max or under 0, the value is automatically clamped.
Show can be true/false based on if you want a Damage Popup + Log Message
for the action.
{battler}.fillBlock(id, show)
Fills the Battler's Block State of specified ID setting it to max.
If an ID is not provided, it defaults to the first Block State in the list.
Maximum will take the Battler's Maximum for Block State X set by their
Notetags. If no maximum was provided, will default to Maximum set in
parameters. Show can be true/false based on if you want a Damage Popup
+ Log Message for the action.
{battler}.clearBlock(id, show)
Clears the Battler's Block State of specified ID setting it to 0.
If an ID is not provided, it defaults to the first Block State in the list.
Show can be true/false based on if you want a Damage Popup + Log Message
for the action.
============================================================================
For more information and other features please use the wiki
that has been made for this and all related plugins:
http://card-game-combat-help.alwaysdata.net/
============================================================================
============================================================================
Version History
============================================================================
v1.4.1 - Enemies appearing midway in Battle properly have Block/Resc States
- Transforming an Enemy now properly sets them to Initial Block Values
v1.4.0 - Fixed Enemy State Icon flickering issue
- Added support for Block States used in Card Summons (for summoners)
- Fixed Show Icon on Battler and Show Icon on Window struct parameters
- Added support for formula input in Init Block, Max Block,
Mod Max Block, Mod Init Block, Change Block Notetags
- Added support for comma seperated values in Hide Block, Hide Resc,
Ignore Block, Fill Block, Clear Block, Negate Block Notetags
- Added Class Notetags for Init Block, Max Block, Hide Block, Hide Resc
v1.3.2 - Fixed bug where Block States were not being cleared at Battle Start.
v1.3.1 - Improved Message Warning infrastructure.
v1.3.0 - Changed parameters to accomodate multiple Block/Resource States
- Changed Notetags, Card Actions and Script Calls to work
with new params
- Added Param to turn on/off Battle Log Messages for Block States
- Added Param to turn on/off Damge Popups for Block States
- Added Param letting you set the Damage Popup colors per Block State
- Added Param for whether Slip Damage reduces Block value before HP
- Added Param to let you set Resource States to HP, MP, TP or others
- Added Params to turn on/off State Icons on Actors and Windows
- Block Font Color does not change with Actor HP State in Windows
- Allowed using State Names instead of ID for Card Actions
and Notetags
- Changed <Block Change> Notetag syntax to <Change Block>
- Added <Fill Block> and <Clear Block> State Notetags
- Added support for Variable Input in Card Actions and Notetags
v1.2.0 - Fixed issue with Normal Attack damage type ignoring Block
- <Ignore Block> is working again and unaffected by Damage Types
- Added new Card Actions for Add Block, Set Block and Clear Block
- Fixed bug where Block carried over rounds despite showing it cleared
v1.1.0 - Added in Health Icon in case users want to show both Health and
Block on a Battler. Has a Notetags if you want to hide it.
- Block and Health values are written to Icons on Actor & Party Windows
Can set different Fonts for Block and Health Icon text.
- Exposed the text for State Messages for Block and Break. Now can
be customized. Has differences between MV and MZ.
- Added support for Elements. You can now choose which Damage Types
the Block State reduces vs which ones are ignored.
- Different Icon Offsets can be declared for Actors and Enemies
v1.0.0 - Base Functionality complete! Will probably come back around and do
some minor edits once I am done testing this with CGC Demo Project.
============================================================================
Contact Info
============================================================================
This tool was developed by folks at MythAtelier LLC. We make Games that Care.
Need more tools for your project? Be sure to check out our other plugins here:
https://itch.io/c/1695699/tools-plugins
Have any questions? Run into any bugs? Want to chat? Best place to reach us:
https://discord.gg/wRk4XHF5tZ
If you like this plugin and want to support us, please give our Patreon a look:
https://www.patreon.com/mythatelier
Other Places to Find Us:
- YouTube: https://www.youtube.com/channel/UCQn_1kWmj2iAkNEv9eqL_LA
- BSky: https://bsky.app/profile/mythatelier.itch.io
- Steam: https://store.steampowered.com/search/?developer=MythAtelier%2C%20LLC