HEy guys i firstly want to remove the share incmoe at top right button ( iadded delay iincase this aint possible) and when a player leaves i dont want it to show text saying share minerals and i wanna not share minerals...
I don't know anything about custom UI stuff, but that's what you'd be dealing with when trying to remove that button, I believe. Otherwise, doing the following could possibly remove the button.
You can disable resource trading with triggers. "Set Resource Trading Allowed" is the action. However, preventing the distribution of resources when a player leaves is more complicated. I haven't tried it as far as I can recall, but I think you'd need to track the player's current resources, then when a player leaves, you'd have to pick each active player and subtract [that player's resources divided by the number of active players] from the picked player's resources. I'm sure there are a few other ways of doing it, but I'm pretty sure it wouldn't be sufficient to just set the leaver's resources to 0 because the Player Leaves event is triggered (I think) after the resources are distributed.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
HEy guys i firstly want to remove the share incmoe at top right button ( iadded delay iincase this aint possible) and when a player leaves i dont want it to show text saying share minerals and i wanna not share minerals...
thansk1
bump
I don't know anything about custom UI stuff, but that's what you'd be dealing with when trying to remove that button, I believe. Otherwise, doing the following could possibly remove the button.
You can disable resource trading with triggers. "Set Resource Trading Allowed" is the action. However, preventing the distribution of resources when a player leaves is more complicated. I haven't tried it as far as I can recall, but I think you'd need to track the player's current resources, then when a player leaves, you'd have to pick each active player and subtract [that player's resources divided by the number of active players] from the picked player's resources. I'm sure there are a few other ways of doing it, but I'm pretty sure it wouldn't be sufficient to just set the leaver's resources to 0 because the Player Leaves event is triggered (I think) after the resources are distributed.