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

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