So, as the title suggests, I would like to know if there's any way to target a unit spawned from a Hangar ability (Carriers, Brood Lord etc) with an effect from within the Data Editor. To clarify I'm not asking how to make it so hangar units can be attacked.
The reason I ask is because I have made a squadron system for a mod I'm making where I have the 'Squadron leader' and then have the squadron members spawned with a Hangar ability.
The squadron aircraft can be targetted by enemy units, but not selected by the owning player and all orders are given to the leader. I've also set up a system whereby the squadron leader's health increases for each aircraft which is part of the squadron (representing the combined hitpoints of the squadron and also to try and get around the issue of just taking out the leader destroying all the other members of the squad) and when an aircraft is destroyed the hitpoint bonus is lost.
What I need help with is the opposite: Making it so that when the main unit's hitpoints drop below certain thresholds it should kill one of the sub units, I'm just not sure how to grab one of the sub units with the Data Editor.
Thanks in advance and hopefully this post is legible...
With the Arm Magazine ability when the main unit dies all ammo units die no matter what.
So a Conjoined behaviour is not desired? Or just adding a buff to the unit setting it to no draw and disabling damage.
Use the Effect - Effects - Launch field to apply a search to detect the main unit on creation that applies a buff back to the caster. Unsing this effect tree you can pretty much do anything relating to ammo units and the main unit via the effect field above the value field for targets.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Though, could you explain a bit more about Conjoined/link to the appropriate thread? That could work too if it's what I think it is.
And I know hangar units die no matter what if the main unit dies, I'm just trying to sort of work around that making no sense storywise (all the fighters commit suicide 'cause their leader died?)
Edit: Well conjoined isn't suitable for my needs as you can't limit it to individual units + ammo, it just links all the units with the ability within range, including other 'squadrons'
I'm looking into other methods such as the Effect Launch one, but I'm still not entirely sure how to actually LINK the ammo unit and the master unit so that I can then kill one of the ammo unit when the master unit's health drops below a certain threshold.
To clarify, here's an example of how I want it to function. I have already set up the hitpoint bonus and losing the bonus if one of the ammo units is destroyed. The part I need help with is highlighted in bold.
Main unit has 100 HP
Main unit trains a new ammo unit, the main unit's maximum hitpoints are increased to 200
If an ammo unit is destroyed, the max HP bonus it granted is removed from the main unit.
If the main unit's health drops below the amount provided by the ammo unit (100/200 HP for example) it should kill one of the ammo units.
Hopefully that's clearer and someone can help me. Thank you :)
So, as the title suggests, I would like to know if there's any way to target a unit spawned from a Hangar ability (Carriers, Brood Lord etc) with an effect from within the Data Editor. To clarify I'm not asking how to make it so hangar units can be attacked. The reason I ask is because I have made a squadron system for a mod I'm making where I have the 'Squadron leader' and then have the squadron members spawned with a Hangar ability. The squadron aircraft can be targetted by enemy units, but not selected by the owning player and all orders are given to the leader. I've also set up a system whereby the squadron leader's health increases for each aircraft which is part of the squadron (representing the combined hitpoints of the squadron and also to try and get around the issue of just taking out the leader destroying all the other members of the squad) and when an aircraft is destroyed the hitpoint bonus is lost.
What I need help with is the opposite: Making it so that when the main unit's hitpoints drop below certain thresholds it should kill one of the sub units, I'm just not sure how to grab one of the sub units with the Data Editor.
Thanks in advance and hopefully this post is legible...
With the Arm Magazine ability when the main unit dies all ammo units die no matter what.
So a Conjoined behaviour is not desired? Or just adding a buff to the unit setting it to no draw and disabling damage.
Use the Effect - Effects - Launch field to apply a search to detect the main unit on creation that applies a buff back to the caster. Unsing this effect tree you can pretty much do anything relating to ammo units and the main unit via the effect field above the value field for targets.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Thanks! I'll look into the Effects Launch thing.
Though, could you explain a bit more about Conjoined/link to the appropriate thread? That could work too if it's what I think it is.
And I know hangar units die no matter what if the main unit dies, I'm just trying to sort of work around that making no sense storywise (all the fighters commit suicide 'cause their leader died?)
It is what the trains in the campaign use to share hp.
Could have a linked damage response when damage would be fatal that damages random ammo unit?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Hmm I'll look into that, thanks.
Edit: Well conjoined isn't suitable for my needs as you can't limit it to individual units + ammo, it just links all the units with the ability within range, including other 'squadrons'
I'm looking into other methods such as the Effect Launch one, but I'm still not entirely sure how to actually LINK the ammo unit and the master unit so that I can then kill one of the ammo unit when the master unit's health drops below a certain threshold.
To clarify, here's an example of how I want it to function. I have already set up the hitpoint bonus and losing the bonus if one of the ammo units is destroyed. The part I need help with is highlighted in bold.
Hopefully that's clearer and someone can help me. Thank you :)
Any ideas? I can't but think there's something really basic I'm missing :-/
@Kanitala: Go
Sorry to bump but it has been the weekend and so I thought people might not have seen my last update to the post.