[Trigger] Force UI Key

Status
Not open for further replies.
Level 12
Joined
Jun 1, 2009
Messages
576
Hi guys i have one more problem, i want to make that i can use item in first invertory slot by clicking some button on keyboard..... I tried by making it like this

Event: Player - Keyboard Event (Player 1 presses the up arrow key)

Action: Game - Force UI Key (Force Player 1 to press the key NumPad 7)

NumPad 7 is hotkey for first invertory slot.

But this trigger didnt work
 
Hi guys i have one more problem, i want to make that i can use item in first invertory slot by clicking some button on keyboard..... I tried by making it like this

Event: Player - Keyboard Event (Player 1 presses the up arrow key)

Action: Game - Force UI Key (Force Player 1 to press the key NumPad 7)

NumPad 7 is hotkey for first invertory slot.

But this trigger didnt work

Numpad is not really a key. Change it to 7. Lets see if it will work.

I know there is a key for NumPad 7 but I think Warcraft just doesnt accept this.
 
  • Item
  • Events
    • Player- YourEvent Here
  • Conditions
  • Actions
    • For each Integer A from 1 to 6, do actions:
      • loop actions:
      • Set int = random number from 1 to Integer A
        • If - int == 1 then
          • Hero - Order Hero to use Item on unit/point/
        • else

If i am not wrong this trigger will force me to use item in my invertory on specific unit or point......and that is not what i wanted.......Becouse i need to CHOSE my target INSIDE the game if you understand me....

I just need that when i click on some key game select item in my invertory slot and then i can DECIDE on which unit or point will i use it......

Whay i wanted to do this when i just can use direcly key on my keyboard........becouse i want to change hotkey it is to far, it need to be close to hotkeys of some spells...
 
If i am not wrong this trigger will force me to use item in my invertory on specific unit or point......and that is not what i wanted.......Becouse i need to CHOSE my target INSIDE the game if you understand me....

I just need that when i click on some key game select item in my invertory slot and then i can DECIDE on which unit or point will i use it......

Whay i wanted to do this when i just can use direcly key on my keyboard........becouse i want to change hotkey it is to far, it need to be close to hotkeys of some spells...

If you want to target a different units, well, depending on the spell you're using just store that into a variable.
 
Status
Not open for further replies.
Back
Top