Spell Evasion Aura

The basic gist is:

Code:
Add Ability Via Buff
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in (Entire map) matching ((((Matching unit) has buff Evasion Aura) Equal to True) and ((Level of Spell Book  for (Matching unit)) Equal to 0))) and do (Actions)
            Loop - Actions
                Unit - Add Spell Book  to (Picked unit)
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in (Entire map) matching ((((Matching unit) has buff Evasion Aura) Equal to False) and ((Level of Spell Book  for (Matching unit)) Greater than 0))) and do (Actions)
            Loop - Actions
                Unit - Remove Spell Book  from (Picked unit)
 
> ertaboy356b

Yeah but ther I found few holes in it (if I recall correctly what I thought :p )

> Kershbob

With major twiching your trigger could work, but mine works and it does what needs to be done with no leaks and no known issues.
 
With major twiching your trigger could work, but mine works and it does what needs to be done with no leaks and no known issues.

It does work and I've used the same base for dozens of triggers in my map; they don't leak and work very efficiently.

By the way add a buff to your aura.
 
Anyway, could you tell me where the Hole is??? I'm planning to use the buff for my future projects...
 
Is this a joke? there is already an evasion aura so change the name to avoid confusion lol.

my bad didnt read the whole thread and just realised it was evasion (passive) :p that I was thinking about. Still very similar name would be better to change it IMO.
 
>**well I guess it works, I am not great with GUI anymore, so I'm not real sure if this is as good as it could be, could anyone else give a second opinion?

It's as good as a GUI spell gets, it isn't MUI but it's leakfree. The only changes I would suggest, is to check if the picked unit has the evasion holder but not the buff when you remove the evasion holder from the unit. This will ofcourse also force you to check if the unit has the evasion holder when you add it to a unit, to avoid giving a unit the ability twice (Not that it matters much). You could also limit the use of groups to two, by clearing (Not removing) group[1] after use, and then use it as group[2] or group[3].

Keep it up.
 
> it isn't MUI

Actually I believe it is, I refer only to unit groups which are of course MUI variables.

> What if the aura is leveled up?

The aura has multiple levels, no problem there.

> What about two heroes with different levels of the aura

Effects won't stack.

I'm working on new version that will stop giving the spell again and again when not needed.
 
actually no global variables are "MUI" variables, however there are no waits so it should be
 
> actually no global variables are "MUI" variables, however there are no waits so it should be

SFilip told me (and the logic agrees with him) that triggers are not MUI only when using wait and somtimes timers (and that is of course assuming you are not using locals).

What needs to be done so it would be approved?
 
Regardless of that globals will never be MUI, but as emilj3r said, it's close enough. I might have chosen a bad way to express myself in this case. I've made a tutorial about the subject, it's pretty straight forwarded, and I'm sure you allready understand the idea, however if you have any doubts I'm sure you'll be able to find the answer in it.

>What needs to be done so it would be approved?
It does pass for approval in my opinion, but wheter or not it's approved is being decided by a admin. Just follow/correct their comments, and I'm sure it'll be approved eventually (There's 6 spells awaiting approval at the moment, including yours).
 
> globals will never be MUI

Yeah didn't use words properly.

> it's close enough

That was the result from my tests, yes.

> I've made a tutorial about the subject

Yeah I read it, it was great.

> I'm sure you allready understand the idea

I believe I do.

> It does pass for approval in my opinion

Thanks. :)

> There's 6 spells awaiting approval at the moment, including yours

I know, that's why I'm wondering what should I make it to be approved indeed.
 
Have you got rid of the bug where it reselects your hero every time the trigger fires?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Happy Thursday!
  • Ghan Ghan:
    I'm not so sure, there's still a lot of Thursday left for it to become unhappy.
    +3
  • The Helper The Helper:
    still a few hours
  • The Helper The Helper:
    Its Friday!!!!
    +1
  • Ghan Ghan:
    Thursday 7/10 would Thursday again
    +3
  • The Helper The Helper:
    New forum coming soon going to be for my friend Saylor who is blind and he is doing motivational speaking and has an internet radio show and podcast. I am going to put a forum to promote him and other inspirational speaker stuff going to have some good stuff in it.

      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