Skip to content

Alter Battle Command

Alter Battle Command

Modifies the properties of a battle command during combat, such as its name, targeting behavior, and use scope.

Properties

System

Name Explanation Type
Alter Auto Target When enabled, the auto target property of the battle command will be altered. Toggle
Alter Description When enabled, the description of the battle command will be altered. Toggle
Alter Enabled When enabled, the enabled state of the battle command will be altered. Toggle
Alter Icon When enabled, the icon of the battle command will be altered. Toggle
Alter Name When enabled, the name of the battle command will be altered. Toggle
Alter Targeting Animation When enabled, the targeting animation of the battle command will be altered. Toggle
Alter Targets All When enabled, the targets all property of the battle command will be altered. Toggle
Alter Targets Random When enabled, the targets random property of the battle command will be altered. Toggle
Alter Use Scope When enabled, the use scope of the battle command will be altered. Toggle
Auto Target Whether the battle command should auto-target. Switch or Value
Battle Command Unique ID The unique ID of the battle command to alter. Variable or Value
Description The description text to assign to the battle command. Variable or Value
Enabled Whether the battle command is enabled. Switch or Value
Icon The icon index to assign to the battle command. Variable or Value
Name The display name to assign to the battle command. Variable or Value
Targeting Animation The targeting animation to assign to the battle command. Variable or Value
Targets All Whether all targets should be selected by the battle command. Switch or Value
Targets Random Whether random targets should be selected by the battle command. Switch or Value
Use Scope The use scope to assign to the battle command. Variable or Value

Examples

Rename a Battle Command

This changes the display name of the battle command identified by Global Variable 0.

alter_battle_command($gv[0], name: $gv[1]);
{"Data":{"AutoTarget":true,"BattleCommandName":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Description":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"Enabled":true,"Icon":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAutoTarget":false,"IsDescription":false,"IsEnabled":false,"IsIcon":false,"IsName":true,"IsTargetingAnimation":false,"IsTargetsAll":false,"IsTargetsRandom":false,"IsUseScope":false,"TargetingAnimation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"TargetsAll":false,"TargetsRandom":false,"UseScope":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.AlterBattleCommandCommand"}

Disable a Battle Command

This disables the battle command identified by Global Variable 0 so it cannot be selected.

alter_battle_command($gv[0], enabled: false);
{"Data":{"AutoTarget":true,"BattleCommandName":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Description":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"Enabled":false,"Icon":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAutoTarget":false,"IsDescription":false,"IsEnabled":true,"IsIcon":false,"IsName":false,"IsTargetingAnimation":false,"IsTargetsAll":false,"IsTargetsRandom":false,"IsUseScope":false,"TargetingAnimation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"TargetsAll":false,"TargetsRandom":false,"UseScope":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.AlterBattleCommandCommand"}

Set a Battle Command to Target All with Auto Targeting Disabled

This modifies the battle command to disable auto targeting and enable targeting all available battlers.

alter_battle_command($gv[0], auto_target: false, targets_all: true);
{"Data":{"AutoTarget":false,"BattleCommandName":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"BattleCommandUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Description":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"Enabled":true,"Icon":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsAutoTarget":true,"IsDescription":false,"IsEnabled":false,"IsIcon":false,"IsName":false,"IsTargetingAnimation":false,"IsTargetsAll":true,"IsTargetsRandom":false,"IsUseScope":false,"TargetingAnimation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"TargetsAll":true,"TargetsRandom":false,"UseScope":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.AlterBattleCommandCommand"}