Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED Keeping a hotkey
[SOLVED Keeping a hotkey
This topic is locked. You can no longer write replies here.
Aug 14 2012, 5:10 am
By: Leeroy_Jenkins  

Aug 14 2012, 5:10 am Leeroy_Jenkins Post #1



Okay so, I have a map where there is a scourge, and it is given to multiple players throughout the game. I want players to be able to hotkey the scourge. For a while this works, when the scourge is given to player 2 and given back to player 1 for example, player 1 still has his hotkey. The scourge is shared by all players of the map. For whatever reason, at some point in the game the hotkeys are no longer there. The scourge is the same scourge throught the game. It is given to all players at different points, it is moved by locations at certain points, that's about it. I just don't understand at what point it is losing its hotkey. Any help greatly appreciated!



None.

Aug 14 2012, 5:13 am Lanthanide Post #2



Starcraft engine limitation, unsolvable sorry.

Also I presume you mean unit group binding, eg ctrl-1 etc.



None.

Aug 14 2012, 5:23 am Leeroy_Jenkins Post #3



Damn :(



None.

Aug 14 2012, 5:23 am Azrael Post #4



Not sure if this will work in your map specifically, but it could be possible to fake it being the same unit.

For instance, you could give each person their own scourge, and allow them to hotkey it. Then when you want to give the scourge to someone else, you move the current person's scourge to the edge of the map, and move the new person's scourge to where the other person's scourge was.

For additional realness, you could use map revealers owned by a computer player to reveal the playing area to the players with shared vision, and force the players to turn off shared vision to themselves, so they can't see their scourge when it's been moved to the edge of the map.

Additionally, you could use EUD selection detection to tell when a player selects his scourge while it's at the edge of the map (which he'd do by hitting his hotkey), and immediately give the scourge to the computer and then back to the player in the same trigger (which I believe will retain the hotkey for the unit). Alternatively, you could just keep giving the scourges to the computer and back to the player, regardless of if they are being selected, just to make them deselect it that much faster.

Not sure if any of that is actually useful for what you're attempting to accomplish, though.




Aug 14 2012, 6:00 am Leeroy_Jenkins Post #5



No that wouldn't work at all for what is going on, good ideas though, thanks.



None.

Aug 19 2012, 5:16 am staxx Post #6



The way this works is to hot key the unit you want, and ONLY press that hot key when you have ownership of that unit. If you try and use the hotkey while someone else owns the unit, then your hotkey will be lost.

Hope that helps.



None.

Aug 19 2012, 5:44 am Wormer Post #7



Quote from staxx
The way this works is to hot key the unit you want, and ONLY press that hot key when you have ownership of that unit. If you try and use the hotkey while someone else owns the unit, then your hotkey will be lost.

Hope that helps.
Exactly this.



Some.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Ultraviolet