• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Locked Player properties which allow race selection?

Status
Not open for further replies.
Level 17
Joined
Jan 8, 2015
Messages
498
Hi, i've seen that in loads of maps but i cant to make it work in my map, If i leave player's settings unloacked they can change the colour(which i dont want them to do, due to identification command which is tied to colours) and when i lock their settings they cant choose anything and race is locked at random even if i chose "selectable".
 
You can use triggers at the start to reset everyone's colors to the default. Player - Change Color is the function name. Alternatively, you can get the player color through triggers and not rely on the slot number to identify people. There's a "Player Color" variable type you can define.


A further alternative is enabling player forces (Scenario -> Force settings). That will lock in color in the lobby, though may have other effects.
 
Dynamic colour commands would be the best solution as that keeps players free to customize their colours while still keeping the commands colour based and accurate.

How you implement it is to map colour string, eg "red" to a player colour constant. Then you search all appropriate players, stored in a player group, for one which matches the colour. That player is then the target of the command.
 
Well i though about that for later(for now i still dont really want to do this becaue there are several heroes and units that have their colours set for differentation like Mal'Ganis is always green, Tichondrius is red and so on) but still i wanted to let people choose their gui and music, i seen even simple silly maps have it on, how to make it so?
 
Status
Not open for further replies.
Back
Top