Blockland Forums > Suggestions & Requests
Getting bots/items to work while the host is outside of a minigame.
King Tøny:
I'm hosting a default minigame. I just want bots and items to work while I am outside of the minigame.
I want to disable building/painting in the minigame but I also need to loving build and paint. So if I leave the minigame now bots and items don't work properly.
So I can't have both apparently.
Gautier00:
--- Quote from: King Tøny on October 15, 2018, 11:48:14 AM ---I'm hosting a default minigame. I just want bots and items to work while I am outside of the minigame.
I want to disable building/painting in the minigame but I also need to loving build and paint. So if I leave the minigame now bots and items don't work properly.
So I can't have both apparently.
--- End quote ---
As far as I know, if the minigame is public and so are the bricks/bot spawns then the host doesn't have to be in the minigame for the bots to work, but if the minigame is owned by someone and isn't classified as "public" then it doesn't work.
Only solution I can think of is package everything as a gamemode so that everything can be loaded up as public bricks along with the minigame, but i'm pretty sure that cancels out the option to build.
Conan:
set the global variable $defaultMinigame to your minigame after creating it
King Tøny:
--- Quote from: Gautier00 on October 15, 2018, 12:26:36 PM ---As far as I know, if the minigame is public and so are the bricks/bot spawns then the host doesn't have to be in the minigame for the bots to work
--- End quote ---
but then I can't edit the build.
--- Quote from: Conan on October 15, 2018, 01:10:36 PM ---set the global variable $defaultMinigame to your minigame after creating it
--- End quote ---
I have this set.
King Tøny:
$DefaultMinigame = findClientByName("Lord Tony").minigame;
I typed in this.
Now loving player persistence is working when I am outside of the minigame.
So for some reason me being in the minigame was blockland player persistence.
It's too bad teams don't save on persistence.