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

Making a Group

Status
Not open for further replies.
Level 1
Joined
Jun 21, 2009
Messages
282
I've recently thought of this very unique way to group up with other players.

So this is what I need: There will be 3 circle of powers, 1 circle of power for each group member, there are 3 group members total for 1 team, when a hero is over one of those circle of powers, the circle of power will lite up the color of the player (player red hero is over the circle of power, the circle of power lights up red, but will unlight red when he moves away from it and won't be assigned on a team)

So, once all 3 players that have their heroes on these 3 circle of powers, I need a trigger where a team window on the right up corner of the screen will appear where it'll show the percent of HP and Mana of your team members and yourself, also I need it so you've shared vision with your 2 or 3 teamates.

You can team up with 1 or 2 people and the circle of powers will group you, once you're both on the circle of powers you say something like -make group

In order to remove yourself from the group, you type -leave group and the window in the upper right hand corner will disapear and the shared player vision will go away.

Put this onto a map and also read this other trigger aswell, this other trigger puts people onto groups every 5 seconds. (Not sure if this trigger works properly or not, need another player to test it out and hopefully this trigger doesn't interfer with with grouping up trigger..)

  • Ally Players
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • -------- Clear Forces --------
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Player Group - Remove all players from alliedForce[(Integer A)]
      • -------- Unally all players --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • For each (Integer B) from 1 to 12, do (Actions)
            • Loop - Actions
              • Player - Make (Player((Integer A))) treat (Player((Integer B))) as an Enemy
      • -------- Checking for abilities --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Leaf Village Ninja for Hero[(Integer A)]) Greater than 0
            • Then - Actions
              • Player Group - Add (Player((Integer A))) to alliedForce[1]
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Cloud Village Ninja for Hero[(Integer A)]) Greater than 0
                • Then - Actions
                  • Player Group - Add (Player((Integer A))) to alliedForce[2]
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Mist Village Ninja for Hero[(Integer A)]) Greater than 0
                    • Then - Actions
                      • Player Group - Add (Player((Integer A))) to alliedForce[3]
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Sand Village Ninja for Hero[(Integer A)]) Greater than 0
                        • Then - Actions
                          • Player Group - Add (Player((Integer A))) to alliedForce[4]
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Level of Rock Village Ninja for Hero[(Integer A)]) Greater than 0
                            • Then - Actions
                              • Player Group - Add (Player((Integer A))) to alliedForce[5]
                            • Else - Actions
      • -------- Ally the correct players --------
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Player Group - Pick every player in alliedForce[(Integer A)] and do (Actions)
            • Loop - Actions
              • Set tempPlayer = (Picked player)
              • Player Group - Pick every player in alliedForce[(Integer A)] and do (Actions)
                • Loop - Actions
                  • Player - Make tempPlayer treat (Picked player) as an Ally
Please and thank you.
 
Last edited:
Status
Not open for further replies.
Top