• 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!

How to make player a referee?

Status
Not open for further replies.
Level 5
Joined
Nov 27, 2007
Messages
85
I can turn player into observer... But how do I set the player state to "referee"?
(EXPLANATION: referee is an observer that can chat with normal players; by default observers can only chat with other observers).

The best I could find is this:
JASS:
native SetPlayerState takes player whichPlayer, playerstate whichPlayerState, integer value returns nothing

Which is used like:
JASS:
// make player an observer (NOT referee)
call SetPlayerState( p, PLAYER_STATE_OBSERVER, 1 )
 
Hmm, my map is 12-player map, and I can't afford to have an additional slot specifically for observing players.
Is there any way to make player a referee inside the game?
For example, the player types -ref and instantly becomes a referee.
 
I think you can have an empty force, so you need no slot. But you do not require a force either. Just do as if the player would be some kind of referee by adjusting features for it, as Pharaoh_ mentioned granting them sight or resetting the alliances to other players. You can even turn their color to white and maybe prefix them by "Referee".

call SetPlayerName(<player>, "|cffffffff (Referee) " + GetPlayerName(<player>) + "|r")
 
Last edited:
Status
Not open for further replies.
Back
Top