need a tip

Gistergingol

New Member
Reaction score
1
Ok guys i explain you my problem, i need a trigger that checks how many human players are playing! for example (max players slots are 8) if 6 human players are playing, player7 and player8 buildings/units must be destroyed, this because the map starts with buildings for each player (also not playing one).. so i need a trigget that makes something like:


Events
Elapsed game time is 3.00 seconds

Conditions

Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
-If (All Conditions are True) then do (Then Actions) else do (Else Actions)
if - conditions
? ((Player((IntegerA))) slot status) Egual to Ingame
then - actions
- Do Nothing
else - actions
- Unit Kill all units of PLAYER that is not HUMAN or INGAME inside region XXXX (I need help with this part... im not able to find the right formula to obtain kill ALL units of player not human or not playing (example slot closed for player8 but his building/units are alive) inside region XXXX


Thanks a lot.. i hope i explained well im still learning english
 

Fun_

New Member
Reaction score
1
Try using JASS triggers, or Download My Map at My Website: http://Ghost4942.webs.com/.

My Map, Escape Nowhere, is completely unprotected, except for maybe one or two JASS triggers. You can open it in The World Editor, though.
 

Lightstalker

New Member
Reaction score
55
Trigger:
  • For Loop Integer A from 1 -8 do
    • if Player(Integer A) equal to Is Playing
    • then
    • else
    • Pick every units owned by Player(Integer A) and do Blah blah
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top