• 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] Trigger Buffs/Effects

Status
Not open for further replies.
Level 2
Joined
May 24, 2008
Messages
24
Well, hello guys. I tried to do it by myself, but, I find it a little difficult to trigger it.

When some research is finished or, every () minutes of the game to create a buff in all units of a player.

The problem is not the player, or all units, the problem is that, if I, for example, want a Bloodlust in all units, I cannot trigger normally. Neither by a dummy, as I tried.

Can anyone help me?

Thanks, in advance {:
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
What do you mean you can't trigger Bloodlust on all units? You just create a dummy unit for each unit and order it to cast Bloodlust on it (of course the dummy unit has to have that ability).

I suppose you did something wrong with making the dummy unit? Give more details, please.
 
Level 2
Joined
May 24, 2008
Messages
24
Well, for example, I created the dummy and give him the Bloodlust ability. A custom one. Then, I made him cast bloodlust on all units of () player. But, it doesn't worked.

The target is units, in the case.

EDIT

And, my bloodlust is a custom one. Does Orc Shaman - Bloodlust (Picked Unit) works as well, since the Order String is the same?
 
Level 2
Joined
May 24, 2008
Messages
24
Couldn't it be one dummy for each Unit Owned By Player ()?

I did this, but, it doesn't worked.
And, well, if I do the Units on Playable Map Area, I may put a Condition, right?
And how will I make sure that it doesn't leak?
 
Level 2
Joined
May 24, 2008
Messages
24
  • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Picked unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Set TempPoint = (Position of (Picked unit))
          • Unit - Create 1 Dummy for Neutral Extra at TempPoint facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_TempPoint)
          • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
        • Else - Actions
It is not working so far.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
What do you mean you can't trigger Bloodlust on all units? You just create a dummy unit for each unit and order it to cast Bloodlust on it (of course the dummy unit has to have that ability).

Yea and go and make a coffe until the game creates all those units and casts the spell :S
You could just make a dummy unit or two with a 999999 casting rage bloodlust on autocast and let them do the dirty work. They won't cast it in an instant but way much better than wait for 9999 seconds lag. :p
 
Level 2
Joined
May 24, 2008
Messages
24
Ok guys, both of them doesn't worked. I have already tried. Dunno what else >D

Well, answering your questions: It is ALL units of one player, it could be 1 or more than 50.
Any guesses?
 
Level 2
Joined
May 24, 2008
Messages
24
Well, I tried to put the cast range to maximum and autocast, tried to create one unit for each unit, but, it doesn't worked for both. And, it does create the dummy, but it does not cast the ability, although it have the same String.
 
Level 2
Joined
May 24, 2008
Messages
24
Well, ok anyway. I tried in both ways, and neither of them worked.
With or without autocast, 999999 range, one dummy for each unit, well, I don't know {:

If anyone get's a idea, just say.
 
Level 5
Joined
Jan 15, 2007
Messages
199
Lol, just thought of something that I forget sometimes.

Does your dummy have no mana but the ability needs mana??

Heh, and did you remember to add your bludlust to the dummy?
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
Are you sure dummy units have that ability? Did you make sure that the mana cost is equal to 0?

Btw, instead of that condition, you can just put this:

  • Unit Group - Pick every unit in (Units owned by Player 6 (Orange)) and do (Actions)
 
Level 2
Joined
May 24, 2008
Messages
24
Well, the mana was set to 0, the dummy had the ability, the cast range was maximum etcera.

It still doesn't work.
  • Unit Group - Pick every unit in (Units owned by Player 6 (Orange)) and do (Actions)
    • Loop - Actions
      • Unit - Create 1 Dummy for Neutral Passive at (Center of (Playable map area)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
Don't know what's happening.
 
Level 2
Joined
May 24, 2008
Messages
24
Well, worked. It was probably because the ability was under Default Active Abilities.

And, the mana. And, some bloodlust requirements, gosh.
Thanks all.
 
Level 5
Joined
Jan 15, 2007
Messages
199
In the future, f it doesn't work, and the trigger is fine, try removing locust and giving the unit a model for a test to see what is wrong with the abil
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
What's the mana capacity on your dummy and how much mana does it cost to Bloodlust?

FFS dummy casters should have no mana(not necessarily) and the abilities they have should require no mana neither.

P.s. Just go with an aura.
 
Status
Not open for further replies.
Top