Tutorial Data Editor - A Vital Guide

Siretu

Starcraft 2 Editor Moderator
Staff member
Let's recap what you want: You want upgrades that modify Sam's damage/armor? Possibly with different amounts of damage to different target types? You then want to add the abilities so you can buy the upgrades in a building?

First of all, you'll need upgrades. Go into the data editor and find the Upgrades type. Create a new upgrade called something like "Sam's damage upgrade". In the Upgrade: Effects, right click in the empty list and add a new effect. This is something that will change when you get the upgrade.

When you get the upgrade you want to change Sam's damage is supposed to increase. The damage comes from the Damage effect you created earlier so make the type "Effect" and the object "Laser Blaster (Damage)". You'll get a list of all fields in that effect. You want the first one called "Amount".

Next, pick an operation. Let's say you want each level to increase damage with 5. In that case choose the "Add" operation and the value 5. If you wanted to increase the attack damage with 50% you could choose the "Multiply" operator and the value "1.5". If you want to upgrade a specific target type you just create a new effect in the list and also set the data reference type to effect and the object to "Laser Blaster (Damage)"(just like you did with the first effect) and modify one of the "Attribute bonus" fields.

To modify the armor, instead of picking the type "Effect" for your upgrade effects, pick "Unit"(Note, I'm talking about upgrade effects. This is the effects upgrades has on units. These are not the same thing as normal effects that I talked about in the tutorial. Basically when you set the type to "Effect" in the upgrade effects you tell the upgrade to change a normal effect)

Set the object to "Sam" and find the "Life maximum" and "Life Starting Amount" fields and modify those how you want it.

To make the upgrades researchable: Create a button for it. Find the building you want to put it in. If the building already has some upgrades, find the Research-type ability that it uses. If you go to the "Engineering bay" unit for example you'll see it has 4 abilities linked to it. One of them is called "Engineering Bay - Research (Engineering Bay)". That is the building's research ability. If it doesn't have one, create your own. Make sure the type is "Research"

Go to the "Ability: info". Scroll down until you find an upgrade slot that isn't used yet. Double-click it to add your upgrade to it. In the pop-up that appears pick the button for your upgrade. Scroll down to the bottom and pick the upgrade for the "Info - Upgrade" field. You can also modify the "Info - Time" field to set the time it takes to research it.
 

Phubar

Well-Known Member
Tnx for the answer, i will try asap :)
My question was a little different, i wanted to upgrade Sam's armour/damage with the "common" terran infantry/armour upgrade (the one that upgrades marines, marauders, reapers, ghosts) but with this mini tutorial i have the knowledge to create my own upgrade so i think i will even be able to modify the existing one.
 

Siretu

Starcraft 2 Editor Moderator
Staff member
Modifying one of the "common" upgrades is even easier. You just have to find the upgrade and check out the effects. There's a lot of upgrade effects in it. Basically it changes the life armor icon, the life armor and the life armor level for each unit affected.
 

Phubar

Well-Known Member
I added Ripple smash to Sam and it works but i want to make some changes, i tried making them on my own but i'm not able to find the solution.

I wanted to exclude allied units from direct damage (the one that deals 100) and in the effetct "Ripple smash (Target damage)" i unchecked "ally, player, neutral" like in the area effect but it doesnt work... I will damage the target every time.

Second question, how can i prevent Sam to use the ability on frienly units? (making a frendly unit unable to be selected as target?)
 

Siretu

Starcraft 2 Editor Moderator
Staff member
To prevent Sam from using the ability on friendly units, go into the Ripple Smash ability and open the "Ability: Target Filters + " field.

In here, add a new target filter to the list by right-clicking and pressing "Add value...". You can now create a target filter like you want it. Check Enemy and Neutral to make it unusable on allied and player units.

This should also solve your first issue since if you can't cast it on an allied unit it will never be the target of the direct damage.
 

X-maul

AKA: Demtrod
Good tutorial - For your next spell for 'Sam'.
You could create an ability that damages a targeted enemy unit and heals the caster, the spell would play a sound and have some healing and damaging eye candy.
I would appriciate a tutorial for creating abilities like that(effects affecting both the target and the caster, even though it might be fairly simple).
 

Flufhamster

New Member
So from the very beginning I'm not able to place my unit on the map. When I test the map it says, "USER: Invalid preplaced unit: Sam" Am I missing something with my dependencies or something? This problem is kinda brick-walling me in cuz I can mess with the data editor all I want, and nothing is going to happen if I can't even place the unit. Anyone know what's going on?
 

Siretu

Starcraft 2 Editor Moderator
Staff member
I'm sorry. I completely missed this post.

I have no idea why this is happening. Have you tried doing it on a completely new map? Does it happen for all units or only Sam? At which part did you try placing Sam?
 

Baltazhar

Active Member
First of all I want to thank you for a brilliant tutorial - I was fairly good in the WC3 editor but found that so many things changed in the SC2 that I put it on hold for a bit.
Now I've started trying to get into it and what better place to start than this tutorial about creating "Sam".

