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

[Trigger] Big Problem

Status
Not open for further replies.
Level 7
Joined
Jun 20, 2007
Messages
255
I want player red to be able to like -spawn (unitname) and then on any location ( doesnt matter ) that unit he mentioned is spawned.

But i cant do this how do i?
 
Level 12
Joined
Jun 28, 2008
Messages
688
Just for a little clarification,

  • Spawn
    • Events
      • Player - Player 1 (Red) types a chat message containing Empty String as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 (Unit-type((Entered chat string))) for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
So if a player types "dog" a dog will be created at the specified point.

But if someone types "flying machine", nothing will happen because you can't include spaces in this crappy trigger I made. You would have to just type "flyingmachine".

I'm sure you can adapt the basis of this trigger to your needs based on strings and substrings and so on. Just play around with it a bit.
 
Status
Not open for further replies.
Top