Skip to content

Change Battle Counter

Change Battle Counter

Adjusts or sets the battle counter value of a specific battler during combat.

Properties

System

Name Explanation Type
Battler Unique ID The unique ID of the battler whose counter will be changed. Variable or Value
Counter The amount to adjust the counter by or set the counter to. Variable or Value
Use As Delta Value When enabled, the counter is adjusted by the specified amount. When disabled, the counter is set to the specified amount. Toggle

Examples

Increase a Battler Counter by a Delta Value

This increases the battle counter of the battler identified by Global Variable 0 by the amount stored in Global Variable 1.

change_battle_counter($gv[0], $gv[1]);
{"Data":{"BattlerUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Counter":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"IsDeltaOperation":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.ChangeBattleCounterCommand"}

Set a Battler Counter to an Absolute Value

This sets the battle counter of the specified battler to exactly 100, replacing the current value.

change_battle_counter($gv[0], 100, set);
{"Data":{"BattlerUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Counter":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"100","VariableIndex":0,"Metadata":null},"IsDeltaOperation":false,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.ChangeBattleCounterCommand"}