• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Make a hero learn a skill by a text command.

Status
Not open for further replies.
Level 6
Joined
Sep 15, 2006
Messages
136
Hi, I'm trying to make a trigger that makes a hero learn a skill by typing a text command.

I was trying to do something like this:

Events:
Player 1 Red types (-text)
Conditions:
No
Actions:
Pick every unit in (playable map area) and do ((if owner of picked units equal to player 1 red) then do (learn skill to (matching unit): (skill)) else do (turn off (this trigger))

But the problem is that I can't select owner of picked units...

Can you tell anyway to do this, please.
 
Status
Not open for further replies.
Top