1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Data] Creating Units, weapons, and more

Discussion in 'StarCraft II Tutorials' started by ban-lord, Aug 21, 2010.

  1. ban-lord

    ban-lord

    Joined:
    May 26, 2007
    Messages:
    204
    Resources:
    2
    Models:
    1
    Tutorials:
    1
    Resources:
    2
    Getting Started
    Before we get started with creating the unit, first you should check and make sure your data editor's settings are similar so you go through this guide with ease.
    [​IMG]

    What You Will Learn
    • How to create a unit
    • How to create an actor
    • How to associate the actor with a unit
    • How to create shooting animations for your unit
    • How to add sound to your unit
    • How to create a weapon and effect for your unit


    Information
    This post will be updated later with a library of field values in the data editor for you to work with.

    Creating The Unit
    To begin the tutorial, you're going to need to open your Data Editor and open the Units data type. Next, click the data dropdown menu (or right click in the data list), and add a new object. The unit for this tutorial will be based off of a Marine.

    [​IMG]

    Be sure your fields match the image above, if you wish to choose another unit change the field values setting to whichever unit you would like to base your new unit off of. Hit OK and your new unit will be created.

    There is no model or sound information for your unit now, so that will be done in the next step.

    Creating The Actor

    Open the Actors data type, and now add a new object again.

    [​IMG]

    Be sure your fields match the image above. Hit OK.

    Now that you created the actor, you will need to link your actor to your newly created unit. As before, the unit in this tutorial was called UnitTest and it is based off of the Marine.

    [​IMG]

    Change the field value for the unit name to your newly created unit, and scroll down to Art - Model, and adjust the model to the unit you chose. If you chose the Marine like I did, choose Marine and set it for Art - Model, Art - Model (Build), and Art - Model (Placement).

    This is optional, but your unit does not have any sound. So scroll down to Sound - Group Sounds and Sound - Sounds and adjust your unit's sound to the unit you chose just like you did for the model. In this case, I set it to the marine.

    [​IMG]

    Now to move on to creating new weapon for your unit!

    Creating The Weapon

    This part of the tutorial will teach you how to create a weapon and adjust the damage of your weapon. Go to the Weapons data type, add a new object.

    [​IMG]

    Be sure your field values match the image above.

    Next, go to the Effects data type, and add a new object. You can name them the same if you want, it doesnt really matter what any of the objects are named.

    [​IMG]

    Be sure your field values match the image above.

    Now go to your newly created effect and set the damage for your weapon at the Combat - Amount field value. You can choose any number you wish, and remember all units affiliated with this weapon will deal that much damage.

    [​IMG]

    Now we're going to go back to our weapon, so go to the Weapons data type. Go to your weapon you created earlier, and adjust the Effect - Effect field value to your newly created effect. This will change the damage your unit deals. Afterward, change the UI - Damage Display Effect field value to your newly created effect also. This shows the damage your unit deals on the user interface in the game. You can use the image below as a reference.

    [​IMG]

    Weapon Attack Animations
    Your weapon does not have an attack animation, so if your unit fights with their weapon it wont show any shooting even though they are shooting.

    Go to the Actors data type, and add a new object. I chose the Marine earlier so I will base the attack animation off of Marine Attack.

    [​IMG]

    Be sure your field values match the image above.

    Now we need to change the Attack Effect field value to the weapon we created earlier. My weapon was called WeaponTest, so the linked weapon will be WeaponTest. Afterward, your unit will have shooting animations and will actually look like they are firing their weapon and not moving their gun around. Use the image below as a reference.

    [​IMG]

    The End
    That is the end of the tutorial, if you have any questions feel free to ask. I am willing to update this post with more information and add more than just creating a unit. I will probably slowly turn this into an overall unit creation guide in time. Feel free to post feedback and ask questions. Thanks for reading.
     
  2. mjllonir

    mjllonir

    Joined:
    May 31, 2009
    Messages:
    432
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Some of the images are broken...Could you fix that please?
     
  3. ban-lord

    ban-lord

    Joined:
    May 26, 2007
    Messages:
    204
    Resources:
    2
    Models:
    1
    Tutorials:
    1
    Resources:
    2
    They are? They're loading fine for me.
     
  4. mjllonir

    mjllonir

    Joined:
    May 31, 2009
    Messages:
    432
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Ah nvm, maybe the page loading didn't work properly
     
  5. DarkPost

    DarkPost

    Joined:
    Jun 22, 2008
    Messages:
    61
    Resources:
    2
    Maps:
    2
    Resources:
    2
    This seemst to be working perfectly, without actually testing it in-game and stuff, making sure everything's allright.
    However, in the data editor of my newly created unit, the weapon is still the Gauss Rifle and not the "Pulse Rifle" which was my custom weapon.
    What did I do wrong?

    Edit: The effect seemst to also be "Marine - Gauss Rifle (Damage)", and not my custom effect.

    Edit 2: Where do I edit my stats (hp, energy, regen, armor) for my newly created unit?

    Edit 3: Nevermind, found it X_X
    Was just my brain playing tricks on me.

    Edit 4: HAH! I FIGURED IT OUT!
    I'll edit this for a fifth time if it doesn't work. Lol.
     
    Last edited: Aug 22, 2010
  6. ban-lord

    ban-lord

    Joined:
    May 26, 2007
    Messages:
    204
    Resources:
    2
    Models:
    1
    Tutorials:
    1
    Resources:
    2
    Change the stats on the unit itself, you also need to change the weapon on the unit too. If you find anything else I need to add be sure to tell me.
     
  7. DarkPost

    DarkPost

    Joined:
    Jun 22, 2008
    Messages:
    61
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Yeah I figured it out when I scrolled through the data. 'Twas like "Weapon" caught in the courner of my eye so I was like "AHA!!"
    Thanks for this great guide, by the way. I can now create my own units :D
     
  8. SadisticLeprechaun

    SadisticLeprechaun

    Joined:
    Dec 17, 2010
    Messages:
    111
    Resources:
    0
    Resources:
    0
    This tutorial looks good, except I see no images. :(
     
  9. The_wand_mirror

    The_wand_mirror

    Joined:
    Sep 24, 2006
    Messages:
    4,273
    Resources:
    0
    Resources:
    0
    No images here either.
     
  10. Cokemonkey11

    Cokemonkey11

    Wurst Reviewer

    Joined:
    May 9, 2006
    Messages:
    3,234
    Resources:
    18
    Tools:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    2
    JASS:
    7
    Resources:
    18
  11. Dromlexer

    Dromlexer

    Joined:
    Feb 3, 2010
    Messages:
    365
    Resources:
    1
    StarCraft II Resources:
    1
    Resources:
    1
    I see no Images. But this tutorial help me some problems with the Data Editor.