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

A way to Remove Computer Normal Force.

Level 15
Joined
Aug 11, 2009
Messages
1,606
I made this tutorial to show some people how to remove the many times annoying Computer Normal slot.For example,if someone wants to use a Force which ones the base and the creeps in an AoS map but he doesn't want to have this Computer Normal slot,then this is the solution.My thought was simple,i had just to add the player-force ingame with triggers.So let's start...

1st Step
Start by creating this trigger
As an Event use
  • Remove CPU Force
    • Events
      • Map initialization
We don't need any conditions so leave this empty
  • Remove CPU Force
    • Conditions
And now the Actions
  • Actions
    • -------- Choose the Player you want,to add to the CPU Force.This Force won't be displayed in game Lobby. --------
    • Player Group - Add Player 1 (Red) to CPU_Force
    • -------- Choose the Player you want,to add to the CPU Force.This Force won't be displayed in game Lobby. --------
    • Player Group - Add Player 4 (Purple) to CPU_Force
    • -------- Here you can add the name of your Force. --------
    • Player - Set name of Player 1 (Red) to Fighters
    • -------- Here you can add the name of your Force. --------
    • Player - Set name of Player 4 (Purple) to Zombies
    • -------- Leave triggers below as is,just change the Player you want. --------
    • For each (Integer A) from 1 to 3, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) slot status) Not equal to Is playing
          • Then - Actions
          • Else - Actions
            • -------- Change the Player here to the one you wish. --------
            • Player - Make Player 1 (Red) treat (Player((Integer A))) as an Ally with shared vision
            • -------- Change the Player here to the one you wish. --------
            • Player - Make (Player((Integer A))) treat Player 1 (Red) as an Ally with shared vision
    • For each (Integer A) from 4 to 6, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) slot status) Not equal to Is playing
          • Then - Actions
          • Else - Actions
            • -------- Change the Player here to the one you wish. --------
            • Player - Make Player 4 (Purple) treat (Player((Integer A))) as an Ally with shared vision
            • -------- Change the Player here to the one you wish. --------
            • Player - Make (Player((Integer A))) treat Player 4 (Purple) as an Ally with shared vision
CPU_Force is a Player Group Variable.

2nd Step
Now we need to change Player Properties and Force Properties.
Open Scenario and click on Player properties.Add as many users as you want,but for the 2 Forces we are going to remove set their stats as "None".
Now go to Force Properties and check the "Use Custom Force" button,then check the "Fixed Player Settings" too.Now here you can create the 2 forces that you want by clicking on the "Add Force" button below.Create the Forces you want and now its time to rename them,so click on the "Rename Force" button below and add the name you want to your Force.
*Tip*:You can also change the color of the Force that will be displayed.
The basic colors are these:
Red is:|c00ff0000
Blue is:|c000000ff
Teal is:|c0000ffff
Purple is:|c00800080
Yellow is:|c00ffff00
Orange is:|c00ff8000
Green is:|c0000ff00
Pink is:|c00ff80ff
Gray is:|c00808080
LightBlue is:|c0080ffd0
DarkGreen is:|c0018614a
Brown is:|c005e2300

An example,a simple Force name would be "Zombies",you can do this like "|c00800080Zombies|r" and the Zombies will be colored purple.

Demo Map attached below.Feel free to PM me for any questions.
 

Attachments

  • Remove CPU Force.w3x
    18 KB · Views: 113
Last edited:
Level 14
Joined
Apr 20, 2009
Messages
1,543
nice, I already knew it but this is really helpfull for other people, since there are a lot of people asking this same question:

how can I remove computer forces?

+rep
 
That method mentioned would be a good addition, especially since many people do not want to resort to triggers for things.

This tutorial is a tad short. When you do the loop, it is unclear. You need to explain why it is 1-3 for the first and 4-6 for the second. Otherwise people might copy it directly and only modify the players but not the looping. It is a bit conditional. That's why you might want to explain the lines a bit better outside of the trigger.

If you can, update it. Please notify me if you are going to update it eventually but can't at the moment/this week, else it will go to the graveyard. Sorry. =(

EDIT:

No updates have been made within a week. Please notify me if you are willing to update again/if I have made a mistake.
~Graveyarded.
 
Last edited:
Top