-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Location trigger #4917
add Location trigger #4917
Conversation
Creates a new player location trigger and moves instance filters from a condition trigger to the player location trigger.
b96b5cf
to
5f9ec6b
Compare
I don't think you can realistically move these settings to a different trigger, there are too many cases that you canot accurately convert. So the options are,
|
I like @emptyrivers idea. |
I don't want this merge with this migration |
I can drop the migration if you'd rather not have it. I thought of it as a convenience before you mentioned texts, conditions and trigger activation. |
@InfusOnWoW I think I tackled all your reviews now. I've removed the AuraWarning for having instance filters enabled in the conditions trigger. The red deprecated text remains with an additional description to guide users to the location trigger. Since the instance filters are multiselect options I had to make sure it uses arg.desc. This overwrites the multiselect description, but if you prefer to concatenate the two descriptions together then let me know and I will change it. |
…ource does nothing here
I wasn't able to find anything about |
The vehicle update comes from b57179727940d1fb539bccd5f690c9ceb6847f09. The bosses there are from the Eternal Palace raid in Bfa. So no idea whether this is still a problem worth considering. I'd say leaving it out is fine. I looked at what events are fired on moving inside and I don't see a better event. My conclusion from that is though, that we shouldn't have an inside trigger option. I don't want to build a trigger on an seemingly unrelated event without a good reason. (The good reason for using VEHICLE_UPDATE for zone id/name was that it previously worked that way and users had auras relying on us using the event.) The inside check is not something I have ever seen anyone ask for nor do I see that as crucial. so given that there's no useable event for it, I'd say leave it out. |
I've added a small commit fixing an lua error I encountered while testing and making the parsing function easier to understand (at least I think so). |
@InfusOnWoW I've removed the Indoors option. Now, something a bit unrelated. While developing this trigger, I wasn't using the Player Location ID filter at first. I had them all split up in their own trigger options. So that made a big list of filters and I had the idea of adding a divider to split the map related filters and the instance filters. Just like in an Aura Trigger where you have categories for Spell Selection Filters, Affected Unit Filters and such. However, it seems like the header type from BuffTrigger is not available in Prototypes. Is that something I can convince you to add? If not, I think I would rather remove the "Instance Filters" text. |
The BuffTrigger 2 options directly use AceOptions, whereas the GenericTrigger doesn't directly use AceOptions, but instead is converted to AceOptions via "ConstructOptions". ConstructOptions currently doesn't support a "header" type, but adding that is trivial, by just adding code e.g. similar to
|
Description
This pull request will add a new trigger "
PlayerLocation" with filters related to zones and instances.Since the "Conditions" trigger already contained several instance filters, these are now moved to the Player Location trigger.
I've added code to Modernize.lua that removes the instance filters from Conditions and creates a new Player Location trigger.
If the leftover Conditions trigger contains no active filters as a result of this, it is removed.Instance filters in Conditions triggers have a "deprecated" string added and auras with these are show an AuraWarning. #4917 (comment)
Also fixes #4759
Location filters
c
eg.c1978
%instance
%instanceDifficulty
Type of change
How Has This Been Tested
The Modernize has been tested with this aura: https://wago.io/qDhHF9TX-
It contains 2 triggers:
After importing this aura, two new triggers are added
and the 2nd condition trigger is removed:3. Player Location trigger with "Instance Size Type" checked
4. Player Location trigger with "Instance Difficulty" checked