Skip to content

Schedule Battle Command

Schedule Battle Command

Schedules a battle command to be executed on a target battler during combat.

Properties

System

Name Explanation Type
Battle Command Unique ID The unique ID of the battle command to schedule. Variable or Value
Select All When enabled, all available targets will be selected for the battle command. Switch or Value
Select Random When enabled, a random target will be selected for the battle command. Switch or Value
Target Unique ID The unique ID of the specific battler to target with the battle command. Variable or Value

Examples

Schedule a Battle Command on a Specific Target

This schedules the battle command identified by Global Variable 0 on the battler identified by Global Variable 1.

schedule_battle_command($gv[0], $gv[1]);
{"Data":{"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"SelectAll":false,"SelectRandom":false,"TargetUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.ScheduleBattleCommandCommand"}

Schedule a Battle Command Selecting All Targets

This schedules a battle command and selects all available targets.

schedule_battle_command($gv[0], $gv[1], select_all: true);
{"Data":{"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"SelectAll":true,"SelectRandom":false,"TargetUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.ScheduleBattleCommandCommand"}

Schedule a Battle Command with Random Target Selection

This schedules a battle command and selects a random target from the available targets.

schedule_battle_command($gv[0], $gv[1], select_random: true);
{"Data":{"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"SelectAll":false,"SelectRandom":true,"TargetUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.ScheduleBattleCommandCommand"}