Thursday, June 3, 2010

The Stalker

1. In the Units tab of the Data Editor, right-click and choose add object.
2. Enter a name and ID and make sure of the following settings:
- Based On: CUnit
- Object Family: Melee
- Race: Protoss
- Object Type: Unit
- Copy From: Stalker
3. Still in the Units tab, right-click and choose add object.
4. Enter a name and ID. This unit is going to represent the laser beam projectile shot out by the stalker clone.
5. Make sure the porjectile has the following settings:
- Based On: Missile
- Object Family: Melee
- Race: Protoss
- Object Type: Projectile
- Copy From: Weapon - Stalker
6. In the Weapons tab, right-click and choose add object.
7. Enter a name and ID and make sure of the following settings:
- Weapon Type: Legacy
- Based On: CWeaponLegacy
- Race: Protoss
- Copy From: Stalker - Particle Disruptors
8. In the Effects tab, you'll need to add a new object and base it off of the effect type you are creating. If you are copying every ability of the stalker, you'll need to create a Create Unit, Teleport, Damage, and Launch Missile effects.
9. In the Actors tab, you must create an actor for the new unit, the attack (postfixed with " Attack"; note the space), and Attack Missile. The same process applies to these actors.
a. In the new unit's actor, change the unitName value to the unit you made in step 2.
b. Check the Model settings... make sure they are the following:
- Model: Stalker
- Model (Build): Stalker Warp In
- Model (Placement): Stalker Placement
- Model (Portrait): Protrait - Stalker
c. If the sounds are not working for the stalker, verify the Sounds values are valid.
d. In the Attack actor, point the Impact Effect to the new unit's Damage effect, and point the Launch effect to the new unit's Set effect.
e. Also, in the Events+ settings, make sure all references to "Stalker" are changed to the new unit.
f. In the Attack Missile actor, change the Unit Name to the Weapon unit you created in step 3 and 4.
g. Also, make sure the Attack Missile's model is set to "Stalker Weapon".
10. Link up the unit's weapons and effects to those you just created.

KA-BOOM! You can now add the stalker clone to your map and have some fun with it.

One last note: if you wish to scale your stalker, you need to modify the Height field in the unit's projectile object (the lasers are supposed to come from his eye).

The Zealot

1. In the Units tab of the Data Editor, right-click and choose add object
2. Enter a name and ID and make sure of the following settings:
- Based On: CUnit
- Object Family: Melee
- Race: Protoss
- Object Type: Unit
- Copy From: Zealot
3. For each of the unit's weapons...
a. Add a weapon object from the Weapons tab.
b. Enter a name and ID and use the following settings:
- Weapon Type: Legacy
- Based On: CWeaponLegacy
- Race: Protoss
- Copy From: Zealot - Psi Blades
4. For the damage and display effects, you must do the same process.
- Make sure when creating the effects, you create a "Create Persistent" effect and a "Damage" effect.
5. When you are creating the duplicated zealot's psi blade effect (not the damage effect), you need to change the Period Effect to point to the new unit's psi blade (damage) effect.
- Also, go back to the Weapons tab and set the new unit's effect and damage effects to those you just created.
6. In the Actors tab, you must create an actor for the new unit, the attack (postfixed with " Attack"; note the space), and the unit's death (posfixed with _Death). The same process applies to these actors.
a. In the new unit's actor, change the unitName value to the unit you made in step 2.
b. Check the Model settings... make sure they are the following:
- Model: Zealot
- Model (Build): Zealot Warp In
- Model (Placement): Zealot Placement
- Model (Portrait): Protrait - Zealot
c. If the sounds are not working for the zealot, verify the Sounds values are valid.
d. In the Attack actor, point the effectAttack to the new unit's Psi Blades (Damage) effect.
e. Also, in the Events+ settings, make sure all references to "Zealot" are changed to the new unit.
f. In the _Death actor, make sure the sound is set to Zealot_Death.
g. Also, in the Events+ settings, make sure all references to "Zealot" are changed to the new unit.

Blammo! Go to the Terrain Editor, set your current layer to Units, and search for your new unit. Add him to your map and the model should correctly load in the editor. If it does not, verify the "Model (Placement)" in step 6b is right. If he loads up correctly, test him out in your map!

Introduction and Purpose

Greetings All,

This blog is here to serve one purpose: the explain how to duplicate units in the Starcraft 2 Galaxy Editor. I know others and myself have had great difficulty doing this, so I decided to attempt to figure it out, step-by-step, for each unit I decide to duplicate.

The units I will be covering, as of this moment in time and not necessarily in this order, are:
  • Zealot
  • Sentry
  • Stalker
  • Immortal
  • Colossus
  • Archon
  • Dark Templar
  • Pheonix
  • Mothership
  • Zergling
  • Hydralisk
  • Queen
  • Roach
  • Ultralisk
  • Overlord
  • Hatchery
  • Liar
  • Hive
I am making a map based around these units (hence their selection).