I've got this ability I made that summons a burrowed zergling. As it now I just have a trigger that auto-unburrows the zergling but was wonder just how far the data side of this ability could I take it. I am wanting to do 4 things and am I not sure if they can be done with the data editor or if I have to use triggers. If I could I would like to do it purely with data.
So basically.....Data or Trigger?
1. Upon creating a burrowed unit, I want it to unburrow automatically.
2. The unit created becomes an ally but creator is unable to control it.
3. Created unit wanders around creator attacking enemies at will but never getting to far away.
4. If created unit gets to far away, move unit back to creator.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
1. There's a field, I think it's Effect - Effect - Spawn in the Create Unit effect that allows you to run an effect on the create unit. Make it a Set Effect that has as Issue Order effect that orders it to unburrow, and an Apply Behavior Effect.
2 & #3 & #4. the Apply Behavior effect should make the zergling uncontrollable. On the Behavior, you would setup a system of persistents/searches that would check to see how far the Caster of the Spawn Effect is, and would basically "leash" the zergling to the Caster. Check out the Map "Drunken Bounty Hunter RPG" by Dryeyece on NA Server, it SHOULD still be up. If it's not, message him on Mapster or check the IRC. He implemented this exact "uncontrollable, but follows the caster" behavior on Scarlet Rose.
Ok thanks! I was able to get the zergling to unburrow when I created it. However, I was unable to find the map you referred to and I was also unable to prevent player control of the summoned zerglings. I think I created the behavior and the Apply Behavior effect correctly I just don't know how to link them to the ability.
How do I link the Apply Behavior effect to an ability?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
This is what I have so far. The ability is set up and the zergling spawns perfectly and unburrows like I want it to. However, the behavior of making the unit unable to do anything isn't getting applied to the zerglings. I've treid setting the abilities EFFECT - EFFECT to (Summon Ling (No Control)) to try and trigger the behavior alone but nothing happens. What am I missing or doing wrong?
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Use the Arm Magazine ability with the magazine set to external. You can then set the leash range that the units automatically are ordered to return if they exceed it under the Ability - Leash field. You can then give a Set effect containing an Issue Order to unburrow effect and an Apply Behavior effect giving the created unit a hidden buff that makes it uncontrolable using the Effect - Effects field under launch. The type of unit created and how far from the creator they default to can be set under Info - Distance and Info - Unit with Data - External Angle adjusting the positions relative to the creator. Finally you will need to give the created units a Wander type behavior to make them move around constantly.
Basicly the Arm magazine ability covers 1 and 4 with the issue order also covering 1. The wander behavior covers 3 and number 2 is covered by the buff added by the apply behavior.
If in doubt read the wiki, there are articles there on all the stuff ive mentioned.
@DrSuperEvil:
If you use the Arm Magazine, can the zergling attack separate targets on its own, or would it behave like an Interceptor and only attack what the caster attacks??
Dryeyece implemented his system where the minion could attack its own targets at will, was leashed to the character, and when the character used certain abilities it would also force the minion to use its own special abilities on the character's chosen target, supplementing the characters attacks, then returning to its oringal target... it was quite awesome :)
Thanks for the tutorial, it might come in handy later. Unfortunately, even after I duplicated his tutorial, I was still unable to get the behaviors to apply to the zerglings. I tried both changing mine to fit the tutorial and after frustration I just started a new map following his tutorial and neither worked. I decided to just go with that tutorials version. But again, the behavior isn't getting applied to the unit. I get the burrowed zergling created, it unburrows and I can still control it (even after setting the flags to uncommandable) and it doesn't follow my caster. What I think is happening is that the behavior is getting applied to the burrowed zergling and the effect is off when i order it to unburrow? I did a little test and sure enough, if I leave out the Issue Order effect, I can't do anything to the zergling. But since its burrowed it wont follow, lol.
Edit
For whatever reason, under the units tab a duplicate unit from Summoned Zergling was created but its source was LibertyMulti.SCMod. So I set the flags of that one to Uncontrollable and now I can't control the zergling. But it still doesn't follow.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
@DrSuperEvil: Yep, the caster unit is an infested marine with a gause rifle as weapon.
Well I figured out what I was doing wrong. The ability was triggering the set effect when it needed to simply trigger the create unit effect. So I set the ability effect-effect to the create unit effect. Then I set the create unit effect - effect spawn to the set effect. This gave me the desired results. Now all I have to do is set up the leash.
How do I use the Search area effect to accomplish the leash?
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Probably could simplify the leash using a buff that constantly issues order to the creating unit but the issue order has a Location Range validator that is enabled if the unit is futher than x away from the creating unit. Easiest way to identify the creator compared to other units would be to get the create effect tree to apply a hidden recognition buff onto the creating unit which a search area effect then validates for combined with a Unit Type validator.
You could have a look here, where I implemented a basic leash by using an aura (periodic search to apply a behavior). The behavior's expire effect then issues an order back to the caster. So whenever the unit loses the aura buff (aka leaves the leash range), it moves back in range.
This uses basically the same thoughts, DrSuperEvil described.
Probably could simplify the leash using a buff that constantly issues order to the creating unit but the issue order has a Location Range validator that is enabled if the unit is futher than x away from the creating unit. Easiest way to identify the creator compared to other units would be to get the create effect tree to apply a hidden recognition buff onto the creating unit which a search area effect then validates for combined with a Unit Type validator.
Yeah I've been looking into a validator for the past few hours. My initial thoughts were to apply a detect range validator to the issue order effect but I am afraid I don't know how to use validators. Currently though I do have the zergling following my infested marine around after it summons. However, any time I move, the zergling stops attacking and follows me. Also, the zergling follows to close. And I have no idea to accomplish what you just said, heh.
You could have a look here, where I implemented a basic leash by using an aura (periodic search to apply a behavior). The behavior's expire effect then issues an order back to the caster. So whenever the unit loses the aura buff (aka leaves the leash range), it moves back in range.
This uses basically the same thoughts, DrSuperEvil described.
Thats exactly the effect I am going for. However, in both cases I am not sure how to accomplish the task. I think the validator would be the better choice seeing as thats all I really lack to get it working properly. Ill take a look at the map and see what I can come up with. Thanks.
Here is an updated version of the map and what I have so far.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I just don't get it. I can't figure out how it works...can't wrap my head around it. How do I check if the summoned unit is in a certain range from the caster?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Look at the Location Range type validator. There are two fields of interest, the Validator - Compare field must be set to Greater Than and the Validator - Range field must be set to your max leash range. Presuming Target - Location - Value is set to Target Unit/Point the validator will disable the issue order effect if it is placed under the Effect - Validators field of the issue order effect if the unit is within the leash range. If the unit leaves the leash range the issue order effect will be enabled and the unit will be sent back.
Wow, that is so much easier to understand than what I was seeing in that map Kueken531 posted.
I added in the location range validator and set the variables accordingly. The summoned zergling does what it's supposed to until the leash is triggered. It looks like the leash effect is never dropped or the validator gets stuck thinking that the range is always greater than what I set it at. Why would it work flawlessly once and then auto issue the order effect non-stop? Any ideas what could be going wrong?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
When the ability is used it calls the summon effect that summons the zergling. The zergling is created, unburrows and becomes uncommandable. Then the search effect runs periodically to check for summons in the area.
Behavior: Leash: Effect - Periodic: Summon Return to Summoner
Effect Issue Order: Return To Summoner: Target +: Caster Unit/Point
What is happening is that the zergling is created, unburrows and control is removed from the player. As soon as the summoner leaves the range of 5, the leash effect is applied to the zergling....but it never goes away. Every move the summoner makes the zergling follows toe to heel.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Issue the order to caster point instead of caster unit/point. Issuing a move order on a unit causes the unit to follow the other unit forever, and in case of unit/point, the unit will be taken, if available, so you need to use Caster Point specifically.
€ this is assuming, your order is actually a move order ;)
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I've got this ability I made that summons a burrowed zergling. As it now I just have a trigger that auto-unburrows the zergling but was wonder just how far the data side of this ability could I take it. I am wanting to do 4 things and am I not sure if they can be done with the data editor or if I have to use triggers. If I could I would like to do it purely with data.
So basically.....Data or Trigger? 1. Upon creating a burrowed unit, I want it to unburrow automatically. 2. The unit created becomes an ally but creator is unable to control it. 3. Created unit wanders around creator attacking enemies at will but never getting to far away. 4. If created unit gets to far away, move unit back to creator.
@bulletbutter: Go
Can all be done with Data.
Ok thanks! I was able to get the zergling to unburrow when I created it. However, I was unable to find the map you referred to and I was also unable to prevent player control of the summoned zerglings. I think I created the behavior and the Apply Behavior effect correctly I just don't know how to link them to the ability.
How do I link the Apply Behavior effect to an ability?
This is what I have so far. The ability is set up and the zergling spawns perfectly and unburrows like I want it to. However, the behavior of making the unit unable to do anything isn't getting applied to the zerglings. I've treid setting the abilities EFFECT - EFFECT to (Summon Ling (No Control)) to try and trigger the behavior alone but nothing happens. What am I missing or doing wrong?
http://forums.sc2mapster.com/resources/tutorials/17420-data-ai-simple-behaviors/
the 2nd guide sounds like your question
Use the Arm Magazine ability with the magazine set to external. You can then set the leash range that the units automatically are ordered to return if they exceed it under the Ability - Leash field. You can then give a Set effect containing an Issue Order to unburrow effect and an Apply Behavior effect giving the created unit a hidden buff that makes it uncontrolable using the Effect - Effects field under launch. The type of unit created and how far from the creator they default to can be set under Info - Distance and Info - Unit with Data - External Angle adjusting the positions relative to the creator. Finally you will need to give the created units a Wander type behavior to make them move around constantly.
Basicly the Arm magazine ability covers 1 and 4 with the issue order also covering 1. The wander behavior covers 3 and number 2 is covered by the buff added by the apply behavior.
If in doubt read the wiki, there are articles there on all the stuff ive mentioned.
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
Thanks for the tutorial, it might come in handy later. Unfortunately, even after I duplicated his tutorial, I was still unable to get the behaviors to apply to the zerglings. I tried both changing mine to fit the tutorial and after frustration I just started a new map following his tutorial and neither worked. I decided to just go with that tutorials version. But again, the behavior isn't getting applied to the unit. I get the burrowed zergling created, it unburrows and I can still control it (even after setting the flags to uncommandable) and it doesn't follow my caster. What I think is happening is that the behavior is getting applied to the burrowed zergling and the effect is off when i order it to unburrow? I did a little test and sure enough, if I leave out the Issue Order effect, I can't do anything to the zergling. But since its burrowed it wont follow, lol.
Edit
For whatever reason, under the units tab a duplicate unit from Summoned Zergling was created but its source was LibertyMulti.SCMod. So I set the flags of that one to Uncontrollable and now I can't control the zergling. But it still doesn't follow.
@BorgDragon: Go
That is purely presuming the unit has an attack of its own and is not a spellcaster like a high templar
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: Yep, the caster unit is an infested marine with a gause rifle as weapon.
Well I figured out what I was doing wrong. The ability was triggering the set effect when it needed to simply trigger the create unit effect. So I set the ability effect-effect to the create unit effect. Then I set the create unit effect - effect spawn to the set effect. This gave me the desired results. Now all I have to do is set up the leash.
How do I use the Search area effect to accomplish the leash?
Probably could simplify the leash using a buff that constantly issues order to the creating unit but the issue order has a Location Range validator that is enabled if the unit is futher than x away from the creating unit. Easiest way to identify the creator compared to other units would be to get the create effect tree to apply a hidden recognition buff onto the creating unit which a search area effect then validates for combined with a Unit Type validator.
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
You could have a look here, where I implemented a basic leash by using an aura (periodic search to apply a behavior). The behavior's expire effect then issues an order back to the caster. So whenever the unit loses the aura buff (aka leaves the leash range), it moves back in range.
This uses basically the same thoughts, DrSuperEvil described.
Yeah I've been looking into a validator for the past few hours. My initial thoughts were to apply a detect range validator to the issue order effect but I am afraid I don't know how to use validators. Currently though I do have the zergling following my infested marine around after it summons. However, any time I move, the zergling stops attacking and follows me. Also, the zergling follows to close. And I have no idea to accomplish what you just said, heh.
Thats exactly the effect I am going for. However, in both cases I am not sure how to accomplish the task. I think the validator would be the better choice seeing as thats all I really lack to get it working properly. Ill take a look at the map and see what I can come up with. Thanks.
Here is an updated version of the map and what I have so far.
I just don't get it. I can't figure out how it works...can't wrap my head around it. How do I check if the summoned unit is in a certain range from the caster?
Look at the Location Range type validator. There are two fields of interest, the Validator - Compare field must be set to Greater Than and the Validator - Range field must be set to your max leash range. Presuming Target - Location - Value is set to Target Unit/Point the validator will disable the issue order effect if it is placed under the Effect - Validators field of the issue order effect if the unit is within the leash range. If the unit leaves the leash range the issue order effect will be enabled and the unit will be sent back.
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
Wow, that is so much easier to understand than what I was seeing in that map Kueken531 posted.
I added in the location range validator and set the variables accordingly. The summoned zergling does what it's supposed to until the leash is triggered. It looks like the leash effect is never dropped or the validator gets stuck thinking that the range is always greater than what I set it at. Why would it work flawlessly once and then auto issue the order effect non-stop? Any ideas what could be going wrong?
Here is what I have so far and what its doing.
When the ability is used it calls the summon effect that summons the zergling. The zergling is created, unburrows and becomes uncommandable. Then the search effect runs periodically to check for summons in the area.
Ability: Effect - Effect: (Summon Zergling)
Effect Create Unit: Summon Zergling: Effect - Effect - Spawn: Summon Initial Set
Effect Set: Summon Initial Set:
Here is my settings for the search area. I have the validator in the Apply Leash Effect.
Effect Search Area: Summon - Search For Summons: Areas + (360):(-1):(5):(0):(Summon - Apply Leash)
Effect Apply Behavior: Apply Leash: Effect Validators: (Summon - Leash)
Behavior: Leash: Effect - Periodic: Summon Return to Summoner
Effect Issue Order: Return To Summoner: Target +: Caster Unit/Point
What is happening is that the zergling is created, unburrows and control is removed from the player. As soon as the summoner leaves the range of 5, the leash effect is applied to the zergling....but it never goes away. Every move the summoner makes the zergling follows toe to heel.
@bulletbutter: Go
Issue the order to caster point instead of caster unit/point. Issuing a move order on a unit causes the unit to follow the other unit forever, and in case of unit/point, the unit will be taken, if available, so you need to use Caster Point specifically.
€ this is assuming, your order is actually a move order ;)
Nope, now the zergling pushes the summoner around as hes following.
Your leash behavior stays on the unit forever. I don't think, this is supposed to happen, try to add a short duration to the behavior.