Add ability to all units under said conditions

Ninva

Анна Ахматова
Reaction score
377
Weather Copy
Events
Player - Player 1 (Red) types a chat message containing test as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Race of (Picked unit)) Equal to Human)) and do (Actions)
Loop - Actions
Environment - Create at (Entire map) the weather effect Ashenvale Rain (Heavy)
Unit - Add Brilliance Aura to (Picked unit)
---
When I type "test," there is no weather effect or ability added. Why?
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
use [wc3.] and [/wc3.] (with the "."s)

On subject: You should define in the conditions what race player 1 is.
Just do this:
Trigger:
  • Events
    • Player 1 (Red) types a chat message containing test as An exact match (NOTE: YOU HAVE TO WRITE "test")
    • Conditions
      • Or - Any (Conditions) are true
        • (Race of Player 1 (Red) Equal to (Human)
        • (Race of Player 1 (Red) Equal to (Orc)
        • (Race of Player 1 (Red) Equal to (Undead)
        • (Race of Player 1 (Red) Equal to (Night Elf)
    • Actions
    • Environment - Create at (Entire map) the weather effect Ashenvale Rain (Heavy)
    • Unit Group - Pick every unit in (Units owned by (Player 1 (Red)) and do (Actions)
      • Loop - Actions
        • Unit - Add Brilliance Aura to (Picked unit)

That should work, I'm NOT testing it.
also note:
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Race of (Picked unit)) Equal to Human)) and do (Actions)

it picks every unit in playable map area, if they are Human, and only Human.[/wc3]
 

Ninva

Анна Ахматова
Reaction score
377
That's a lot of sass for misunderstanding my question. :/

Instead of adding Brilliance Aura to just units owned by player 1, could you show me how to affect all the players? That was what I was trying to do, and I asked "why" rather than, "please do this for me."

Thanks for your time.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Oh, I couldn't explain it... sorry. As for it affecting all the players, you could do
Trigger:
  • Unit group - Pick every unit in (Playable map area) and do (Actions)
 

vypur85

Hibernate
Reaction score
803
Code:
(Race of (Picked unit))
Change the Picked unit to Matching unit.

After you created the weather effect, you'd need to turn them on.
Code:
Environment - Turn (Last created weather effect) On

Sudden interest on editor again I see. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top