Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How can I make a unit not clickable?
How can I make a unit not clickable?
Nov 9 2013, 6:05 am
By: Externalist  

Nov 9 2013, 6:05 am Externalist Post #1



I'm trying to create a new observer evading map similar to Observer Lovely Space.
The thing that annoyed me, and other players most was accidently clicking observers while progressing.
As some of you know, Observer lovely space needs extremely fine grained control, and clicking on an observer instead of the terrain will mess up your movement badly.
Hence, observers that are not clickable would be a great enhancement for the overall gameplay, which inspired me to create a new map.

Does anyone know how to make units non clickable? (To be more exact, non clickable when you right click them)
I have seen maps in the past where you can't drag or right click on your opponents unit but you can see them, which means it is possible, but I do not know how.

Any advice? :)



None.

Nov 9 2013, 7:37 am O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

It won't work on observers specifically, but if you cloak a unit by disabling and re-enabling it, and the player controls no detectors, then the unit will appear uncloaked but the game will consider it cloaked. You will not be able to select it or target it.

I can't seem to find the wiki article on this particular method of cloaking, and I don't recall the units that don't crash when performing it ...

EDIT2:
But fortunately I keep these lists around! All heroes omitted. They work the same as their normal counterparts. It appears that some unique heroes are missing (such as Infested Kerrigan), but this list is old so I wouldn't rely too heavily on it.
Code
Doesn't crash (ever)
Marine

Doesn't crash if given an order before viewing:
Ghost
SCV
Firebat
Battlecruiser
Zergling
Hydralisk
Drone
Defiler
Broodling (Can't walk)
Infested Terran
Lurker
Mutalisk
Guardian
Queen
Scourge
Devourer
Dark Templar
Dark Archon
Dragoon
High Templar
Archon
Ursadon

Crashes when viewed:
Vulture
Wraith
Science Vessel
Dropship
Carrier
Zealot
Kakaru

Crashed ordered or not, viewed or not:
Goliath
Tank
Civilian
Medic
Valkyrie
Ultralisk
Overlord
Corsair
Shuttle
Scout
Arbiter
Observer
Probe
Reaver
Rhynadon
Bengalaas
Scantid
Ragnasaur

There seems to be a lot of variables, like direction the unit is facing (I think this applies to Battlecruisers), perhaps tileset, and even more that I don't know about. So I'd say try ones that it says crash if necessary. You may be lucky.

If you need an overview of the method I'm suggesting, the trigger is like this:
Trigger
Players
None specified.
Conditions
None specified.
Actions
  • Create a unit in a remote, unviewable area
  • Disable doodad state (can only disable or enable one at a time ...)
  • Wait (any amount of time will do, as long as it is at least one trigger cycle. DCs work as well.)
  • Enable doodad state
  • Wait (again, at least one trigger cycle)
  • Order unit (to clear any invalid orders or invalid unit frames)
  • Wait
  • Move unit to desired location


  • Post has been edited 5 time(s), last time on Nov 9 2013, 8:05 am by FaRTy1billion.



    TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
    EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
    EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
    MapSketch - New image->map generator!
    EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
    SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
    \:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

    Nov 9 2013, 4:36 pm Externalist Post #3



    I have found a map that uses the technique.
    Does it match the one that you just described?
    I'm trying to study the triggers on the map, but am having a hard time since I can only open this map with StarForge, and the locations are all messed up which makes it hard to make out what the triggers mean.

    Attachments:
    Dash_X.scx
    Hits: 1 Size: 218.88kb

    Post has been edited 1 time(s), last time on Nov 9 2013, 4:48 pm by Externalist.



    None.

    Nov 9 2013, 5:19 pm Roy Post #4

    An artist's depiction of an Extended Unit Death

    Hey, I made that map.

    It's exactly as Farty says: this trick only works with a limited set of units, and I don't believe Observers are among the ones that work. You can try the trigger provided above with an Observer, but chances are it will crash your game immediately.

    It's also worth mentioning that some units that work on Windows XP (like the Hydralisk) do not work on Windows 7 (maybe it's an x86 vs x64 issue, though, now that I think of it), so getting a definitive list is not an easy task to do.

    Post has been edited 1 time(s), last time on Nov 9 2013, 5:26 pm by Roy.




    Nov 10 2013, 2:00 am Externalist Post #5



    I guess then the most ideal way is to create a custom dll that ignores all the right clicks targeted to units.
    That seems to be the best solution in the current situation.
    Anyways, Thanks! :)



    None.

    Nov 10 2013, 2:21 am NudeRaider Post #6

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Maybe sprites are an option? Of course you can't move those.




    Nov 10 2013, 4:46 pm rockz Post #7

    ᴄʜᴇᴇsᴇ ɪᴛ!

    http://www.staredit.net/starcraft/Set_Doodad_State#Non-crashing_units
    I believe this is the wiki page



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Nov 11 2013, 4:13 am O)FaRTy1billion[MM] Post #8

    👻 👾 👽 💪

    That's for disable only, which renders the unit useless without re-enabling. Also comparing the lists, there seems to be little correlation with which units crash and don't crash between either method.



    TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
    EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
    EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
    MapSketch - New image->map generator!
    EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
    SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
    \:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

    Nov 13 2013, 6:40 am rockz Post #9

    ᴄʜᴇᴇsᴇ ɪᴛ!

    hydralisks crash frequently I know. I think you have to order them to move, wait for them to get to the location, disable them, enable 2x and then order to move again. there's a certain idle or moving frame which crashes.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Nov 13 2013, 2:40 pm NudeRaider Post #10

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Quote from rockz
    there's a certain idle or moving frame which crashes.
    Afaik when the hydra looks down




    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [04:15 am]
    DarkenedFantasies -- you eat lots of beans
    [03:46 am]
    IskatuMesk -- how do i get gas
    [11:43 pm]
    Moose -- you don't
    [10:06 pm]
    Zoan -- how do i get minerals
    [2026-4-14. : 11:45 pm]
    ClansAreForGays -- Anyone wanna played Skewed StarCraft?
    [2026-4-14. : 12:07 am]
    Vrael -- NudeRaider
    NudeRaider shouted: Vrael ranting still is though
    you're a gentleman and a scholar, thank you
    [2026-4-13. : 10:07 pm]
    NudeRaider -- ya why phone people when you can just write letters
    [2026-4-13. : 9:37 pm]
    IskatuMesk -- I have never and will never own a phone
    [2026-4-13. : 9:15 pm]
    NudeRaider -- Vrael ranting still is though
    [2026-4-13. : 9:14 pm]
    ClansAreForGays -- anticapitalism isnt edgy anymore
    Please log in to shout.


    Members Online: Excalibur