Skip to content

Start Battle

Start Battle

Initiates a battle with the specified enemy formation and battle backdrop.

Properties

System

Name Explanation Type
Battle Backdrop The battle backdrop to use for the battle scene. Variable or Value
Enemy Formation The enemy formation to use for the battle. Variable or Value
Enemy Formation Seed The seed value to use for enemy formation randomization. Only used when Use Enemy Formation Seed is enabled. Variable or Value
Enemy Formation Seed Result The variable to store the resulting enemy formation seed in. Only used when Store Results is enabled. Variable or Value
Store Results When enabled, the resulting enemy formation seed will be saved to the specified variable. Toggle
Use Enemy Formation Seed When enabled, a specific seed value will be used for enemy formation randomization instead of a random seed. Toggle

Examples

Start a Battle with Backdrop 0 and Formation 0

This starts a battle using battle backdrop 0 and enemy formation 0.

start_battle(0, 0);
{"Data":{"BattleBackdropIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"EnemyFormationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"EnemyFormationSeed":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"EnemyFormationSeedResult":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":-1,"Metadata":null},"StoreResults":false,"UseEnemyFormationSeed":false,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.StartBattleCommand"}

Start a Battle with a Specific Seed Value

This starts a battle using backdrop 1 and formation 2, with a specific seed for enemy formation randomization.

start_battle(1, 2, seed: 42);
{"Data":{"BattleBackdropIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"EnemyFormationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"2","VariableIndex":0,"Metadata":null},"EnemyFormationSeed":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"42","VariableIndex":0,"Metadata":null},"EnemyFormationSeedResult":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":-1,"Metadata":null},"StoreResults":false,"UseEnemyFormationSeed":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.StartBattleCommand"}

Start a Battle and Store the Resulting Seed

This starts a battle and stores the resulting enemy formation seed in Global Variable 0 for later use.

$gv[0] = start_battle(0, 1, seed: $gv[1]);
{"Data":{"BattleBackdropIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"EnemyFormationIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"EnemyFormationSeed":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"EnemyFormationSeedResult":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"StoreResults":true,"UseEnemyFormationSeed":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.StartBattleCommand"}