I am trying to make it so that when any of players 1-6 walk into a region that the units (zerglings and hydralisk for example) nearby unborrow. The units were placed as burrowed in the Terrain Editor. When I test my document I send a unit owned by player into a region but it does nothing. Infact most of the units that I placed as "burrowed" are on the surface before any region is entered. I do not understand why I am getting this result because I have done this based on the way it is done in the Map-Making trigger module guide on battle.net.
Before variables (units) I was using the direct value of the units on the map with the coordinates.
Then I changed to ordering variables (units) after seeing the way it is done in the map-making trigger guide.
Please help me fix this. This is a very much needed feature of my map for the Zerg.
Not really sure what is going on, would need to look at the map. I would suggest giving yourself total map vision at the start of the game to check things out (create a revealer and set its duration to 0). Also I would suggest putting a text message action in your trigger so you can see if and when the trigger is firing. That will help you narrow down the problem.
The trigger logic looks fine. Perhaps you unintentionally turned the trigger off initially or something?
Try printing out messages in the trigger. If these messages show, the problem is with the Unburrow order.
As far as the pre-Unburrow goes, it can either be some other trigger playing tricks on you, or it might be the AI for that unit, telling it to stop slacking underground.
Thank you both for your suggestions!! I tried both and it seems that there is something wrong with the trigger because the text message doesn't appear. I even made a wait trigger just to give myself enough time to spot anything. But no luck. Perhaps it really is the AI or another trigger interfering?
Did you enable the PC AI? I think you have to do it in Map Properties and maybe a init trigger. I had similar problems. Blizzards guide on the sc2 website has examples. Its linked in the wiki.
the problem is that units that burrow via trigger automatically unburrow themselves immediately after burrowing. I have never understood why, or how to make them stay burrowed
You have the melee AI started, this is what causes them to unburrow. See if campaign AI works betters, alternatively create the burrowed unit the the region and then order them to unburrow making it seem like they were there already. Is zerg entrance the name of a variable or is it the name of a region?
Ok so I changed Zerg control from hostile to computer then I changed the melee AI to campaign AI. Now they stay burrowed but ignore my trigger and only unburrow when I make a disturbance by killing nearby zerg units. I know that they are unborrowing without the region even needing to be entered. Do I have to override something in the AI control? I also know the zerg units are ignoring the trigger because the zerglings don't unburrow at all (which is really strange). Unless I have to make it so that the zerg units can only unborrow if any unit enters the region? That makes me wonder about the behavior settings in the zerg units.
make sure the controller has burrowed researched (or remove the requirement all together). you cant order a unit do something it is not capable of doing.
typically unburrow is always fine, but sometimes units won't be able to reburrow (same thing for siege tanks). It would be found under the burrow ability in data under requirements.
Are there units placed in the region already that could be causing them to unburrow or maybe Buildings that are not correctly allied or made enemies? Look at a Map from Wol or Hots that have a lot of burrowed units on it. You shouldn't have to go into the data editor for this issue.
Worse comes to worse. Just create burrowed units instantly via triggers. It should work!
I just decided to make it easy for myself and create burrowed units via triggers but this doesn't work for the burrowed zergling units which leads me to think there is something wrong with zerglings burrow/unborrow ability or the actual unit Zergling (borrowed). I cannot even create a zergling via triggers then make an action to make it burrow because it doesn't do burrow. It worked fine for the Hydralisk (burrowed) unit.
No. That's not it. The "Unburrow" ability doesn't care if there is a "Burrow" ability.
As mentioned previously, if your trigger doesn't even output messages, then that's your problem. And as joey101d mentioned, make sure "Burrow" (and perhaps other requirements) are researched or remove that requirement from the ability.
All right. I checked. Unburrow does not need Burrow to be researched.
I made an example map (attached). Things work like they should.
I bet you unintentionally disabled the trigger (Ctrl+I) or perhaps used the wrong region. Perhaps you had the wrong region selected when you named it, and then that's the one you use in your trigger?
Thank you for the example map!!! :D It helped me fix the issue with zerglings not unburrowing by giving me an idea. I made one of the zergling have player 1 ownership (mine) and then tested the document. I clicked on it and clicked unburrow then it said that I had to increase my supply limit. So this lead me to think that this is the same problem that the Zerg computer user is facing when the unburrow action is executed. I had noticed that your map didn't have to set player supply limit and that is what got me thinking and set the Zerg computer user supply limit to a high number (125). It works now. I believe this is because the zerg user has a Hive. Now I just have to make it so that they only burrow when the region is entered only and not when a certain range is reached. I blamed auto cast for the unburrow ability. The trigger works just fine. Just have to mess with the automatic unburrow behavior of the zerg units. I think I'll figure something out somehow. Thank you all for your help :) .
Aw man, issues like these are so lame and create huge headaches. Why would trading one units supply for another unit with the same amount of supply affect the ability transformation! C'mon David Kim! lol
Exactly! lol. Well said. I didn't understand that at all. This should be much simpler. Maybe the problem is that the features in the editor are too simple hah.
Well I said I would figure something out but I guess I was lying because I can't XD I tried everything I could think of. I think I have to just let the zerg units unburrow on their own terms -_- . This was supposed to be a dangerous region where zerg units unburrow when you are really close or in a certain position so that you could get surrounded. Also supposed to be more like surprise attacks (turning the corner or stepping into an ambush trying to avoid another) but it's not at all if you see every roach and even ultralisk unburrowing before getting close to the area. Can't be too ambitious I guess??
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am trying to make it so that when any of players 1-6 walk into a region that the units (zerglings and hydralisk for example) nearby unborrow. The units were placed as burrowed in the Terrain Editor. When I test my document I send a unit owned by player into a region but it does nothing. Infact most of the units that I placed as "burrowed" are on the surface before any region is entered. I do not understand why I am getting this result because I have done this based on the way it is done in the Map-Making trigger module guide on battle.net.
These units won't unburrow when the region is entered → http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem_zps0xexhph2.png
This unit is already on the surface before I get even close to the region. I think it unburrows as soon as the map finishes loading. → http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem2_zps0ybxblt8.png
Before variables (units) I was using the direct value of the units on the map with the coordinates. Then I changed to ordering variables (units) after seeing the way it is done in the map-making trigger guide.
Please help me fix this. This is a very much needed feature of my map for the Zerg.
Not really sure what is going on, would need to look at the map. I would suggest giving yourself total map vision at the start of the game to check things out (create a revealer and set its duration to 0). Also I would suggest putting a text message action in your trigger so you can see if and when the trigger is firing. That will help you narrow down the problem.
The trigger logic looks fine. Perhaps you unintentionally turned the trigger off initially or something?
Try printing out messages in the trigger. If these messages show, the problem is with the Unburrow order.
As far as the pre-Unburrow goes, it can either be some other trigger playing tricks on you, or it might be the AI for that unit, telling it to stop slacking underground.
Thank you both for your suggestions!! I tried both and it seems that there is something wrong with the trigger because the text message doesn't appear. I even made a wait trigger just to give myself enough time to spot anything. But no luck. Perhaps it really is the AI or another trigger interfering?
Here are screenshots of the area:
http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem3_zpsw0bhvtip.png
http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem4-2_zpsvbq21cay.png
Region 002 was only made for the revealer action.
Here are all my triggers and actions from the Map Initialization trigger:
http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem5_zpskuwr58vx.png
http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem6_zps6tyiofk4.png
http://i1373.photobucket.com/albums/ag377/DerpsMcSkate/UnburrowTriggerProblem7_zpsclivq5n4.png
I am thinking that maybe the AI is causing the issue.
Did you enable the PC AI? I think you have to do it in Map Properties and maybe a init trigger. I had similar problems. Blizzards guide on the sc2 website has examples. Its linked in the wiki.
the problem is that units that burrow via trigger automatically unburrow themselves immediately after burrowing. I have never understood why, or how to make them stay burrowed
You have the melee AI started, this is what causes them to unburrow. See if campaign AI works betters, alternatively create the burrowed unit the the region and then order them to unburrow making it seem like they were there already. Is zerg entrance the name of a variable or is it the name of a region?
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
burrowed units also unburrow as soon as the game starts
Ok so I changed Zerg control from hostile to computer then I changed the melee AI to campaign AI. Now they stay burrowed but ignore my trigger and only unburrow when I make a disturbance by killing nearby zerg units. I know that they are unborrowing without the region even needing to be entered. Do I have to override something in the AI control? I also know the zerg units are ignoring the trigger because the zerglings don't unburrow at all (which is really strange). Unless I have to make it so that the zerg units can only unborrow if any unit enters the region? That makes me wonder about the behavior settings in the zerg units.
@willuwontu: Go
Zerg entrance is the name of the region.
make sure the controller has burrowed researched (or remove the requirement all together). you cant order a unit do something it is not capable of doing.
@joey101d: Go Sorry for the nooby question but where I do find the requirements? I only saw validators.
typically unburrow is always fine, but sometimes units won't be able to reburrow (same thing for siege tanks). It would be found under the burrow ability in data under requirements.
Are there units placed in the region already that could be causing them to unburrow or maybe Buildings that are not correctly allied or made enemies? Look at a Map from Wol or Hots that have a lot of burrowed units on it. You shouldn't have to go into the data editor for this issue.
Worse comes to worse. Just create burrowed units instantly via triggers. It should work!
@Hockleberry: Go
I just decided to make it easy for myself and create burrowed units via triggers but this doesn't work for the burrowed zergling units which leads me to think there is something wrong with zerglings burrow/unborrow ability or the actual unit Zergling (borrowed). I cannot even create a zergling via triggers then make an action to make it burrow because it doesn't do burrow. It worked fine for the Hydralisk (burrowed) unit.
@DerpsMcSkate: Go
No. That's not it. The "Unburrow" ability doesn't care if there is a "Burrow" ability.
As mentioned previously, if your trigger doesn't even output messages, then that's your problem. And as joey101d mentioned, make sure "Burrow" (and perhaps other requirements) are researched or remove that requirement from the ability.
All right. I checked. Unburrow does not need Burrow to be researched.
I made an example map (attached). Things work like they should.
I bet you unintentionally disabled the trigger (Ctrl+I) or perhaps used the wrong region. Perhaps you had the wrong region selected when you named it, and then that's the one you use in your trigger?
@Kafoso: Go
Thank you for the example map!!! :D It helped me fix the issue with zerglings not unburrowing by giving me an idea. I made one of the zergling have player 1 ownership (mine) and then tested the document. I clicked on it and clicked unburrow then it said that I had to increase my supply limit. So this lead me to think that this is the same problem that the Zerg computer user is facing when the unburrow action is executed. I had noticed that your map didn't have to set player supply limit and that is what got me thinking and set the Zerg computer user supply limit to a high number (125). It works now. I believe this is because the zerg user has a Hive. Now I just have to make it so that they only burrow when the region is entered only and not when a certain range is reached. I blamed auto cast for the unburrow ability. The trigger works just fine. Just have to mess with the automatic unburrow behavior of the zerg units. I think I'll figure something out somehow. Thank you all for your help :) .
@DerpsMcSkate: Go
Aw man, issues like these are so lame and create huge headaches. Why would trading one units supply for another unit with the same amount of supply affect the ability transformation! C'mon David Kim! lol
@MaskedImposter: Go
Exactly! lol. Well said. I didn't understand that at all. This should be much simpler. Maybe the problem is that the features in the editor are too simple hah.
Well I said I would figure something out but I guess I was lying because I can't XD I tried everything I could think of. I think I have to just let the zerg units unburrow on their own terms -_- . This was supposed to be a dangerous region where zerg units unburrow when you are really close or in a certain position so that you could get surrounded. Also supposed to be more like surprise attacks (turning the corner or stepping into an ambush trying to avoid another) but it's not at all if you see every roach and even ultralisk unburrowing before getting close to the area. Can't be too ambitious I guess??