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

Chat command that creates any unit

Status
Not open for further replies.
Level 5
Joined
Oct 7, 2005
Messages
102
Can anyone here think of a single trigger that will let a player create any unit they want as long as they give the correct name of the unit in a chat message?
 
Level 5
Joined
Oct 7, 2005
Messages
102
Okay, thanks for your help. But I still don't understand how I do that. Do I paste what you said before in the custom script value or do I create some kind of variable?
 
Level 5
Joined
Oct 7, 2005
Messages
102
Okay, I pasted what you said into the "Value" box. But when I tried to save the map, an error popped up saying "Line 490: Expected a code statment". :S
 
Level 5
Joined
Oct 7, 2005
Messages
102
But something else I need while your here, can you change it so it creates the unit at a unit variable? Or even better at where the players mouse cursor is?
 
Level 11
Joined
Sep 30, 2009
Messages
698
@ ripper24 please no double or triple posts :( read the rules

@ specanator that would not go because it is not really possible to get the cursor position in wc3

The only thing you could do would use a dummy ability but that would require much more skill in triggering as you have and i will not do all your work :p
 
Level 5
Joined
Oct 7, 2005
Messages
102
Thanks, can you also change that script so that you can create any number of units.

So say a player said "sheep 3" it created 3 sheep.

And spenc, what you said didn't work with the unit's position :/ Can you give it in an example trigger please?
 
Status
Not open for further replies.
Top