HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Identifying the host of a game

07-28-2004, 01:49 PM#1
bobthemage
Hello,

Is there any way to identify the host of a game by trigger? I was thinking of adding an option to my map that could only be toggled by the host. I don't want to limit this option to a specific color, since the host should be able to play as any color he likes.

I also don't want to use computer player race/handicap settings as switches (they can only be changed by the host after all). Are there any other possibilities?

The best thing would of course be if I could manage to identify the host of a game and assign a variable to him like "Set Host = Player 1 (Red)". Is there a way to do this, using GUI triggers or JASS?

I'd be glad if anyone could help me out there.

Regards,
bobthemage
07-28-2004, 01:56 PM#2
johnfn
No. You can try, but there is no way. Probably the best way to go is to detect the first playing player and call them host. But you have no real way of knowing who is host.