Skip to content

Set Encounter Steps

Set Encounter Steps

Changes the number of steps until the next random encounter.

Properties

System

Name Explanation Type
Steps The number of steps to set the encounter counter to. Variable or Value

Examples

Set Encounter Steps to a Fixed Value

This sets the number of steps until the next random encounter to 100.

set_encounter_steps(100);
{"Data":{"Steps":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"100","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.SetEncounterStepsCommand"}

Set Encounter Steps Using a Global Variable

This sets the number of steps until the next random encounter to the value stored in Global Variable 0.

set_encounter_steps($gv[0]);
{"Data":{"Steps":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Battle.SetEncounterStepsCommand"}