• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,184
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