It is easy to make a unit become unbuildable for all players, however, setting it as unbuildable for only one player may be tricky.
I have never tried this before so I don't know if this is how it works, but one of
I^Love^Mixery's maps had certain scripts that would move the camera for each player to a different location.
I got interested in how he made it that one script moves the camera for me to one place while another script moves it to another place for another player.
Here is what I remember he did, and hang on with me:
He first checks if a player exists by having a script that would check if
'player0', for example, has units inside a certain area and, if so, spawns a unit and calls it
'player0unit'.Then whenever he wanted to make a script affect only that player, he would use the condition "If unit
'player0unit' is owned by player
'<Local Player>' THEN> and then he would specify what the script will do to affect only
player0.
As I said, I have never tried this before so I'm not
absolutely sure if this is really what had that effect.
The next step is the simple one, you only need to set a unit as unbuildable, either by doing what I mentioned above to affect certain players or just make a general script.
The actions section of the script are the same, nonetheless:
Actions if true> Map> Modify> adjust the tech tree of a specific object. This is how an example script looks like in the actions section:
Code:*** THEN ***
'AmericaJetAurora' becomes Buildable (No)