I want to make an upgrade that will change the Marines into the merc versions and other units into the upgraded version, it would also effect existing units on the map giving them extra stats.
You can get the pictures yourself, the easiest template probably are the "dark" Protoss from the campaign. Pick a unit with a "dark" model (e.g. Stalker), open the Events+ field on its Actor, and check all non-grey entries. There'll be half a dozen starting with "Upgrade.DarkProtoss", including some to revert the visuals if the upgrade is removed.
Marines should also work for the Combat Shield upgrade, but stay away from Zerglings if you're inexperienced as they'll have a lot of other events to handle burrowing.
i know i will have to play with some things, the upgrade is just to change the units into an upgraded/merc version of them self with some stat changes.
+50 health for marines +2 range, +3 armor and +50 energy for medics/ghosts or what have you.
is there an upgrade that already exists that i could just copy, change who turns into what or no?
i just want to make sure i cover all possible paths i could take before i start it
And since you talk about copying an Upgrade, no, they can't do that at all. When you select anything as the effect target of an Upgrade, it brings up a complete list of all fields you can change, this includes placement and construction models for Unit actors, but not the main model. Those must be set by an actor, and in the case of player-wide updates such as an Upgrade your best bet is placing the events on the affected Unit actor directly.
You can stuff a ridiculous number of effects into one upgrade, probably 255 or more. However only a specific set of fields may be changed via Upgrades at all, anything not listed in the dropdown menu simply isn't possible, at least directly.
So you can make a single upgrade that gives +HP, +Range and life regen to all Terran units in one go. Edit: Model change is the main thing that doesn't work, derp. Upgrade.Add does work, it's used in both Blizzard campaigns.
your basically right but your example is wrong, you can change the mover of a unit with upgrades. i'll do exactly this in queen survival with broodqueen upgrade.
to the problem:
you can change a hell lot of things in upgrades but you cannot make it trigger something in actors (upgrade.add doesnt work for me as event). easiest way is to replace the units (as i do in my map planetary cleaning service - check it out it might be exactly what you want) with triggers. just use research finished as event , then pick all units of type, replace selected unit with merc. if you have a train ability add your merc to it, create a requirement with the upgrade, one for the marine and one for the war pig. put them on the same slot and your done.
Just to throw this out there, HoTS campaign dependencies do upgraded units by replacing the units altogether. So this would would help if you wanted to contain all information about the upgraded unit in its own unit data. They utilize a combination of the "army units" and "army categories" data areas. I don't 100% understand how these areas work yet, but I may look into it further.
I want to make an upgrade that will change the Marines into the merc versions and other units into the upgraded version, it would also effect existing units on the map giving them extra stats.
how would i do this?
have a model swap function on the actor (see bunker or zergling speed upgrade for example), then change the stats with a upgrade.
is there anything that would show me how to do that?
anything step by step with nice pretty pictures?
You can get the pictures yourself, the easiest template probably are the "dark" Protoss from the campaign. Pick a unit with a "dark" model (e.g. Stalker), open the Events+ field on its Actor, and check all non-grey entries. There'll be half a dozen starting with "Upgrade.DarkProtoss", including some to revert the visuals if the upgrade is removed.
Marines should also work for the Combat Shield upgrade, but stay away from Zerglings if you're inexperienced as they'll have a lot of other events to handle burrowing.
hummm.
is that the easiest way to do it?
i know i will have to play with some things, the upgrade is just to change the units into an upgraded/merc version of them self with some stat changes.
+50 health for marines +2 range, +3 armor and +50 energy for medics/ghosts or what have you.
is there an upgrade that already exists that i could just copy, change who turns into what or no?
i just want to make sure i cover all possible paths i could take before i start it
literally just copy the actor function reguarding this off of the bunker or zergling and change the model and upgrade to your own
And since you talk about copying an Upgrade, no, they can't do that at all. When you select anything as the effect target of an Upgrade, it brings up a complete list of all fields you can change, this includes placement and construction models for Unit actors, but not the main model. Those must be set by an actor, and in the case of player-wide updates such as an Upgrade your best bet is placing the events on the affected Unit actor directly.
so an upgrade cant effect more than one thing?
I cant give the marines an upgrade that will give them +50 HP and +2 range together?
just making sure i get all this correctly
You can stuff a ridiculous number of effects into one upgrade, probably 255 or more. However only a specific set of fields may be changed via Upgrades at all, anything not listed in the dropdown menu simply isn't possible, at least directly.
So you can make a single upgrade that gives +HP, +Range and life regen to all Terran units in one go. Edit: Model change is the main thing that doesn't work, derp. Upgrade.Add does work, it's used in both Blizzard campaigns.
@Photoloss: Go
your basically right but your example is wrong, you can change the mover of a unit with upgrades. i'll do exactly this in queen survival with broodqueen upgrade.
to the problem:
you can change a hell lot of things in upgrades but you cannot make it trigger something in actors (upgrade.add doesnt work for me as event). easiest way is to replace the units (as i do in my map planetary cleaning service - check it out it might be exactly what you want) with triggers. just use research finished as event , then pick all units of type, replace selected unit with merc. if you have a train ability add your merc to it, create a requirement with the upgrade, one for the marine and one for the war pig. put them on the same slot and your done.
Just to throw this out there, HoTS campaign dependencies do upgraded units by replacing the units altogether. So this would would help if you wanted to contain all information about the upgraded unit in its own unit data. They utilize a combination of the "army units" and "army categories" data areas. I don't 100% understand how these areas work yet, but I may look into it further.
A potential work around is give he unit an auto cast morph ability with the requirement that changes he unit to the upgraded version
Or triggers - Unit enters map>Replace unit action
@masked you would also have to pick existing units. Seems like more of a hasstle imo but I guess in theory it may work
omg what a overkill
lol maybe. But the trigger solution is very easy.
I think data is a lot cleaner. Not sure what the problem is with copying the metabolic boost upgrade/ actor events
@_@
i need a tutorial for dummies here -_-
I was hoping to make a kind of map/mission like the Left 2 Die one, only give it more of a interesting twist to it.
the morphing upgrade would be one of them .......... i guess the changes into the new unit, the unit could have the extra stats right?
change all units into A, A has +HP etc
that would work right? or not for the existing units?
@spy46: Go
I have no idea what you are talking about anymore... only thing I got from that was that you don't know what you are doing lol
maybe ill make a tutorial video.... sounds tedious tho.... ill think about it
EDIT
here:
never claimed to be good at making tutorials tho lol
@joey101d: Go
No smexy voice?