• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Locked Player properties which allow race selection?

Status
Not open for further replies.
Level 14
Joined
Jan 8, 2015
Messages
425
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".
 
Level 11
Joined
Jun 2, 2004
Messages
849
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.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,233
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.
 
Level 14
Joined
Jan 8, 2015
Messages
425
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.
Top