Order unit to...

SpyDaniel

New Member
Reaction score
0
I have this trigger setup, but the unit which is attacked will not cast the ability on itself. The ability is a copy which requires no mana or tech requirements.

Code:
Rabies Dog effect
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Rabies Dog
    Actions
        Unit - Add Bloodlust  to (Attacked unit)
        Wait 1.00 seconds
        Unit - Order (Attacked unit) to Orc Shaman - Bloodlust (Ordered unit)
 
Unit - Order (Attacked unit) to Orc Shaman - Bloodlust (attacked unit)
 
I tried that also, but the unit never cast the ability. Also, what if I want the unit to cast an ability that isn't listed? As in Berzerk?
 
Alright I don't actually know why that trigger of yours doesn't work now.
But you can use the creep ability frenzy instead of bloodlust.
That leads to you question above "how to cast an ability that is not listed". You simple use "Unit - issue unit order with no target" (this is for instant cast abilities mostly).
 
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Rabies Dog
    Actions
        Unit - Add Berserk to (Attacked unit)
        Unit - Order (Attacked unit) to Orc Troll Berserker - Berserk
        Wait 2.50 seconds
        Unit - Remove All buffs from (Attacked unit)
        Unit - Remove Berserk from (Attacked unit)

Now works perfectly, thanks for your help once again :D
 
Great. However you need to know that the wait in the trigger will mess up if you have more than one Rabies Dog and/or if it gets hit multiple times before the wait finishes.

Waits in triggers are usually a no no.

If two Rabies Dogs are hit within the wait time the second Rabies Dog will have its buff removed at the same time of the first Rabies Dog.

If you have one Rabies Dog and it is hit two times in a row the buff will not prolong the effect. The second hit will lose it's buff at the same time as the first hit's buff. Like the example above.
 
I had it setup like so, at first:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Rabies Dog
    Actions
        Unit - Add Berserk to (Attacked unit)
        Unit - Order (Attacked unit) to Orc Troll Berserker - Berserk

But it only buffed the unit once and never triggered again. Should I have added a remove action for the ability after casting berserk?
 
First check if the ability has a cooldown, mana cost or other requirements preventing it being cast again.
 
It had a 30 second cooldown, which is why it wasn't casting it again within the time it was being attacked by the rabies dog. Changed it to 4 seconds cool down and 4 seconds duration.
 
Another problem I'm having is with this:

Code:
Sheep effect
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Sheep
    Actions
        Unit - Create 1 Sheep for Neutral Hostile at ((Position of (Attacked unit)) offset by (0.00, 0.00)) facing (Random real number between 0.00 and 360.00) degrees
        Wait 3.00 seconds
        Unit - Kill (Last created unit)

Works fine if I have one Tower (Sheep), but if I have more than one, it bugs out and not all of the created sheep are killed 3 seconds after being created.
 
First off. Leave the facing degree as default instead of setting it to a random number between 0 and 360. Default does the same thing.

Secondly read my third reply again ;)
 
If I take the wait out though, the sheep wont show up and it will just cause the AOE ability on death. How can I cause it to die after a certain amount of time without using wait?
 
You want the sheep to die 3 seconds after it has been created. Then add and expiration timer to it. Found under "unit" under action.

Your trigger is also leaking a point. You need to make a point-variable and set it in the beginning of your actions. In the end of your actions you have to remove the point again or the game will keep track of that specific point.

Read this tutorial: http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27219
 
For the remove buff part you can create a dummy unit with a special skill based on chainlighting that must do 0, 99999 range, only 1 objetive, not bouncing, no effects, target ally and player controled units and 3 SECONDS CASTING TIME.
Then when you cast the skill "order attacked unit to ..." create the dummy unit in the "temppoint" a custom variable created in the place the unit is attacked and uses the skill, then add the "chainlighting" dummy skill we created and order last created to use it on the attacked unit, so you do another trigger when that skill is used remove the specific buff you want, also add only 4 seconds to the dummy so when it does his job or not if the unit is dead before the buff goes off, then the dummy still dies.
To clear the sheep only add expiration time. Search in unit closerby to "pause unit".
 
What exactly is a dummy unit/ability?
A dummy unit is one created for the sole purpose of casting a certain spell, and then removed again. Generally lacks a model file or has one that doesn't resemble a unit and features no attack, the locust ability, and is invulnerable to ensure it does not attack or get attacked.

A dummy ability is either the ability used by the dummy unit (often added to unit via same rigger that created him and has 0 mana cost) or can sometimes be used to refer to abilities that have no object editor effect (0 damage, no meaningful buff or stun) and exist just to activate a trigger that does the real ability effect.
 
use triggering unit, it isn't lost after a wait.
 
Triggering unit won't work here because SpyDaniel does not want to kill the triggering unit. SpyDaniel, you can make those triggers of yours work for multiple units without bugs by using an unit indexer.
 
?? what you talking about?? I was referring to the first post and attacked unit being changed.
 
Do you mean the attacking unit? If you referring to attacked unit, then triggering unit won't work either.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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