User Tools

Site Tools


plugin-block-generate

This is an old revision of the document!


Table of Contents

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

Notetags

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.1711230260.txt.gz · Last modified: 2024/03/23 22:44 by banerjeesw