- Joined
- May 11, 2012
- Messages
- 2,108
How can I restricts players sharing their units to other players?
Isn't unit sharing restricted by default?
Try this
Player - Make Player 1 treat Player 2 as an Ally with shared vision
In players settings there should be something like "use fixed player settings", which prevents players from changing anything in the F11 menu.
Game - Set Lock alliance settings to On
Game - Set Lock alliance settings to On
Sharing units is changing aspect of alliance as far as I know.
Test Trigger
Events
Player - Player 1 (Red) changes alliance settings
Conditions
Actions
Player Group - Make Player Group - Player 1 (Red) treat (All players) as an Ally with shared vision
But this would cause to still a message that the player shared units. Maybe change that message into "You cannot share units" or something.
I need a way to either make players unable to check share units box, or if it's impossible, to automaticly unshare units when they're shared.
Oh please just stop with this already. If efficiency is a concern why even use GUI in the first place? This sort of constant advice really is not helpful when it has nothing at all to do with the problem at hand and will at most waste a few cycles.@Light : use two integer variable instead of Integer A/B, efficiency reason.
And yes, never use A and B integers, only udg's.
Your WC3 installation is corrupted? The map he provided opens in WE and tests perfectly for me. If it actually solves the problem I do not know.I have no idea what the hell, i rven tried to it like in your map. BOOM! DOESN'T FUCKING RUN!
Because it's easier to learn?f efficiency is a concern why even use GUI in the first place?
I suspect this could be solution, too. I will try that when I get to Pc.It is also possible the event fires before the actual alliance change so that the change fails as it is overwritten by the original change as soon as the trigger action returns. If the problem is indeed an ordering one then a 0 timeout timer could be used to fix it.