• 0

    posted a message on Newbie Wednesday- Ask Questions!

    @xcorbo: Go

    It sounds like you want to use a Validator. There's a Validator called "Location Compare Cliff Level" that you could probably add to your blink effect so you can only blink if the levels are equal. I'm not sure how you would allow for range in the height difference, though.

    Posted in: General Chat
  • 0

    posted a message on Newbie Wednesday- Ask Questions!

    @Aresake: Go

    Actually I kind of answered my own question. All I have to do is give the stalker multiple weapons in the correct order. When scanning for a target, the unit will scan with the first weapon it has, then the second, and so forth until it finds a target. So if I give the stalker a weapon that cannot target armored, but list it first, then he'll fire only at non-armored units unless there are only armored units around. No behaviors or validators needed!

    Still, it would be be nice to know if there's a more general way to prioritize targets. For instance what if I want the stalker to always acquire the lowest-health target, or something like that?

    Also, could anyone link me to a cogent explanation of backswing, damage point, period, and reload time, particularly where multiple weapons are involved? And maybe what the "linked cooldown" option does as well?

    Posted in: General Chat
  • 0

    posted a message on Newbie Wednesday- Ask Questions!

    Hi, I'm trying to control which type of unit my unit will auto-acquire when it attacks. For example, if a baneling and a roach are both in range of a stalker, I want the stalker to always shoot the baneling by default, even if the roach is closer. I've already tried the following 3 things, and none of them have worked.

    I've tried using the field "Target Sorts" in the "Weapon" data editor. Correct me if I'm wrong but this doesn't seem to do anything whatsoever. I think it might be an editor bug.

    Somebody suggested change the stalker weapon's Effect to a search effect that uses Target Sort+. This at least seems to do something, but I don't want to do it this way because it has three undesirable effects: 1. Even if the user tells the unit to attack a specific unit, the projectile will always launch towards whatever the Search finds instead. 2. It can cause the weapon to fire beyond its normal attack range (if the unit attacks something near the edge of its range, and the Search finds something further than that). 3. The unit's turret may appear to track a different unit than what it's actually firing at.

    As a sort of desperate idea, I thought of doing what the map Desert Storm does: I gave the stalker 2 different weapons which are identical except for one of them only targets Armored units (like the roach) and the other one cannot target Armored units. Then I gave the stalker a behavior which disables its weapon that fires at Armored, provided there are Non-Armored units in range. (I accomplished this with the the Weapons Disabled field, and a Validator). I still don't like this though, because if the user actually tells the stalker to fire at the roach, he'll get an error message and won't be able to. That's not what I want, I only want the stalker to prefer to fire at the baneling, by default.

    Last but not least, I don't want to tinker with the roach or baneling's Attack Priority. I only want to change the priority for this one unit type (stalker), not for all units in the game.

    So I'm out of ideas at this point. Can anybody help me?

    Posted in: General Chat
  • To post a comment, please or register a new account.