User Tools

Site Tools


plugin-block-generate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin-block-generate [2025/07/04 00:25] – [Notetags] isiahgamesplugin-block-generate [2025/07/04 00:45] (current) – [Script Calls] isiahgames
Line 59: Line 59:
 <Change Block [State Name]: [+/-]X></code> | States | Determines how much an Actor with the State will gain/lose Block at the end of their turn (during the Regenerate Step). Can stack from multiple sources. \\ 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 | <Change Block [State Name]: [+/-]X></code> | States | Determines how much an Actor with the State will gain/lose Block at the end of their turn (during the Regenerate Step). Can stack from multiple sources. \\ 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 |
 | <code><Fill Block [State ID]> | <code><Fill Block [State ID]>
-<Fill Block [State Name]></code> | When this State is applied to a Battler, it will set the specified Block State's value to max. \\ Maximul will take the Battler's Maxmimum for that Block State set by their Notetags. If no maximum was provided, will default to Maximum set in parameters. | +<Fill Block [State Name]></code> | States | When this State is applied to a Battler, it will set the specified Block State's value to max. \\ Maximul will take the Battler's Maxmimum for that Block State set by their Notetags. If no maximum was provided, will default to Maximum set in parameters. | 
 | <code><Clear Block [State ID]> | <code><Clear Block [State ID]>
-<Clear Block [State Name]></code> | When this State is applied to a Battler, the Block State value is set to 0. |+<Clear Block [State Name]></code> | States | When this State is applied to a Battler, the Block State value is set to 0. |
 | <code><Negate Block [State ID]> | <code><Negate Block [State ID]>
 <Negate Block [State Name]></code> | States | When a State with this Notetag is applied to an actor, Block State is removed and it cannot be applied to the Battler until this State elapses or is removed. | <Negate Block [State Name]></code> | States | When a State with this Notetag is applied to an actor, Block State is removed and it cannot be applied to the Battler until this State elapses or is removed. |
Line 67: Line 67:
 ===== 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'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 =====
plugin-block-generate.1751581512.txt.gz · Last modified: 2025/07/04 00:25 by isiahgames