Skip to main content

Blockly

Custom Blocks

Custom blocks add flexibility by allowing block reuse throughout the system. Inputs can be provided to custom blocks, allowing users to input values to the custom block.

Calculations

Calculations are how damage is applied to entities. They can be called with the Apply Calculation block with an attacker and defender. Stat groups can also be added as Temporary Stats for actions like special attacks with multipliers. Inside of calculations, math can be done on stats.

In this example, the calculation (attack * attack) / (attack + defence) + piercing is done to the enemy, and the attacker heals 10% of the damage done.

Calculation Example