Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How to deselect a unit
How to deselect a unit
Jan 3 2011, 3:26 am
By: iCCup.xboi209  

Jan 3 2011, 3:26 am iCCup.xboi209 Post #1



Hey I'm looking for triggers to deselect a unit. The only way I've been thinking of is through something like night/day triggers. An example is Mars Survive 3 map where if your unit goes in the dark, you can still own it but the game will deselect the unit. :bye1:
It seems that the Mars Survive map is locked and I cannot unlock it with os map =0
So does anyone mind giving me the triggers?



None.

Jan 3 2011, 3:32 am FatalException Post #2



I would assume that this would just be turning off vision with all players and turning it back on. You'll need an editor better than the original StarEdit to do it. I used SCMDraft 2 on SC1, and in there, I think turning on and off vision was under the Run AI Script action.



None.

Jan 3 2011, 3:36 am Kaias Post #3



You can force a deselect by giving their unit(s) to a different player and then give it back. Or you could do the night/day method via the Run AI script action, where you turn off the player's shared vision with themselves with the "Turn OFF shared vision of [player that you want to have lose selection] with current player", making sure that the player who owns the trigger is that same player that you want the deselection to occur for.

Post has been edited 1 time(s), last time on Jan 3 2011, 3:38 am by Kaias. Reason: increased specificity



None.

Jan 3 2011, 3:36 am iCCup.xboi209 Post #4



I am using ScmDraft2(it still says 0.8.0 but it's actually 0.8.1) already but I've been thinking about that trigger but it doesn't make sense to me. btw there's gonna be units from other players in the same area too



None.

Jan 3 2011, 3:37 am iCCup.xboi209 Post #5



Kaias ty for clearing this up, turning off vision for the current player. I don't want to give the unit to a computer because I need the player to create a scarab and the scarab could be loss by giving the reaver to a computer then back



None.

Jan 3 2011, 3:39 am StarBlue Post #6



You could just use a trigger that gives the unit to another player, and quickly give it back to the actual player. Wait do you want to make it immoble, or just deselect it for a moment? woah... you just ninja'd me.



None.

Jan 3 2011, 3:41 am iCCup.xboi209 Post #7



???ninjad you???



None.

Jan 3 2011, 3:42 am Kaias Post #8



I'd also point out that if you don't want a map wide vision loss and only want deselection to occur on (a) specific unit(s), you can turn off the players shared vision with himself and provide vision for him in specific areas using another player to give him vision (turn on shared vision of [that player] with current player) and then move those/that unit(s) into an area of the map that you aren't having that player provide vision for, and then move the unit(s) back to where they were before.

Probably more trouble than you're looking for though.



None.

Jan 3 2011, 3:47 am iCCup.xboi209 Post #9



Kaias im fine with your first post



None.

Jan 3 2011, 4:02 am DavidJCobb Post #10



Holy shit, I thought Kaias left.

@Kaias: Does he have to time the vision loss with respect to vision updates, such that Player gets at least one frame without vision of anything? Or can he simply enable/disable vision at any time, regardless of when vision updates?



None.

Jan 3 2011, 5:30 am Kaias Post #11



Quote from DavidJCobb
Holy shit, I thought Kaias left.

@Kaias: Does he have to time the vision loss with respect to vision updates, such that Player gets at least one frame without vision of anything? Or can he simply enable/disable vision at any time, regardless of when vision updates?
"You can check out any time you'd like but you can never leave"

Time it or disable it for the length of one cycle. I can't remember how long that is off the top of my head.



None.

Jan 3 2011, 6:29 pm rockz Post #12

ᴄʜᴇᴇsᴇ ɪᴛ!

100 frames for vision. 30 frames for cloaked stuff, 1 unit is detected per frame (detection lasts around 40 frames).



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

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: Roy, lil-Inferno