Reference
Block reference
Every trigger, condition and effect in the kit, with its fields. Regenerated from the code with Tools > AutoBattleKit > Docs > Generate Block Reference, so your own blocks appear too.
Generated from code by Tools > AutoBattleKit > Docs > Generate Block Reference. Every ability is a trigger, optional conditions (all must pass) and effects (run in order). The Example column is what the block says with its default values.
Conditions
| Block | Picker path | Example | Works on | Fields |
|---|---|---|---|---|
| Armor Is Zero | Armor/Armor Is Zero | if the enemy has no armor | any trigger | who (TargetRef) |
| Chance | Chance | 25% chance | any trigger | percent (int) |
| Behind On Health | Custom/Behind On Health | if you have less health than the enemy | any trigger | |
| Once Per Round | Custom/Once Per Round | once per round | any trigger | |
| Damage Kind Is | Event/Damage Kind Is | from poison damage | any trigger | kind (DamageKind) |
| From Strike | Event/From Strike | from a strike | any trigger | |
| Health Above Percent | Health/Health Above Percent | while above 50% health | any trigger | percent (int), who (TargetRef) |
| Health Below Percent | Health/Health Below Percent | while at or below 50% health | any trigger | percent (int), who (TargetRef) |
| Item Tag Count | Items/Item Tag Count | if you own 2+ (no tag) items | any trigger | tag (text), count (int) |
| Next To Item | Items/Next To Item | if next to a (no tag) item | any trigger | tag (text), count (int) |
| Every Nth Time | Limit/Every Nth Time | every 3rd time | any trigger | n (int) |
| Once Per Battle | Limit/Once Per Battle | once per battle | any trigger | |
| Uses Per Battle | Limit/Uses Per Battle | up to 2 times per battle | any trigger | uses (int) |
| Not | Logic/Not | if you have no Poison | any trigger | condition (Condition) |
| Compare Stat | Stats/Compare Stat | if your Speed is higher than the enemy's Speed | any trigger | stat (StatType), comparison (Comparison), against (TargetRef) |
| Stat At Least | Stats/Stat At Least | if you have 5+ Attack | any trigger | who (TargetRef), stat (StatType), value (int) |
| Has Status | Status/Has Status | if the enemy has (no status) | any trigger | who (TargetRef), statusId (text) |
| Allies Alive | Team/Allies Alive | if 1+ ally is alive | any trigger | atLeast (int) |
| Is Front | Team/Is Front | while in front | any trigger | |
| Every Nth Turn | Turn/Every Nth Turn | every other turn | any trigger | n (int) |
| First Turn | Turn/First Turn | first turn only | any trigger |
Effects
| Block | Picker path | Example | Works on | Fields |
|---|---|---|---|---|
| Critical Strike | Combat/Critical Strike | strike for double damage | BeforeStrike | bonusPercent (int) |
| Gain Extra Strikes | Combat/Gain Extra Strikes | strike 1 extra time this turn | any trigger | amount (Amount) |
| Gain Extra Turn | Combat/Gain Extra Turn | take another turn after this one | any trigger | |
| Skip Strikes | Combat/Skip Strikes | the enemy loses its next strike | any trigger | target (TargetRef), amount (Amount) |
| Detonate Status | Custom/Detonate Status | detonate the enemy's Poison: remove it all and deal 2 damage per stack | any trigger | target (TargetRef), statusId (text), damagePerStack (int) |
| Reflect Damage | Custom/Reflect Damage | reflect 50% of strike damage back at the attacker | BeforeDamaged | percent (int) |
| Deal Damage | Damage/Deal Damage | deal 1 damage to the enemy | any trigger | target (TargetRef), amount (Amount), kind (DamageKind) |
| Gain Armor | Defense/Gain Armor | gain 1 Armor | any trigger | target (TargetRef), amount (Amount) |
| Cancel Event | Event/Cancel Event | cancel it | BeforeStrike, BeforeStruck, BeforeDamaged, BeforeDeath | |
| Cap Event Amount | Event/Cap Event Amount | cap it at 5 | BeforeStrike, BeforeStruck, BeforeDamaged | max (int) |
| Dodge | Event/Dodge | dodge it | BeforeStruck, BeforeDamaged | |
| Modify Event Amount | Event/Modify Event Amount | reduce it by 1 | BeforeStrike, BeforeStruck, BeforeDamaged | delta (Amount) |
| Multiply Event Amount | Event/Multiply Event Amount | double it | BeforeStrike, BeforeStruck, BeforeDamaged | percent (int) |
| Survive At | Event/Survive At | survive at 1 health instead | BeforeDeath | health (int) |
| Heal | Healing/Heal | heal 1 | any trigger | target (TargetRef), amount (Amount) |
| Lifesteal | Healing/Lifesteal | heal 50% of the damage | any trigger | percent (int) |
| Modify Stat | Stats/Modify Stat | gain 1 Attack | any trigger | target (TargetRef), stat (StatType), amount (Amount) |
| Apply Status | Status/Apply Status | give the enemy 1 (no status) | any trigger | target (TargetRef), statusId (text), amount (Amount) |
| Cleanse | Status/Cleanse | remove all your debuffs | any trigger | target (TargetRef), polarity (StatusPolarity) |
| Remove Status | Status/Remove Status | lose 1 (no status) | any trigger | target (TargetRef), statusId (text), amount (Amount) |
| Steal Status | Status/Steal Status | steal 1 (no status) from the enemy | any trigger | from (TargetRef), statusId (text), amount (Amount) |
| Summon Unit | Team/Summon Unit | summon a 5/2 Wolf | any trigger | unitName (text), sprite (Sprite), health (int), attack (int), armor (int), speed (int), passives (list of Ability) |
Triggers
| Trigger | On you | On the enemy (Scope: Opponent) | On an ally (Scope: Ally) |
|---|---|---|---|
| BattleStart | Battle start | Enemy battle start | Ally battle start |
| TurnStart | Turn start | Enemy turn start | Ally turn start |
| TurnEnd | Turn end | Enemy turn end | Ally turn end |
| BeforeStrike | Before you strike | Before the enemy strikes | Before an ally strikes |
| OnHit | On hit | When the enemy hits | When an ally hits |
| OnStruck | When struck | When the enemy is struck | When an ally is struck |
| BeforeDamaged | Before taking damage | Before the enemy takes damage | Before an ally takes damage |
| Damaged | When you lose health | When the enemy loses health | When an ally loses health |
| Wounded | When wounded | When the enemy is wounded | When an ally is wounded |
| Exposed | When your armor breaks | When the enemy's armor breaks | When an ally's armor breaks |
| Healed | When healed | When the enemy heals | When an ally heals |
| StatusGained | When you gain a status | When the enemy gains a status | When an ally gains a status |
| BeforeDeath | Before you would die | Before the enemy would die | Before an ally would die |
| BeforeStruck | Before you are struck | Before the enemy is struck | Before an ally is struck |
| Countdown | When the countdown ends | When an enemy countdown ends | When an ally countdown ends |
| Died | When you die | When an enemy dies | When an ally dies |
| Summoned | When summoned | When an enemy is summoned | When an ally is summoned |
| BattleWon | After winning a battle | After the enemy wins | After your side wins |
Targets
| Target | Means |
|---|---|
| Self | yourself |
| Opponent | the enemy |
| EventSource | the attacker |
| RandomEnemy | a random enemy |
| LowestHealthEnemy | the weakest enemy |
| HighestAttackEnemy | the strongest enemy |
| BackEnemy | the back enemy |
| AllEnemies | all enemies |
| AllAllies | all allies |
| RandomAlly | a random ally |
| LowestHealthAlly | the weakest ally |
| AdjacentAllies | adjacent allies |
| FrontAlly | the front ally |
| EventSubject | them |