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
 
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.
 
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.
Back
Top