• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Controlling 2 or more races in-game

Status
Not open for further replies.
Level 2
Joined
Dec 28, 2017
Messages
19
I am trying to figure out, how can I start a game with 3 different races in-game, but control all 3 races. I don't want them to do anything, just give me the ability to create their bases, units, ect.. for all the players in the game. Basically being able to play myself, taking control of the enemy and attack myself. I have looked everywhere on GOOGLE and HIVE forums but they are not exactly what I am looking for. Is there a simple way to do this with triggers? And I may have posted this in the wrong forum..... I am guessing it was supposed to be in Trigger-help.
 
Last edited:
In the trigger editor, you could use the create unit function for creating the worker units.

  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Player Group - Pick (All Players) and do Actions
      • Actions
        • Create 3 worker units for (Picked Player) at ((Random number between 450 and 675) with an angle of (Random number between 0 and 360) from (Starting location))
Of course, the trigger above may leak a bit, but if you're okay with it, then so be it.
As for the ability to control the enemy, all you have to do is to provide vision and control over other players, but not change the alliance of the player to the other players themselves.

  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Player Group - Pick (All Players) and do Actions
      • Actions
        • Set ITERATOR_Player = (Picked Player)
        • Player Group Pick (All Players) and do Actions
          • Actions
            • If (If all conditions are true, then do Then-Actions, else do Else-Actions)
              • if - Condition
                • (Picked Player) slot status equal to is playing
                • (Picked Player) not equal to ITERATOR_Player
                • (Picked Player) is an enemy of ITERATOR_Player equal to true
                • (Player to Index(Picked Player)) less than or equal to 12
              • Then - Actions
                • Player - Set alliance aspect or something (I don't know the GUI equivalent anymore) (Vision thingy if you like)
                • Player - Set alliance aspect (full control thingy.)
              • Else - Actions
 
Level 2
Joined
Dec 28, 2017
Messages
19
Nice, I will check it out later and see how it runs.

Thanks!

Do you have this as a .zip? My triggers aren't looking at the same
 
Last edited:
Status
Not open for further replies.
Top