In my map, I want to make it so that when a player loses their town hall, they become forced allies with whoever killed the building. I also want players to be able to become allies through the resource trading thing. How do I allow this? The main problem is that if players can pick ally, they will also be able to click un-ally when I change their alliance and I want to disable that when the player needs to be forced to stay allies. How do I do this too?
For the building death just move the owner of town hall to a player group that the killing player is in.
For the ally button I think you will have to make custom buttons that let them pick a team but when 1 button is pressed hide the buttons for the player that used them.
In my map, I want to make it so that when a player loses their town hall, they become forced allies with whoever killed the building. I also want players to be able to become allies through the resource trading thing. How do I allow this? The main problem is that if players can pick ally, they will also be able to click un-ally when I change their alliance and I want to disable that when the player needs to be forced to stay allies. How do I do this too?
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
For the building death just move the owner of town hall to a player group that the killing player is in.
For the ally button I think you will have to make custom buttons that let them pick a team but when 1 button is pressed hide the buttons for the player that used them.
Show/Hide UI Frame.
Hide the alliance button in your "loses town hall" trigger.
Pretty cheap solution, but it will work.