using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ORKFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ORKFramework;
public class BattleSystemSwitcher : MonoBehaviour {
public string useActiveTimeVariable;
public string useDynamicCombatVariable;
void Update ()
{
//Check the Game Variable in ORK containing the use of ATB system
if (ORK.Game.Variables.Check (useActiveTimeVariable, true)) {
Debug.LogError ("ChangedBattlesystem !");
//Set The battle Type To ATB
ORK.Battle.SetType (BattleSystemType.ActiveTime);
//Add the player to make the combat more dynamic !
if (ORK.Game.Variables.Check (useDynamicCombatVariable, true)) {
Debug.LogError ("DynamicBattles!!");
//Set The battle Type To ATB
ORK.BattleSystem.activeTime.menuPause = false;
ORK.BattleSystem.activeTime.dynamicCombat = true;
}
} else {
//reset to default turn based system if the bools aren't filled
ORK.Battle.SetType (BattleSystemType.TurnBased);
}
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!