• 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.

Detect when a certain keyboard key is pressed?

Status
Not open for further replies.
Level 19
Joined
Jun 16, 2007
Messages
1,574
Hello, just wondering if this is possible without doing vjass?

To design a trigger which detects if a keyboard button is pressed for e.g. "Z".

Then it will run an action which will create an item on the unit owned by triggering player.

If this is possible only in vjass mind someone doing this for me n posting the script here?


Actions are:
- Detects which item is carried hero in slot 1 then replaces it with a specific item.
 
Level 19
Joined
Jun 16, 2007
Messages
1,574
I know theres ways to do it in vjass, since i've seen alot of systems using this in maps. If i had any spell room left i would. but i want it to be hidden and don't wish to use esc.

I could always do F2 by making another hero called activate/deactivate and unselect the hero. and then process the actions. Just wanted to use a simply "Z" key.
 
Level 3
Joined
Oct 28, 2011
Messages
23
Without vJass, i think you can change the hold position hotkey to "z" using customkeys,

...a not-so-good-but-can-be-helpful idea =D
 
Status
Not open for further replies.
Top