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