Bug Closed · Resolved

Target Filter: ignoreArmorStands

#1329 opened by Unknown 5 years ago

Unknownreported this bug

Summary

Just like that ignore animals, flyingmobs, monsters... flags skill{s=ASkill} @EntitiesInRadius{r=5;target=players}

A filter for armor stands

Usage

@EIR{r=5;ignore=armor_stands} Works with any targeter

Value

Armor stands are often used for decoration and WorldGuard cannot protect them from certain combinations of ignoreArmor and preventImmunity damage from the damage mechanics; And also its annoying when they get tossed around wth throw; and in general there should be a less cumbersome way of avoiding targetting them than this:

BackOffSkill:
  Skills:
  - particles
  - sounds
  - skill{s=ThrowNoArmorStands}
ThrowNoArmorStands:
  TargetConditions:
  - entitytype{t=ARMOR_STAND} cancel
  Skills:
  - throw{v=10;v=-3}

Also its pretty damn fun to do custom MythicMob skills for MMOItems, but cant add stuff with nice ignore armor gimmicks or rapid firing things that ignore immunity frames because it gives the ability to players of breaking Towny-protected stuff from each other. Currently have a Railgun-Shotgun that has to ignore immunity frames so the 8 rays may hit the same target (as it should be). Would me much easier to implement more Sci-Fi guns like thay if one didnt have to make an additional skill with the condition in it.

Priority

High, (considering the manual says more of these filters are coming 'later'; Hinting at ease of adding new ones) because it wouldnt take much time to just get it over with.

Implementation

It does what the rest of the ignore filters do. I guess it could ahve its target= counterpart.

Unknowncommented

I believe you are able to design any skill with the condition

TargetConditions:

  • entitytype{t=ARMOR_STAND} false

and if that doesn't work then use

TargetConditions:

  • entitytype{t=ARMOR_STAND} castinstead Null

and make an empty metaskill named "Null" like this with no actions in it.

Null:

Skills:

Literally any entity can be negated in this way.

Unknowncommented

I mean yeah, thats what the example skill in the post is doing.

However, this suggestion argues to add this tag, that should be applied to basically all damage mechanics in skills that are made into mmoitem abilities.

A shorthand would simplify the code a lot, plus its annoying to make a new skill every time you want to add the damage or throw mechanics. Not that its not possible with mythicmobs already.

Apparently the code had parsed into a bulleted list, Fixed it by using triple apostrophe instead of one.

Unknowncommented

You can use the same nullskill for all desired null targeting events. I can't tag posts yet but I'll tag it as conversation since it's a suggestion when I can.

Sign in to join the discussion.