I am trying to enable Story Mode Tech - (Medivac) Expanded Hull upgrade to just one Medivac, without affecting the others. I do not like the idea of changing ownership or replacing the unit as it may get cargo etc, so not good. But fyi, a player that has this enabled and you get cargo size 10, when you change ownership or rescue, the player who doesn't have the upgrade - the cargo goes back to 8. So if there is a way to apply this with triggers, data or both to a single unit?
Also how can I make it so that the upgrade also changes the model to the upgraded version? I see in the upgrade I can add actor, should an actor that orders a swap of models be added or what?
Use a buff to be able to apply to a singular unit as upgrades only effect the whole type. The either get the buff to modify the cargo space or use it with validators in an added ability with the large cargo. You can then set the model swap event in the actor of the medivac that checks on the behavior.
For me it is needed to use the Upgrade above and the Model Swap to happen as a result of the upgrade. Since researching it would affect the whole unit type not just a single unit, I decided to modify the upgrade by adding 0 extra Cargo, this makes it almost like a dummy upgrade. Since the upgrade won't add the Cargo then:
1) Is there any behavior or anything that can increase Cargo size? You offer a buff to do that but is there such? Or triggers though I don't know any triggers for that.
2) Is there a way to do the Model Swap when the upgrade is done via another actor? I don't want to modify Medivac's main actor to add
Can this be done with another actor that orders the main actor to do the swap? I tried making a simple actor with Event:
UnitBirth.Medivac - Create and then a new event Upgrade.ExtendedHull.Add -ModelSwap MedivacUpgrade with ::Main in the field but that didn't work and no swap happened when the upgrade was done.
3) Is there a way to change one Medivac's Unit Icon, Wireframe through trigger or actor message?
From my little experience i can only guess CatalogFieldValueSet might be appropriate. Its a function which allows you to change some field value of a unit type for a specific player.
From my little experience i can only guess CatalogFieldValueSet might be appropriate. Its a function which allows you to change some field value of a unit type for a specific player.
That function works exactly like an upgrade, it will affect all units of one type and player.
As I already told you multiple times: Scratch the upgrade! There is no way you can make an upgrade affect one unit only without workarounds involving changing its owner or something.
Instead, use a behavior and 2 different transport abilities. Make the behavior trigger the model swap (which works on an external actor) and make the behavior disable the first transport ability and enable the 2nd.
And yes, you can change the unit's portrait and stuff dynamically via actor messages, have a look at the Dark Templar for reference. If you prefer, you can also send all the actor messages to the unit via trigger instead of making the behavior trigger them, this way you don't have to mess with the actors at all.
€ okay, just tried it out, doesn't seem to work. If you use 2 different transport abilities, both have to be present on the unit, and if you disable one, it doesn't use the other automatically. So I guess the best solution currently is to morph into a different unit.
Yep, the upgrade is more like 'symbolic' as in I don't use it, researching it with adding 0 Cargo Size bonus is just to say that it was 'upgraded'. So I did continue yesterday as you and Jadem? in the room said.
I created a duplicate ability of Medivac Load-Unload and a custom Buff based behavior. Right now the Medivac has 3 buttons, under Load - Medivac button, it has the default Load-Unload, Advanced AI Healing and I added the third that is the custom Load-Unload with 10 cargo size - all under the same button position. When I started the Test Map a Trigger error message said 'Too many abilities' or something like that.
EDIT: After seeing your edit and as I just posted above, it doesnt wanna switch between Load-Unload abilities and gives a trigger error.
So there is no way to do it with even switching to custom Load-Unload? That sucks! Why didn't Blizz provide an option to at least remove and add an ability like in war3?
Okay and since I still do not want to use a Morph ability or add New Unit, I may rather not use the Extra Cargo...
In that case I will do the changes to a Single Medivac through triggers: Model Swap, Increase Life and Energy, and most importantly: Change UI Unit Icon, Hero Icon, Wireframe, Group Icon - you are saying these can be changed via actor message - my problem was exactly adding WHICH actor message or action can do that? I went through the list and found no way to change those.
In that case I will do the the changes to a Single Medivac through triggers: Model Swamp, Increase Life and Energy, and most importantly: Change UI Icon, Wireframe, Group - you are saying these can be changed via actor message - my problem was exactly adding WHICH actor message or action can do that? I went through the list and found no way to change those.
I know the Dark Templar changes some of these properties, but I just checked, and actor messages only change the Portrait, the other stuff like Wireframe and Icon are handled by the Variations for the respective fields. I am not sure, if you can set up the medivac in a similar way and make them always start with variation 1 and then swap to variation 2, while changing all the fields affected by variation.
You can try to explore this, but using a morph into a different unit would probably be easier ;). What prevents you from doing that?
Because the unit will load and unload units, I wanted some basic cosmetics change of a single unit with its icons using Swap Model and I don't want to create a new unit or actor just to do that... Ok I will just ignore the icons and wireframe as well. Blizzard triggers suck, some important Actions that you could do in War3 are completely devoid here. Thanks for all the help, I will just do Model Swap, Increase Life and Energy via triggers and that will be all.
I am trying to enable Story Mode Tech - (Medivac) Expanded Hull upgrade to just one Medivac, without affecting the others. I do not like the idea of changing ownership or replacing the unit as it may get cargo etc, so not good. But fyi, a player that has this enabled and you get cargo size 10, when you change ownership or rescue, the player who doesn't have the upgrade - the cargo goes back to 8. So if there is a way to apply this with triggers, data or both to a single unit?
Also how can I make it so that the upgrade also changes the model to the upgraded version? I see in the upgrade I can add actor, should an actor that orders a swap of models be added or what?
Use a buff to be able to apply to a singular unit as upgrades only effect the whole type. The either get the buff to modify the cargo space or use it with validators in an added ability with the large cargo. You can then set the model swap event in the actor of the medivac that checks on the behavior.
For me it is needed to use the Upgrade above and the Model Swap to happen as a result of the upgrade. Since researching it would affect the whole unit type not just a single unit, I decided to modify the upgrade by adding 0 extra Cargo, this makes it almost like a dummy upgrade. Since the upgrade won't add the Cargo then:
1) Is there any behavior or anything that can increase Cargo size? You offer a buff to do that but is there such? Or triggers though I don't know any triggers for that.
2) Is there a way to do the Model Swap when the upgrade is done via another actor? I don't want to modify Medivac's main actor to add
Upgrade.ExtendedHull.Add -ModelSwap MedivacUpgrade
Can this be done with another actor that orders the main actor to do the swap? I tried making a simple actor with Event:
UnitBirth.Medivac - Create and then a new event Upgrade.ExtendedHull.Add -ModelSwap MedivacUpgrade with ::Main in the field but that didn't work and no swap happened when the upgrade was done.
3) Is there a way to change one Medivac's Unit Icon, Wireframe through trigger or actor message?
From my little experience i can only guess CatalogFieldValueSet might be appropriate. Its a function which allows you to change some field value of a unit type for a specific player.
That function works exactly like an upgrade, it will affect all units of one type and player.
As I already told you multiple times: Scratch the upgrade! There is no way you can make an upgrade affect one unit only without workarounds involving changing its owner or something.
Instead, use a behavior and 2 different transport abilities. Make the behavior trigger the model swap (which works on an external actor) and make the behavior disable the first transport ability and enable the 2nd.
And yes, you can change the unit's portrait and stuff dynamically via actor messages, have a look at the Dark Templar for reference. If you prefer, you can also send all the actor messages to the unit via trigger instead of making the behavior trigger them, this way you don't have to mess with the actors at all.
€ okay, just tried it out, doesn't seem to work. If you use 2 different transport abilities, both have to be present on the unit, and if you disable one, it doesn't use the other automatically. So I guess the best solution currently is to morph into a different unit.
@Kueken531: Go
Yep, the upgrade is more like 'symbolic' as in I don't use it, researching it with adding 0 Cargo Size bonus is just to say that it was 'upgraded'. So I did continue yesterday as you and Jadem? in the room said.
I created a duplicate ability of Medivac Load-Unload and a custom Buff based behavior. Right now the Medivac has 3 buttons, under Load - Medivac button, it has the default Load-Unload, Advanced AI Healing and I added the third that is the custom Load-Unload with 10 cargo size - all under the same button position. When I started the Test Map a Trigger error message said 'Too many abilities' or something like that.
EDIT: After seeing your edit and as I just posted above, it doesnt wanna switch between Load-Unload abilities and gives a trigger error.
So there is no way to do it with even switching to custom Load-Unload? That sucks! Why didn't Blizz provide an option to at least remove and add an ability like in war3?
Okay and since I still do not want to use a Morph ability or add New Unit, I may rather not use the Extra Cargo...
In that case I will do the changes to a Single Medivac through triggers: Model Swap, Increase Life and Energy, and most importantly: Change UI Unit Icon, Hero Icon, Wireframe, Group Icon - you are saying these can be changed via actor message - my problem was exactly adding WHICH actor message or action can do that? I went through the list and found no way to change those.
I know the Dark Templar changes some of these properties, but I just checked, and actor messages only change the Portrait, the other stuff like Wireframe and Icon are handled by the Variations for the respective fields. I am not sure, if you can set up the medivac in a similar way and make them always start with variation 1 and then swap to variation 2, while changing all the fields affected by variation.
You can try to explore this, but using a morph into a different unit would probably be easier ;). What prevents you from doing that?
@Kueken531: Go
Because the unit will load and unload units, I wanted some basic cosmetics change of a single unit with its icons using Swap Model and I don't want to create a new unit or actor just to do that... Ok I will just ignore the icons and wireframe as well. Blizzard triggers suck, some important Actions that you could do in War3 are completely devoid here. Thanks for all the help, I will just do Model Swap, Increase Life and Energy via triggers and that will be all.