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

Help me with Detecting wit GUI

Status
Not open for further replies.
Level 3
Joined
Nov 12, 2010
Messages
36
Hello everyone, I try to detect mode playing warcraft 3 "single" or "multiplayer" for create a save/load system GUI useable for only Multiplayer mode like map "Gaias Retaliation" with exactly player name.
Hope for your helping soon. Thank you
 
Level 9
Joined
Jul 10, 2011
Messages
562
just pick every player of human control and add +1 to an integer for every picked player. then check whether the integer is 2 or higher and if so do nothing if not disable saving.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
I think this would work aswell
  • GUI
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set udg_i = CountPlayersInForceBJ(GetPlayersAll())
      • Game - Display to (All players) the text: (String(i))
JASS:
globals
    integer i
endglobals

function something takes nothing returns nothing
    set i = CountPlayersInForceBJ(GetPlayersAll())
    call DisplayTextToForce(GetPlayersAll(), I2S(i))
endfunction
 
Status
Not open for further replies.
Top