Making a auto cast Roar for a pet.

I tried the code on page 1, it fails at
Trigger:
  • call IssueImmediateOrder(bear,"roar")
saying it expected an action.

And it wouldn't work anyways because it will still be a loop, could someone please answer my previous question :):

Why isn't this working:
Trigger:
  • Bear Roar
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • BearRoar Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Attacking unit)) Equal to Adult Bear (Level 3)
          • (Unit-type of (Attacking unit)) Equal to Trained Bear (Level 4)
          • (Unit-type of (Attacking unit)) Equal to Champion Bear (Level 5)
    • Actions
      • Custom script: local unit BEAR
      • Custom script: local unit TARGET
      • Custom script: set BEAR = GetAttacker()
      • Custom script: set TARGET = GetAttackedUnitBJ()
      • Unit - Order (Ordered unit) to Night Elf Druid Of The Claw - Roar
      • Wait 1.00 seconds
      • Custom script: call IssueTargetOrderBJ( BEAR, "attack", TARGET )
      • Custom script: set BEAR = null
      • Custom script: set TARGET = null
      • Set BearRoar = False
      • Wait 30.00 seconds
      • Set BearRoar = True
 
Maybe this. Make a spell Orb of Lightning, add Cold arrows to it. Then pick in a map units, add them to trigger. When they take damage and they have a buff, then order damage source to ROAR
 
Maybe this. Make a spell Orb of Lightning, add Cold arrows to it. Then pick in a map units, add them to trigger. When they take damage and they have a buff, then order damage source to ROAR

I'm sorry, I don't understand what you mean :S You want me to make an item? Or a spell with another spell? I'm confused.
 
Try adding text messages in all triggers with the remove unit action. When that procs, you'll know the cause. You can remove after.

I still think dummy units are they way to go.
 
Try adding text messages in all triggers with the remove unit action. When that procs, you'll know the cause. You can remove after.

I still think dummy units are they way to go.

I don't have any triggers with the remove unit action :/

I might, if I absolutely can't get this to work, but for now, humor me mkay?

Edit: I figured out, and fixed, why it got removed... You don't want to know...
 
what about this.
It creates a ten second cd for the spell so the bear won't pause everytime its attacked.

Trigger:
  • Roar
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Misha
    • Actions
      • Unit - Order (Attacked unit) to Night Elf Druid Of The Claw - Roar
      • Set roarcd = 10.00
      • Trigger - Turn off (This trigger)


and

Trigger:
  • roarcd
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • roarcd Greater than 0.00
        • Then - Actions
          • Set roarcd = (roarcd - 1.00)
        • Else - Actions
          • Trigger - Turn on Roar <gen>
 

Attachments

  • test map.w3x
    16.6 KB · Views: 256
what about this.
It creates a ten second cd for the spell so the bear won't pause everytime its attacked.

Trigger:
  • Roar
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Misha
    • Actions
      • Unit - Order (Attacked unit) to Night Elf Druid Of The Claw - Roar
      • Set roarcd = 10.00
      • Trigger - Turn off (This trigger)


and

Trigger:
  • roarcd
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • roarcd Greater than 0.00
        • Then - Actions
          • Set roarcd = (roarcd - 1.00)
        • Else - Actions
          • Trigger - Turn on Roar <gen>

Actually it's supposed to fire when it attacks. Not when it's attacked ;) And if you look at my latest trigger (2 or 3 posts up), I already have a timer incorporated and a variable wont work, because it is possible that there is more than 1 bear on the map at the time. What my actual problem is, that the bear wont Roar at all for some reason.
 
Couldn't you just make an autocast ability based off whatever auto cast ability and set its values to nothing and whenever it is cast add roar to the bear, make it cast roar, then remove the roar ability?
 
Couldn't you just make an autocast ability based off whatever auto cast ability and set its values to nothing and whenever it is cast add roar to the bear, make it cast roar, then remove the roar ability?

Already tried that, changes nothing. The bear simply wont cast my Roar.
 
hmm have u made sure the bear has the right version of roar for the command?
cause im not sure whether different roar commands effect different roars. For example i used the druid of the claw roar
 
hmm have u made sure the bear has the right version of roar for the command?
cause im not sure whether different roar commands effect different roars. For example i used the druid of the claw roar

It is based on the Druid of claw roar spell.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top