User Tools

Site Tools


plugin-block-generate

This is an old revision of the document!


MYTH_BlockGenerate 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 has you select one State as the Block State which is automatically applied to an Actor or Enemy when they have any amount of Block. It includes Notetags and Script Calls (see below) for determining how this Block is gained and lost from different sources.

Current Version: 1.0.0

Parameters

Block State ID Set this to the ID of the Block State in your Database.
Default Initial Block Default Initial Block value for all Battlers at Battle Start.
Default Max Block Default Max Block value for all Battlers at Battle Start. Set to -1 to have no Max.
Position Offset X and Y Offsets for the Block Icon relative to its base position at the Actor.

Notetags

Notetag Syntax Description
<Card Type: type_name>
Replace “type_name” with the name of the Card Type (case sensitive) that you want this skill to have. A Skill/Card can have multiple Card Types, using multiple instances of this notetag.

Script Calls

{battler}.getBlock()
Returns the Battler's current Block value.
{battler}.setBlock(value, show)
Sets the Battler's Block to value. Show can be true/false depending on whether you want a Damage Popup and Battle Log message to show the change.
{battler}.addBlock(value, show)
Adds to the Battler's Block. Value can be either positive or negative. If it goes over the Battler's Max or under 0, the value is automatically clamped. Show can be true/false depending on whether you want a Damage Popup and Battle Log message to show the change.
{battler}.clearBlock(show)
Clears the Battler's Block setting it to 0 and removing the Block State.

Version History

**v1.0.0** 
- Base Functionality complete! Will probably come back around and do some minor edits 
once I am done testing this with the CGC Demo Project.
plugin-block-generate.1711254130.txt.gz · Last modified: 2024/03/24 05:22 by banerjeesw