Starcraft 2: GalaxyEdit tutorial- creating your first unit
GalaxyEdit tutorial- creating your first unit
At first look, Starcraft 2 GalaxyEdit is a bit overwhelming. You’ll open a screen, and see all the things that it can do, and not realize how simple using it can be. This tutorial hopes to demystify some of GalaxyEdit for Starcraft II. This will allow you to both create and test your first unit. This is more then a simple changing of what a unit can do. It will give you a first hand license to create units. This tutorial is meant for noobs, who know a bit about the GalayEdit program. If you aren’t familiar with it, please read the brief overview first.
Creating your First Unit
Ok here we will start with creating your first Unit. In this tutorial we will be:
- Going over the basics of the Data Editor.
- Creating a whole new Unit easily, not just editing over an existing one.
- Placing it on your map.
- Testing the map.
- Assumed basic knowledge that can be found here: Getting Started with GalaxyEdit a brief overview
Step 1: Getting to the Data Editor
Create a new Map, dimensions dont matter, nor does tile set or anything, although make sure dependencies is set to Melee (Liberty)
In the map load up the Data Editor [F7].
Here you want to make sure that you have the Units tab open to do so follow this picture reference:
Ok so now you have the Units tab open and should the window should look like this:
If it doesnt, Make sure all the orange buttons are clicked as mine are.
Step 2: Exploring the Data Editor
There (for this example at least) are only 4 points to the data editor that are really important and here they are:
- 1 Object List List of all the objects that can be used on your map, and where the objects come from.
- 2 Fields List of Fields that go with a selected Object
- 3 Values Values of the fields for an object
- 4 Data Type Selector You already used this once! chooses between all the type of data you can use for objects.
Step 3: Creating that unit!
In this Example we will be making a modified Marine. Now since we are making a unit thats based on another unit we have 2 options. 1) Make it from scratch and make our heads explode or 2) chill and take it easy. Well guess what we will do a little of Both
Right Click in the Object list and choose add object. that should net you with this little window here.
For name type in what ever you want to call it, ill be naming mine, Marinie, just so the other Marines can make fun of him. after you choose a name and type it in, just hit the box that says Suggest, and it will create an ID that works pretty well. Leave Defines Default Values unchecked, Leave Based On at Default Settings (Unit), also leave Show Non-Default unchecked, For Object family choose Melee (It really doesnt matter), Race choose Terran, Object Type choose Unit (When choosing this you should see a lot of other Type that would be fun to play with after this tutorial huh =P), and Choose Copy From: and pick Marine from the drop down box.
If that wall of Text lost you, just make your box look like this =P
Now hit ok!
Now Marinie has finally found his place among objects. Good for him for finally being accepted! Now lets go ahead and put him on the Battle Field! Minimize the data editor (Or just alt tab) to get back to the Terrain Editor, make sure you are in the Unit Layer (If not just hit U or go to Layer > Unit at the top). In the Tool box, make sure Player 1 is selected, in the 3rd drop down box make sure Terran is selected and in the 4th make sure Unit is selected. if that lost you again heres a picture for reference
Now you will see a button that has a Little Green Zealot on it, when you hover over it it will say Marinie (Or what ever you named the Unit), click it and go place it on the ma….. wait its not showing up! we need to create an actor class for it now!
Pull up your Data Editor again and go to Data Type (Important thing number 4!) and choose Actors. A new Tab for Actors will open up and alot more Objects will appear. Scroll down in the list until you find Marine and right click it and choose Duplicate like so
Another Window will come up asking what exactly to duplicate, just stick a check box in everything and hit ok. after a few seconds another object will be created named Marine Copy. The name really isnt that important for now what matters is the token in the fields. Select to Value for unitName and Right Click and choose Modify Value
a Small window will show up with a single Drop down box, Find Marinie (or what ever you named it), select it, and hit ok.
Now! Minimize the Data editor again, pull up the terrain editor and try placing Marinie like before. Yay! If everything was done right he should show up now! Lets all do a happy dance.
Ok So Marinie has been getting made fun of for his ridiculous name and decided to get personal, Lets make him a new Weapon to completely own the other guys’ (or them >.>)
Back in the Data Editor Select the Data Type Weapons from the drop down box. Right click anywhere in the object lest and hit, add new object. Name it Marinie’s Weapon and have it suggest an ID, Set the Race to Terran and copy From Marine – Gauss Rifle. again here is a cheat sheet:
Hit OK. Now to Edit our Weapon, Marinie, because of his social issues, started taking way too much Stim packs on the down low and now hes permanently hyped up. So lets edit his weapon to reflect this.
Find the Field for Period and double click the Value of it, another small window will pop up, type in the half of that value (0.4304) and hit ok
Alright, This is Fixed, if you want to test the map you can, just hit the test map button and have fun, but im not, because now Marinie is raging and wants more power!!!!
So in the fields find Effect, this is used for damage but wait… its not a value that we can change! its an Effect. So! Time to choose a new Data Type but this time choose Effects.
Right click in the object list, Create a new one. Name it Marinie’s Weapon, MANUALLY set the ID to Marinie (again, doesnt matter, could just hit suggest but we are doing this just so it stays neat) Set Effect Type to Effect Damage Set race to Terran and hit ok
Ok there are only two values to change here, Kind, and Amount. Set Kind to Ranged and Amount to 50 like so
Now the Weapon Damage is set up properly! Time to fix it so we actually do that much damage.
Click Back to the weapons tab and choose Marinie’s Weapon if its not already selected. There are two fields we have to update. Effect as stated earlier and Damage Display Effect. Effect will adjust the Damage, and Damage Display Effect will set the value on the tooltip when you hover over the weapon in game.
So change both of these to Marinie’s Weapon
Now it will help if we Equip the weapon to Marinie. go Back to the Unit tab and find the field for Weapons + and double click on the value. a Window should come up that just has a table with one entry. Click on that entry and In the weapon drop down box choose Marinie’s Weapon and then hit ok
Now lets optimize The map real fast for testing.
Ok first thing is first, lets only have one Marinie on the map placed, So if you were like me and got really excited when the model showed up and placed a lot of Marinies lets get rid of them all but one. Go back to the Terrain Editor and depending on your last action here selecting already placed units might be confusing. If your cursor isnt a little white arrow to select units with just press the spacebar and it should revert back to the selection cursor, now you can select units just like you do in game.
Now with them all select them, make them explode by hitting the Delete Key, yea you hear that? you thought i was kidding about the explode. Now just as we did earlier add another Marinie just one this time! Also add some normal grunt marines for player 2, so Marinie can release some anger!
Now if you followed my tutorial exactly you made a map for melee, obviously this isnt going to be a melee map so we have to change some triggers so we dont automatically end the game when we start. This isnt a Trigger tutorial so stay with me, imma just talk you through one simple edit and we are done.
Launch the Trigger Editor and you should see this
Now You see where it says “Melee – Set default melee options for all players” Select that and Hit Delete
OK YAY! we are ready to finally test, Test your map with the Test document button (or hit ctrl F9) and your game should run, yeah the camera doesnt look at Marinie right away so go find him and click him and check out his weapon and name
Alright now move up some to find those grunt rines
Now just unleash fury!
So Now you should know the basics behind making a unit and editing it. Hopefully this can help you see how to go about editing other aspects of the unit and creating more unique ones!