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.
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
Please log in to shout.


Members Online: Oh_Man