I've completed the tutorial but have bumped into a problem. After spending a few hours Googling it I gave up that idea and thought I'd post here.
The problem I am having is that Sam can't attack anything - the generic error "Must target a unit" appears. When I click attack and hover over an enemy unit, it greys out and I am not able to make him attack anything. This is where I was hoping that someone in here could help :)

Back in the old days the unit in question would just have an "allowed targets" field, but that has changed a bit. From what I have found out it seems to point towards the two effects used (Laser Blaster (Damage) and Laser Blaster (Launch)), but "Target: Impact Location - Value" on both are set to "Target unit". I am not sure if you are able to figure it out based on that description or maybe liste a few usual suspects.

- B
 

X-maul

AKA: Demtrod
The targets are filtered in the weapon. So you will have to go to Sam's weapon, and look for the field: Weapon: Target Filters - Check out if something is set up wrong, you can most likely figure it out yourself. Required means that it has to be in that group, and Excluded means that it cant. Allowed, ofcourse means that the target can be allowed to be in that group.

For a reference go see how the Marine's (weapon) Target Filters is set up.
It's always a great help to check out how Blizzard did it when there's something you cant find out;)
 

Baltazhar

Active Member
X-maul: Thanks very much for the (surprisingly quick) response. The tip about checking how Blizzard's done is a good one - find a similar ability/unit/effect and check the values in there. Thanks for that.

I checked the weapons "Weapon: Target Filters" field and it was set to "everything allowed, visible required". I tried checking the Marauder's weapon (grenades) and it had pretty much the same except it excluded dead, invulnerable, missiles etc.
I tried copy pasting the value from the Punisher Grenades just to double check that nothing was missing. Unfortunately, same error. As soon as I hover the attack cursor over an enemy unit it greys out.

I don't think it has anything to do with the enemy units, but they are controlled by Player 2 set to be Computer controlled. I have also tried with Hostile targets, but same problem.
They are basic Zerglings and Marines with default values all around.

I attached the map to this post in case eyes-on is an easier approach.

Thanks a bucket for helping btw, TheHelper has always been the best for editors. Used it a lot back in my WC3 days :)
 

Attachments

Baltazhar

Active Member
Update:I have worked out what was wrong and why my Sam couldn't attack. Now don't ask me why, but I must have incorrectly set a value wrong.

Effects -> Laser Blaster (Launch) -> Target: Impact Location - Effect
This was set to "Laser Blaster (Damage)". As I was re-reading the tutorial I noticed this wasn't mentioned so i changed it back to the default (None).

There was another value I had set wrongly - I can't remember where it was, but it didn't solve the problem. I think I forgot to add the "Laser Blaster (Damage)" effect to the "Laser Blaster (Launch)" or something retarded like that.
Anyway, problem solved and tutorial step one and two completed.

Thanks again for the intro, I should be up to speed in the SC2 editor in no time :p

- B
 

X-maul

AKA: Demtrod
Good to know you figure it out :)
And I know it might seem impossible to figure it out by now, but I was at your position not long time ago, but when you get to learn the system and you look at how it's fundamentally set up, you will notice how much sence it makes ;)

For your example, you have to make a weapon fire a missile; then you will have to make an effect that fires a missile. You also want it to deal damage, so you will also need a damage effect that lands upon impact of the missile. And then ofcourse you need a missile unit, which needs an actor to be displayed, and so on ;)

A good way to troubleshoot is always to take it step by step, so starting with the weapon, then the missile effect and then the damage effect. It's almost always your own fault :b
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is online though at night
  • The Helper The Helper:
    You would probably have to take a loan to get the Rice cert it is like 14l
  • The Helper The Helper:
    I was hoping you were going to say you wanted to be a cook and wished to open up a Food Truck there are so many opportunities for that here
  • The Helper The Helper:
    you can only open the bar if you sell food and a food truck in the parking lot counts
  • The Helper The Helper:
    here in houston
  • The Helper The Helper:
    most bars are struggling to build food prep and even some I know are doing there own food trucks
  • The Helper The Helper:
    but yeah man you should come to Houston there is so much more opportunity here than San Antonio. Just look at all the homeless people on the Riverwalk and downtown there you cannot even walk down the street without getting mobbed them
  • The Helper The Helper:
    check out this place apparently it is the best roommate site out there roommates.com lol
  • Varine Varine:
    The homeless people reminded me of New York
  • Varine Varine:
    I'll check it out, my lease expires in like a few months so I need to figure something out.
  • Varine Varine:
    I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
  • Varine Varine:
    I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
  • Varine Varine:
    Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
  • The Helper The Helper:
    i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
  • The Helper The Helper:
    Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
  • The Helper The Helper:
    Just not enough food trucks
  • The Helper The Helper:
    a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
  • The Helper The Helper:
    He is in the different food facebook groups in houston and posts videos of him making his food
  • The Helper The Helper:
    he is killing it
  • jonas jonas:
    @Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
  • jonas jonas:
    I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
  • jonas jonas:
    My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
  • Ghan Ghan:
    The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
  • tom_mai78101 tom_mai78101:
    I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.

    Members online

    Affiliates

    Hive Workshop
    Top