• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Team Colour

Status
Not open for further replies.
Level 2
Joined
Jul 23, 2009
Messages
5
Hey

i want that the players can't change their colours and Handicap

uhm and a question to the same theme: how can i make that players can't join a team position but it's reaveled in starting screen
like in a TD the anti stuck Player(mostly Brown)

THX
 
Level 14
Joined
Aug 31, 2009
Messages
775
To make it so players can't chance Handicap or Colour, you can run a trigger at the start of the map that does the following:
  • Initialisation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Change color of Player 1 (Red) to Red, Changing color of existing units
      • Player - Change color of Player 2 (Blue) to Blue, Changing color of existing units
      • Player - Change color of Player 3 (Teal) to Teal, Changing color of existing units
      • Player - Change color of Player 4 (Purple) to Purple, Changing color of existing units
      • Player - Change color of Player 5 (Yellow) to Yellow, Changing color of existing units
      • Player - Change color of Player 6 (Orange) to Orange, Changing color of existing units
      • Player - Change color of Player 7 (Green) to Green, Changing color of existing units
      • Player - Change color of Player 8 (Pink) to Pink, Changing color of existing units
      • Player - Change color of Player 9 (Gray) to Gray, Changing color of existing units
      • Player - Change color of Player 10 (Light Blue) to Light Blue, Changing color of existing units
      • Player - Change color of Player 11 (Dark Green) to Dark Green, Changing color of existing units
      • Player - Change color of Player 12 (Brown) to Brown, Changing color of existing units
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Set (Player(Integer A)) handicap to 100%
      • Custom script: call DestroyTrigger(Get TriggeringTrigger())
This would force each player to their respective colours, and force their handicaps back to 100%.

I don't fully understand what you mean by the second question.
 
Level 2
Joined
Jul 23, 2009
Messages
5
in most games players can't choose their color
the button in starting menu is just grey and the handicap button too

the other tihink:
i want a team that can't be chosen by players
(do you know line tower wars? the anti cheating korps is a good example)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Ehh, no need for triggers -.-

The only thing you need for all your questions are forces.
Go to Scenario -> Force Properties -> Use Custom Forces + Fixed Player Settings

Now click on "Add Force" and rename that force, in TD's that would be "Enemies", for example.
You can drag players to switch forces and, when "Computer" is selected as their controller, you cannot change it.

On the right of that tab, you can see a few options, like shared visibility, allied (victory), ... - check everthing you want...
 
Status
Not open for further replies.
Top