Jasabi 38 Posted April 7, 2017 Share Posted April 7, 2017 Hi, I was wondering if there is a way to edit the way the battlegrounder fights? Currently it looks seriously botty. It follows the same enemy target FOREVER, until death, even if there are other enemies nearby. It doesnt change targets at all, unless the target dies or you die. Would it be possible to hook an event and change the fight and follow behaviour? Or is there another way? thanks Link to comment https://wrobot.eu/forums/topic/5605-edit-battlegrounder-behaviour/ Share on other sites More sharing options...
Droidz 2738 Posted April 11, 2017 Share Posted April 11, 2017 Hello, you can create your own product/custom profile, or use event (with plugin or fightclass) to hook "FreeDefaultState" bg like: robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) => { if (state == null || string.IsNullOrWhiteSpace(state.DisplayName) || state.DisplayName != "Free default") return; // put your bahaviour here: // if you don't want run base behaviour: cancelable.Cancel = true; }; Link to comment https://wrobot.eu/forums/topic/5605-edit-battlegrounder-behaviour/#findComment-25696 Share on other sites More sharing options...
ScripterQQ 89 Posted April 16, 2017 Share Posted April 16, 2017 ^ Same question @Droidz What does that code do? I know lua but not C and similar. Link to comment https://wrobot.eu/forums/topic/5605-edit-battlegrounder-behaviour/#findComment-25868 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now