To automate the game completely you need to handle hero creation and game restarting. There are also many events that you might want to handle once per party (for example when item drops, you don't want all heroes to race for it)
Create script called whatever you want, for example MyParty.cs
and inherit from AutomaticParty
class
using GrindFest.BotApi;
using UnityEngine;
class MyParty : AutomaticParty
{
}
If you have multiple heroes, you might want to do actions in the Update method of AutomaticParty and use SelectedHero to do actions on the currently selected hero
using GrindFest.BotApi;
using UnityEngine;
class MyParty : AutomaticParty
{
void Update()
{
if (Input.GetKeyDown(KeyCode.F1))
{
SelectedHero.OpenInventory();
}
}
}
- Checkout AutomaticParty class api reference