Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Jewily, thank you very much, I seem to have already figured out a simpler way, but now I have a different problem – I can't test it.
Here's the script:
SetObjectEnabled("Garnizon_1", nil);print("garrison disabled");function Garrison_1_Block_F()if GetCurrentPlayer() == 2 thenSetObjectEnabled("Garnizon_1", true, 2);sleep(1);print("garrison enabled for the second player");sleep(1);elseif GetCurrentPlayer() == 1 thenSetObjectEnabled("Garnizon_1", true, 1);sleep(1);print("garrison enabled for the first player");sleep(1);elseSetObjectEnabled("Garnizon_1", nil);print("you are neither the first nor the second player");end;end;end;Trigger(OBJECT_TOUCH_TRIGGER, "Garnizon_1", "Garrison_1_Block_F");
If I test it personally, playing as the first, second, and third player, everything works.
But the problem is that I can't make the computer-controlled players try to go through this garrison.
I've tried all sorts of lures on the map, but they won't go through those gates, no matter what.
I even placed unprotected towns nearby, but they still won't go there.
How can I make these sheep try to go through there?