• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Hotkey a unit?

Status
Not open for further replies.
uhh...backspace works with town halls...the bottom left corner works with workers, and f1-f4 works with heroes. you can modify units to work as those things even if they aren't fully those things. but if you're trying to hotkey units to a control group i don't think such a thing is possible in the editor...afaik. but there are ai commands which you might need which could acheive a similiar effect if this is to be done for the sake of computer players. those ai commands i think are located in common.ai and are enigmatic. i wonder if they work for players that aren't computer players...hmm.
 
You are questioning what is the function of.. Hotkeys ???
I'm sure by now, you knew WHAT is the function of it, don't you ?
It is to bind our key on the keyboard to the unit/unit group in the game
Basically, you can have more control access towards your unit, in other words, it's easier to manage your unit
It is essentially useful, even for other game, Real-time Strategy uses Hotkey, like Red Alert and such
 
uhh...backspace works with town halls...the bottom left corner works with workers, and f1-f4 works with heroes. you can modify units to work as those things even if they aren't fully those things. but if you're trying to hotkey units to a control group i don't think such a thing is possible in the editor...afaik. but there are ai commands which you might need which could acheive a similiar effect if this is to be done for the sake of computer players. those ai commands i think are located in common.ai and are enigmatic. i wonder if they work for players that aren't computer players...hmm.

Insightful, but no looking for somthing to be hotkeyed from a trigger so that a player can tap 1 or 2 to select a control group.

NO, but you can use ALT+1-0 to make unit groups, that way you can assign for example a footman to #1 or #2 and so on

now way of triggers, darn >_<.

You are questioning what is the function of.. Hotkeys ???
I'm sure by now, you knew WHAT is the function of it, don't you ?
It is to bind our key on the keyboard to the unit/unit group in the game
Basically, you can have more control access towards your unit, in other words, it's easier to manage your unit
It is essentially useful, even for other game, Real-time Strategy uses Hotkey, like Red Alert and such

Your information was useless please read the full question before posting. . . the question was how to hotkey something by using triggers.
 
Hotkey a unit using trigger ?
You need to base it off of an ability, instant-ability such as Roar
You must have a "base unit" that will perform the ability and your respective unit (same unit-type example: Footman will be the same group with Footman / etc etc)
I'll create a trigger for you, just an hour =D
P/S: Don't just say other people's post "useless", I tried to help you, please, appreciate it.

EDIT:
Test map attached
Selection is based on unit-type, I'm sure you can modify my trigger to your needs
 

Attachments

Last edited:
Hotkey a unit using trigger ?
You need to base it off of an ability, instant-ability such as Roar
You must have a "base unit" that will perform the ability and your respective unit (same unit-type example: Footman will be the same group with Footman / etc etc)
I'll create a trigger for you, just an hour =D
P/S: Don't just say other people's post "useless", I tried to help you, please, appreciate it.

EDIT:
Test map attached
Selection is based on unit-type, I'm sure you can modify my trigger to your needs

that was interesting but completely unimpressive.
 
the map sample created a hotkey for 'unit groups' (all type of unit), not for ONE unit, the description says "hotkey a unit", thus pressing CTRL + (1-0) can do 'unit groups' AND 'one unit' and no need for triggers for this method...not to mention its the EASIEST WAY to do it...

but what he wants is HOW TO DO IT USING TRIGGERS... I was also thinking about this a while ago because of a very good spell hotkey system that neku99 suggested but sadly the only way to force this is through spells or items etc (coz you need an event, since there is no event for a player pressing any button [the only ones existing are for the arrow keys and the ESC button])...

meaning the idea of forcing a hotkey to a unit using triggers is possible but highly impractical... and I think that what we are trying to do is the same (force a hotkey unto a unit to be able to customize the hotkey of something else like a spell), which is impossible right now...
 
Maybe you can use the 'Arrow Key System' basics to do it, because if you press an arrow key a unit moves a direction, right? So if you press a key, you can set it to selecting a unit.
 
No, the only events are the arrow key and Escape key events. Maybe we could create one for the spacebar too (by using a periodic loop which checks the players' camera and by setting the spacebar camera point to something), but there's no event for any other keys.

We can force keys using JASS, but we can't force keys like escape, ctrl, alt, alt gr. Would be nice if we could do so (cuz my project requires a key binding from 0-9, but it isn't possible with triggers....), but we can't.
 
Status
Not open for further replies.
Back
Top