So my situation is that I have a transport unit on a map with 2 cliff levels. The bottom level is water, and the top is ground. My amphibious transport is a ground unit with the colossus cliff walk ability.I want to make it so that my transport cannot unload on the water level. I currently have a okay solution where I disable the unload ability when my transport is on the lower level, but this creates 2 problems.
1. If the transport picks up on one island, then goes to drop on another island, as soon as it enters the water it stops moving. It can no longer complete the command so it just stops. The result is that I have to order it to move to the other island first, then I can drop.
2. When I select the unload ability, the cursor normally turns into a red X when you hover over non-pathable areas. When I hover over water however, it does not make the X, and it allows me to click there. The result is that it again starts moving towards that location but stops as soon as it enters the water.
I feel like the solution is to use validators, but I'm not exactly sure where to plug it in to my ability. The unload ability has a field called Unload Validator, but I get the feeling it is not used to validate the target location, but rather it is for validating which unit's can be dropped.
Does anyone have any ideas how I can fix this? Thanks!
I think that validator slot can be used exactly for what you're trying to do. Just place a validator checking if "greater than [Your water height]" at "target location" (it should be unit compare height validator type).
Hmmm I can't find a validator type called Unit Compare Height. I did find one called Unit Compare Field, and I tried using that with the field set to Height, but it did not work. That doesnt really make sense to me either because the ability targets a location, not a unit.
Yes there are many. I have tried using the Location Compare Cliff Level validator originally, but I must not be doing it right. First I used the preset one called Cliff Levels Equal, expecting that this would only allow me to cast Unload All on areas of the same level, but it seemed to have no impact. Then I created my own which I called Is On Ground. I made it compare the target location to an absolute value (in my case 2) but again it had no effect. The reason I'm not sure that my validator belongs in the field Unload Validator is because the tooltip for that field says: Validator for Units to Be Unloaded. To me this seems to indicate that the validator is being used on the units themselves rather than on the target location.
Sorry to keep bringing this up, but I've been stuck on this for a while now. I'm getting weird behavior when I do what people suggested. I made a "Location Compare Cliff Level" validator, set the target location to "Target Point", set the compare function to "Greater than or equal to" and set the compare value to "2".
When I use the transport though, it lets me target anywhere for the unload if the transport is on ground, and it doesnt let me target anything if my transport is on water. If I tell the transport to unload on water, when the transport itself is on ground, it will move to the location on the water, then do nothing when it gets there (no error message, it just does nothing).
So It seems like it is comparing the cliff level of the transport itself rather than the target point when I'm targeting... I'm so confused, any help?
For anyone wondering, I got my original idea for the transport from here, but it seems they never figured this out either.
create an dummy target ability. set it up correctly (range, etc). first effect is an issue order effect which orders the caster to unload at the targetpoint. use the validator on that effect. replace the unload button on cmd card with your dummy ability.
Hey guys I made a target dummy but I can't increase its range so that if it's near the cliff level for it to drop it when near the cliff level. what would make it so the drop zone range is increased.
So my situation is that I have a transport unit on a map with 2 cliff levels. The bottom level is water, and the top is ground. My amphibious transport is a ground unit with the colossus cliff walk ability.I want to make it so that my transport cannot unload on the water level. I currently have a okay solution where I disable the unload ability when my transport is on the lower level, but this creates 2 problems.
1. If the transport picks up on one island, then goes to drop on another island, as soon as it enters the water it stops moving. It can no longer complete the command so it just stops. The result is that I have to order it to move to the other island first, then I can drop.
2. When I select the unload ability, the cursor normally turns into a red X when you hover over non-pathable areas. When I hover over water however, it does not make the X, and it allows me to click there. The result is that it again starts moving towards that location but stops as soon as it enters the water.
I feel like the solution is to use validators, but I'm not exactly sure where to plug it in to my ability. The unload ability has a field called Unload Validator, but I get the feeling it is not used to validate the target location, but rather it is for validating which unit's can be dropped.
Does anyone have any ideas how I can fix this? Thanks!
I think that validator slot can be used exactly for what you're trying to do. Just place a validator checking if "greater than [Your water height]" at "target location" (it should be unit compare height validator type).
Hmmm I can't find a validator type called Unit Compare Height. I did find one called Unit Compare Field, and I tried using that with the field set to Height, but it did not work. That doesnt really make sense to me either because the ability targets a location, not a unit.
there is a cliff validator, i am 100% sure
Yes there are many. I have tried using the Location Compare Cliff Level validator originally, but I must not be doing it right. First I used the preset one called Cliff Levels Equal, expecting that this would only allow me to cast Unload All on areas of the same level, but it seemed to have no impact. Then I created my own which I called Is On Ground. I made it compare the target location to an absolute value (in my case 2) but again it had no effect. The reason I'm not sure that my validator belongs in the field Unload Validator is because the tooltip for that field says: Validator for Units to Be Unloaded. To me this seems to indicate that the validator is being used on the units themselves rather than on the target location.
Sorry to keep bringing this up, but I've been stuck on this for a while now. I'm getting weird behavior when I do what people suggested. I made a "Location Compare Cliff Level" validator, set the target location to "Target Point", set the compare function to "Greater than or equal to" and set the compare value to "2". When I use the transport though, it lets me target anywhere for the unload if the transport is on ground, and it doesnt let me target anything if my transport is on water. If I tell the transport to unload on water, when the transport itself is on ground, it will move to the location on the water, then do nothing when it gets there (no error message, it just does nothing).
So It seems like it is comparing the cliff level of the transport itself rather than the target point when I'm targeting... I'm so confused, any help?
For anyone wondering, I got my original idea for the transport from here, but it seems they never figured this out either.
create an dummy target ability. set it up correctly (range, etc). first effect is an issue order effect which orders the caster to unload at the targetpoint. use the validator on that effect. replace the unload button on cmd card with your dummy ability.
Ok I like the sounds of this. Ill try it out, Thank!
Else just put the validator in the Ability: Unload Validators field. Also it is the Location Compare Cliff Level validator you want.
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
Hey guys I made a target dummy but I can't increase its range so that if it's near the cliff level for it to drop it when near the cliff level. what would make it so the drop zone range is increased.
Well masters dead...