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

[General] Trigger for text as exact match

Status
Not open for further replies.
Level 4
Joined
Dec 16, 2013
Messages
84
sorry for my english

it's kinda confusing, here my problem

Event - Player 1-10 type -ason as exact match
condition - typed player has Hydra (example hero)
Action - turn on "Auto selection on" (trigger)
Else - do nothing

so if the players dont have hydra, the "auto selection on" trigger will stay off

how to make trigger like that?
thanks
 
Where exactly lies the problem? In making correct condition?

Or you assigned a variable with it, then you can check if it exists.
Of if you really want purely check if a unit type exists for a player then I would move to actions,
and create there an If/Then/Else for new condition.
You pick all units by triggering player and check for unit type of picked unit.
 
Level 4
Joined
Dec 16, 2013
Messages
84
Where exactly lies the problem? In making correct condition?

Or you assigned a variable with it, then you can check if it exists.
Of if you really want purely check if a unit type exists for a player then I would move to actions,
and create there an If/Then/Else for new condition.
You pick all units by triggering player and check for unit type of picked unit.

omg after i read your reply, i can probably figure it out?
what do you think bro icemanbo?

  • Command on
    • Events
      • Player - Player 1 (Red) types a chat message containing -ason as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ason as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ason as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ason as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ason as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ason as An exact match
      • Player - Player 7 (Green) types a chat message containing -ason as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ason as An exact match
      • Player - Player 9 (Gray) types a chat message containing -ason as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -ason as An exact match
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Hydra Hatchling Equal to (Unit-type of (Picked unit))
                • Then - Actions
                  • Trigger - Turn on as <gen>
                • Else - Actions
---edit---
it doesn't work, why?
can you spot the problem?
---edit---
lol it does work

Thank you
 
Okay, cool if you could figure it out. :)
You even can shrink the operations down.

You don't really want pick all players existing.
So only do "Pick every unit in (Units owned by (TriggeringPlayer))"

Once the condtion is true/ so you turn on the trigger, you may use the action "skip remaining actions",
as you don't want/need further checks and operations.

Also as note, you have a group leak at the moment.
In case you want to inform yourself about leaks read the tutorial linked in my signature.
 
Status
Not open for further replies.
Top