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.
[2020-10-19. : 7:29 am]
C(a)HeK -- sraw531
sraw531 shouted: GGmano just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
here it is - http://www.staredit.net/topic/18132/unread/#special
[2020-10-19. : 7:19 am]
sraw531 -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
[2020-10-19. : 4:46 am]
C(a)HeK -- SiberianTiger
SiberianTiger shouted: C(a)HeK yes correct it is a multiplayer map
Unfortunately, I don't have free time for multiplayer
[2020-10-18. : 10:06 pm]
SiberianTiger -- C(a)HeK
C(a)HeK shouted: GGmano I answered you as best I could
yes correct it is a multiplayer map
[2020-10-18. : 9:12 pm]
GGmano -- thanks c(a)hek
[2020-10-18. : 9:05 pm]
lil-Inferno -- mad AF
[2020-10-18. : 8:57 pm]
*KrayZee angrily uses a pen and fills in the circle for Joe Biden*
[2020-10-18. : 4:59 pm]
C(a)HeK -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
I answered you as best I could
[2020-10-18. : 2:01 pm]
GGmano -- i made a topic about it if anyone knows something about this please check the topic
[2020-10-18. : 2:00 pm]
GGmano -- hi all does anyone knows what difference save files does??
Please log in to shout.


Members Online: Roy, fford, GGmano, jun3hong