• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Big Problem

Status
Not open for further replies.
Level 7
Joined
Jun 20, 2007
Messages
250
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?
 
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.
Back
Top