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

Spliting players across Start Locations

Status
Not open for further replies.
Level 7
Joined
Jan 13, 2008
Messages
248
how to make team play like 4 players can choose team 1 and 4 players team 2 and they coming on right start location so not they coming wrong at start like 4 players on the first site and 4 players on the other site and.

And also how do i make the game victorie when i have hero map there u start with choosing a hero at start location i want for example when team 1 or team 2 kills all in the other team then u win for example how do i do this :S
 
Level 6
Joined
Jul 25, 2005
Messages
221
Firstly, I'd like to point out it's hard to understand what you're trying to do.
Let's see if I understood it correctly...

8 Players join at start. 4 chose Team 1 & 4 Chose Team 2.
These Teams have seperate start locations.
Solution: Place Team 1's players Start Locations ontop of eachother, do this by using the Unit Palette - Player [Nr] Buildings: Start Location.
and then Team 2's Start Locations on the opposite side.
If you meant you wanted to know how to make Teams then do like this:
Select Scenario - Force Properties, Check the "Use Custom Forces" box and then check the "Fixed Player Settings" box just below. The gray window should've turned from gray to white if you did correctly. Now press the Add Force button, this adds an additional force allowing you to have two teams. After that you can place out in which team you want the players.

The second thing you wanted help with is not that hard, if you're used to triggers. I'd make a trigger that checks if all buildings of the opposing team is = dead every 0.05 seconds ingame time and then use Game - Defeat on all players in that team.

Hope I helped.

//ShadowMan
 
Level 7
Joined
Jan 13, 2008
Messages
248
u helped with the first thing but the second is like its hero map and i want allied victory like if all players in team 2 dies team 1 wins and if all players in team 1 die team 2 win

show me how to make that trigger plz :p

and when im on way so i wana ask how to make black areas on a map like there u cant see the area of the map its hiden...
 
Last edited:
Level 14
Joined
Nov 4, 2006
Messages
1,241
make a trigger:
event: every 0.10 sec of the game
condition: -
if number of heroes owned by allies of player1 equal to 0 then do victory team 2 else do do nothing
if number of heroes owned by allies of player5 equal to 0 then do victory team 1 else do do nothing

player 1-4 is team 1 and player 5-8 is team 2 in my trigger
 
Level 7
Joined
Jan 13, 2008
Messages
248
thnx m8 u help me alot :)

But i dont get this if trigger its hard for me to make it :S and i dont find if in condition :S
tell me more exactually what to klick on :S sry im dumb but im noob at this :p

Can u plz do the trigger :)
 
Last edited:
Level 22
Joined
Dec 31, 2006
Messages
2,216
Victory - Defeat trigger

Here:
  • Victory - Defeat
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions) ||| Ignore the if condition, I made it just to copy the trigger easier. |||
    • If - Conditions
    • Then - Actions
      • Custom script: set udg_Team1 = CreateForce()
      • Custom script: set udg_Team2 = CreateForce()
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Set TempGroup = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Player((Integer A))))))
          • Unit Group - Pick every unit in TempGroup and do (Actions)
            • Loop - Actions
              • Set TempUnit = (Picked unit)
              • Set TempPlayer = (Owner of TempUnit)
              • Player Group - Add TempPlayer to Team1
              • Custom script: set udg_TempUnit = null
              • Custom script: set udg_TempPlayer = null
          • Custom script: call DestroyGroup(udg_TempGroup)
      • For each (Integer A) from 5 to 8, do (Actions)
        • Loop - Actions
          • Set TempGroup = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Player((Integer A))))))
          • Unit Group - Pick every unit in TempGroup and do (Actions)
            • Loop - Actions
              • Set TempUnit = (Picked unit)
              • Set TempPlayer = (Owner of TempUnit)
              • Player Group - Add TempPlayer to Team2
              • Custom script: set udg_TempUnit = null
              • Custom script: set udg_TempPlayer = null
          • Custom script: call DestroyGroup(udg_TempGroup)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in Team1) Equal to 0
        • Then - Actions
          • Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
          • Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
          • Game - Victory Player 7 (Green) (Show dialogs, Show scores)
          • Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
          • Game - Defeat Player 1 (Red) with the message: Defeat!
          • Game - Defeat Player 2 (Blue) with the message: Defeat!
          • Game - Defeat Player 3 (Teal) with the message: Defeat!
          • Game - Defeat Player 4 (Purple) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in Team2) Equal to 0
        • Then - Actions
          • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
          • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
          • Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
          • Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
          • Game - Defeat Player 5 (Yellow) with the message: Defeat!
          • Game - Defeat Player 6 (Orange) with the message: Defeat!
          • Game - Defeat Player 7 (Green) with the message: Defeat!
          • Game - Defeat Player 8 (Pink) with the message: Defeat!
        • Else - Actions
      • Custom script: call DestroyForce(udg_Team1)
      • Custom script: call DestroyForce(udg_Team2)
    • Else - Actions
This should be leakless and it should work, It worked for me.
There might be someone else here with an easier way to make something like this, but I chose this way.
If you don't know where these things are in the trigger editor then I can send a map with the trigger in it to you if you give me your Email address.
 
Level 7
Joined
Jan 13, 2008
Messages
248
i mean i want UrDeaD hes triggger so i easy can change if i want more players :p and im stupid noob ok :)

neeed help with this trigger can sum one plz do this trigger for me

make a trigger:
event: every 0.10 sec of the game
condition: -
if number of heroes owned by allies of player1 equal to 0 then do victory team 2 else do do nothing
if number of heroes owned by allies of player5 equal to 0 then do victory team 1 else do do nothing

player 1-4 is team 1 and player 5-8 is team 2 in my trigger
 
Last edited:
Level 14
Joined
Nov 4, 2006
Messages
1,241
so, here is a map which might solve your problem, although it was not as easy as i thought, you should get it, also have a look at my player and force settings, if you got different settings you have to change the trigger a bit. but i think you can do that on your own then
 

Attachments

  • iftrigger.w3m
    17.5 KB · Views: 43
Level 7
Joined
Jan 13, 2008
Messages
248
OMFG thnx ur the best UrDead

i tryed it still not working i dont know why but like i put out 2 heroes of team 2 and killed thm and still no victory :S
 
Last edited:
Level 7
Joined
Jan 13, 2008
Messages
248
ok here is the map i hope u figure it out it will be great man
 

Attachments

  • Mortal Kombat Halls Arena1.w3x
    2.8 MB · Views: 89
Status
Not open for further replies.
Top