• 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] Move Unit Instantly based on selection and text typed, help.

Status
Not open for further replies.
Level 2
Joined
Jul 2, 2007
Messages
6
so this trigger im trying to make is really agravating me and wondering if its outa WE gui limits. Basically this is what i want. I want to select a unit, and then depending on what i type after i selected it move the selected unit instantly to a location.

ANy ideas would be nice. Thanks.
 
Level 27
Joined
May 30, 2007
Messages
2,872
  • Move Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing "" as A substring
      • Player - Player 2 (Blue) types a chat message containing "" as A substring
      • Player - Player 3 (Teal) types a chat message containing "" as A substring
      • Player - Player 4 (Purple) types a chat message containing "" as A substring
      • ...
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • String Comparing...
        • Then - Actions
          • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to Somewhere
        • Else - Actions
          • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to Somewhere Else
 
Level 2
Joined
Jul 2, 2007
Messages
6
Thank you very much Hakeem, i wasnt sure if i could put multiple events in a trigger. Anywho you will be credited for trigger help =D.
 
Level 2
Joined
Jul 2, 2007
Messages
6
one thing does it have to be a substring if for example everyone types -1 but based on waht player it is moves to that designated locations.

Think of LTW where every player has an identical space. Well if red types -1 move the selected unit to his base, if blue types it then move it to blues base.

What im stuck on is it possible for there to be a condition where if player 1 types string as exact match

then move unit to location, therefore i only need 1 trigger and not one for each player.
 
Status
Not open for further replies.
Top