Need Help! Ability Switching!

TPOX

New Member
Reaction score
10
Ok, I have a problem. The first two triggers are what enable and disable another two triggers that make a unit follow my hero.

Code:
Follow Level 4
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Follow 
    Actions
        Trigger - Turn on Minion Control Level 4 <gen>
        Trigger - Turn on Minion Control 2 Level 4 <gen>
        Unit - Remove Dont Follow  buff from (Triggering unit)

Code:
Dont Follow Level 4
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Dont Follow 
    Actions
        Trigger - Turn off Minion Control Level 4 <gen>
        Trigger - Turn off Minion Control 2 Level 4 <gen>
        Unit - Remove Follow  buff from (Triggering unit)



Ok, now heres the complicated part. My hero has two spells. Follow and Dont Follow. The are both based on ROAR and BATTLEROAR which buff ur hero self. The hero has the ability Follow in slot 1-1 and the dont follow is slot 1-1 but he doesnt have that at start. But when you click follow and already have follow buff it takes off buff and gives you dont follow ability and is vice versa, the last part of the trigger is just so you start out with the follow buff when creating minions.

Code:
Follow or Not
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Follow 
                ((Triggering unit) has buff Follow ) Equal to True
            Then - Actions
                Unit - Remove Follow  from (Triggering unit)
                Unit - Add Dont Follow  to (Triggering unit)
                Unit - Order (Triggering unit) to Special Rexxar - Battle Roar
                Unit - Remove Follow  buff from (Triggering unit)
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Dont Follow 
                ((Triggering unit) has buff Dont Follow ) Equal to True
            Then - Actions
                Unit - Remove Dont Follow  from (Triggering unit)
                Unit - Add Follow  to (Triggering unit)
                Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Roar
                Unit - Remove Dont Follow  buff from (Triggering unit)
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Minion Ressurection 
            Then - Actions
                Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Roar
            Else - Actions
                Do nothing




My problem is if i have the follow buff and hit follow it changes to the dont follow and the minions stop but the follow buff doesnt go away, and does it the same for the other way around. Is there something im doing wrong or missing?
 
Both buffs are there?

When you say "The follow buff doesn't go away" you mean that after doing this he has both the Follow and Don't Follow buffs? Or does he just have the "Follow"?

It seems as though you may just have the buffs mixed up if the latter is the case. Otherwise, not sure.
 
ya both the buffs are still there, but ive overlooked everything carefully and still found nothing to fix
 
Hrm...

Well, just checking my understanding but if you have the Follow Buff, shouldn't you have the Don't Follow ability? And if you cast Don't Follow, you get the Follow ability and the Don't Follow buff? That would mean that when you cast the Don't Follow ability the unit would have the Follow buff rather than the Don't Follow, right? So maybe this is a problem?
Code:
If - Conditions
  (Ability being cast) Equal to Follow
  ((Triggering unit) has buff Follow ) Equal to True

Also, do you shouldn't these do all the buff removal for you? not needed in bottom function perhaps??
Code:
Follow Level 4
      Events
          Unit - A unit Begins casting an ability
      Conditions
          (Ability being cast) Equal to Follow
       Actions
          Trigger - Turn on Minion Control Level 4 <gen>
          Trigger - Turn on Minion Control 2 Level 4 <gen>
          Unit - Remove Dont Follow  buff from (Triggering unit)
Code:
Dont Follow Level 4
      Events
          Unit - A unit Begins casting an ability
      Conditions
          (Ability being cast) Equal to Dont Follow
       Actions
          Trigger - Turn off Minion Control Level 4 <gen>
          Trigger - Turn off Minion Control 2 Level 4 <gen>
          Unit - Remove Follow  buff from (Triggering unit)

Aside from that, I've got no clue, sry
 
lol hmm in all the trigger ive sorta lost my train if thought ill have to check that possibly ur right :D ill get back to ya on that one
 
Is this what you were saying? I swapped the buffs to the true but now when i have the follow buff and cast follow it does nothing. ;/

Code:
Follow or Not Copy
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Follow 
                ((Triggering unit) has buff Dont Follow ) Equal to True
            Then - Actions
                Unit - Remove Follow  from (Triggering unit)
                Unit - Add Dont Follow  to (Triggering unit)
                Unit - Order (Triggering unit) to Special Rexxar - Battle Roar
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Dont Follow 
                ((Triggering unit) has buff Follow ) Equal to True
            Then - Actions
                Unit - Remove Dont Follow  from (Triggering unit)
                Unit - Add Follow  to (Triggering unit)
                Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Roar
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Minion Ressurection 
            Then - Actions
                Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Roar
            Else - Actions
                Do nothing
 
oo woah woah woah wait no lol

If you have Follow buff u should have Follow Ability.
But if you cast follow ability and have follow buff it casts Dont follow and removes follow buff.
 
meh it still wont work
well i hope someone can find what i did wrong :(
 
Why use buffs? Just check if the unit has the ability Follow or Don't Follow, and ignore buffs.
 
rofl your right it worked perfectly, reedited a few things but no buff was needed lol. Thanks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    How often does the Trending Content box refresh?
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top