Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
plugin-block-generate [2025/07/04 00:25] – [Notetags] isiahgames | plugin-block-generate [2025/07/04 00:45] (current) – [Script Calls] isiahgames |
---|
===== Script Calls ===== | ===== Script Calls ===== |
|< 100% 30% >| | |< 100% 30% >| |
| <code>{battler}.getBlock()</code> | Returns the Battler's current Block value. | | | <code>{battler}.getBlock(id)</code> | Returns the Battler's current value for the Block State of the specified ID. | |
| <code>{battler}.setBlock(value, show)</code> | 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. | | | <code>{battler}.setBlock(id, value, show)</code> | Sets the Battler's value for Block State of the specified ID. Show can be true/false depending on whether you want a Damage Popup and Battle Log message to show the change. | |
| <code>{battler}.addBlock(value, show)</code> | 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. | | | <code>{battler}.addBlock(id, value, show)</code> | Adds value to the Battler's Block State of the specified ID. 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. | |
| <code>{battler}.clearBlock(show)</code> | Clears the Battler's Block setting it to 0 and removing the Block State. | | | <code>{battler}.fillBlock(id, show)</code> | Fills the Battler's Block State by setting it to max. Show can be true/false based on if you want a Damage Popup and Battle log Message to show the change. | |
| | <code>{battler}.clearBlock(id, show)</code> | Clears the Battler's Block State setting it to 0 and removing the Block State. | |
| |
===== Version History ===== | ===== Version History ===== |