Weakaura custom trigger example. Change "Show On" option to "Always".
Weakaura custom trigger example You need a dynamic group as the parent of your aura. My custom trigger is this: Jun 3, 2019 · aura_env. Now the first trigger reacts to the spell cooldown and therefore has all the information it needs to display the icon, cooldown and tooltip. I use Custom->Status->CheckOn: Every Frame. It's also nice when things are automated AND bulletproof. (this is why the CC trigger in WA isn't a "unit" trigger, just a "player" on). Problem is, the icon never shows up and my guess is that since the icon has one custom trigger, the dynamic information doesn’t get passed up to the Group. And then a custom function for choosing between that trigger and the combat trigger. The All the info you need is in Amiyuy's link but just to be explicit, you make triggers for: 1, aura - bone shield - buff - player - duration < 10 2, aura - bone shield - buff - player - stacks <= 5 Then select, at the top of the trigger tab, Required for Activation = Custom and use the function: function(t) return t[1] or t[2] end Mar 13, 2025 · The following functions are intended for use with the COMBAT_LOG_EVENT_UNFILTERED trigger event. If memory serves you could have a WeakAura show after a set amount of time, think it would be an invert toggle under the WA's display settings, then set the custom trigger to hide after a duration; though these might conflict with one another. SortAscending{"region", "state", "myKey"} then you should add myKey to the "Run On" box in order to guarantee your sorting continues to function correctly. 5 (Replace this number with whatever the pandemic window is for each dot) Then in the dynamic group "Group" tab, in "Sort" choose "Custom" and use the following code: The other triggers aren't custom. Assuming you only have those two triggers: one for when in combat and one for when below 100% health. state and aura_env. To utilize these code snippets, create a WeakAura Display and set Trigger > Type: Custom, Event Type: Event and add COMBAT_LOG_EVENT_UNFILTERED to the Event(s) field. Expected return is a boolean for whether the trigger should be active or not. Next you will have to make Chiexplosion3 scan for said specific event before it can trigger. The first three will be explained here; for the fourth, see Custom Triggers. 18. Nov 19, 2020 · Before sort arrows, add "name note" icon, adds either a clear name after "trigger 1 - name" or even fully replace "trigger 1" to whatever we want. Edit. In the You can make one, create a custom trigger when it wants to be displayed (when it would return true) you can fire an even which another aura can use to hide / display. So basically: Is W true? Yes -> Are either X, Y or Z true? Yes -> activate aura. Create a new macro: /cancelaura Inky Black Potion /use Inky Black Potion Now you have an aura you can use as trigger for tamas WA visibility. The bulk of the aura is under the Trigger tab. Disclaimer: I am very bad at custom code Alright guys, first off I'd like to just say that I don't need this weak aura to work, it's just that it's pissing me off that I can't make it work. Like use a chat message event as trigger and a CLEU as untrigger. There are of course more complicated examples, for which I usually just write it out in lua in a custom trigger or create compliment triggers, which makes the UI get kind of cluttered. In the Event(s) textbox I put: MY_EVENT_NAME edit: Actually, on the original topic, you may not be able to do what you want inside WeakAuras, but there's nothing stopping you from doing it outside of WeakAuras. Jan 31, 2015 · Anyway, I found the problem in yours, in the custom triggers Duration info, you have : local duration = GetTime() - DG_STARTED if you change this to just equal 10 it should do exactly what you are hoping for (this just tells the aura the maximum duration, so the bar will be 10 seconds long instead of around 5 seconds). If you're familiar with event type triggers or aura triggers that provide the "auto-clone" option then you'll understand the concept. Custom Trigger: function() local PtWTarget = (UnitGUID("target") or "") if not (PtWTarget == "") and (PtWTarget == (aura_env Jun 5, 2019 · 'Any Triggers' may lead to an ancillary trigger causing the aura to show, when the main trigger isn't shown. I've searched the whole weak aura ui but cant find option like this so I decided to ask here. I've added some non-LUA, user friendly notes to the custom trigger for usage purposes Aug 31, 2020 · My main motivation is to have a default template to work with on custom WAs that don't need OnUpdate calls. 0 and it doesn't seem to have custom check option. Go ahead and import it. I'd then use conditionals to hide the aura in various circumstances. If there is no such script, then the name of the aura Functions WeakAuras. Trigger on events This works fine for many things, displaying a custom cooldown or time is not one of them, because your WA triggers in irregular intervals. Problems: untrigger event have to be a variation of the same event use for trigger, you can't mix them. Under “Required for Activation” you will have three options: See full list on github-wiki-see. Regardless of the weakaura type you are working with, the trigger tab is where you set up the logic for when weakauras are active. I want it to return true when either Evocation cd has less than < 20 secs or its completely off CD. config. Custom; Timed "Custom" duplicate some of the trigger's fields and allow user to set different values. Just watch the code: CUSTOM TRIGGER function () local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster Dec 16, 2014 · Kinda new to the lua part of Weak auras, and i'm bumping into a problem with several unkowns, One of my weak auras i want to trigger, depending on a series of "and" events. In one of the texts use %c (in addition to anything else you're using if needed), set the custom option to on Trigger Update, then use the function: function() if aura_env. If Dynamic Info points to a custom trigger, then %n will be replaced by the Name Info function's return value. For example, I use some custom triggers for help with my balance DPS rotation, which I'll explain below. The 4 set is this: Item - Druid T16 Guardian 4P Bonus Activating Frenzied Regeneration and Savage Defense will cause a heal over time on yourself based on 30% of your Attack Power over 8 sec Goal: Trigger an action if aura X is missing, but don't trigger false positives (e. Please excuse my limited knowledge since it's been a while since I played. 2. Is there a way to make this happen with the default weak aura options or can somebody help me with custom trigger. ScanEvents() WeakAuras. region:SetDurationInfo(aura_env. The custom trigger though requires manual input. You can test my above claim about your example: Create a new icon aura, don't change anything other than setting "Required for Activation" to "Custom Function" rather than "Trigger 1", then in the box put Apr 4, 2024 · One of the weak auras I stole code from especially for the custom trigger is the "wichtige WeakAura" that reacts to a number of words, usually synonyms for male genitalia, and then every player with the weakaura installed posts an ASCII represanation of a phallus in varying lenghts, in order to compare the randomly generated lengths. But the problem is that I want to display 30% of my current Attack Power and not 100%. Keybind it, you are good to go. For Guardian 4 set. An explanation of the new(ish) Custom Options tab in WeakAuras, and how to use them in your own custom code. To give some context, I'm trying to Jan 21, 2025 · WeakAuras Custom Tiggers. For each option you built in Author Mode (except Description and Space elements), there will be a corresponding value at aura_env. [help] Is there a weakaura custom trigger function that causes the aura to always show? Kind of want to keep things simple and clean and not use a specific trigger to make things work. Basically the fucntion I'm looking for would be something "if trigger 2 is true, then dont show trigger 1, if trigger 2 is false then show trigger 1". pandemicwindow = 4. ScanEvents("WA_MY_CUSTOM_EVENT", display); end return display; end Buy a huge amount of meaningless buff potions. Anyways if It registers the GenericTrigger table for the generic trigger types and "custom" and has the following API: Add(data) Adds a display, creating all internal data structures for all triggers. Thankfully you dont actually need code at all for most basic weakauras, I put together an example for what you want here. I created a new trigger and for the event type I put "Custom" and then in the "Custom Trigger" I put function() if aura_env. • WA Wiki page for Custom Options : https://gith in each individual dot tracked aura, in actions tab under "On Init" check the "Custom" Checkbox and have the following code: aura_env. Hi, I’m trying to get a Group to attach an Icon/Texture to a nameplate. stacks then aura_env. Sep 28, 2015 · Hey guys, i create a weakaura which should trigger when the debuff/buff is about to expire. Custom LUA Triggers If the normal stuff doesn't suffice and you want to run a extremely specific check to trigger your indicator, you can create completely custom triggers from LUA code (which I'll gladly write for you if you ask here). Under "On Show" check the custom checkbox. GitHub Gist: instantly share code, notes, and snippets. Then you can make the custom activation something like: One way to do it is to combine a condition with an animation. This is a table which WeakAuras provides to you. Many triggers provide that data, for example, all buff triggers as well as the ones that are in player/unit info. After hitting "New Aura" and choosing "Icon", This is the trigger I used to achieve what you're after. Everyone works so far but I wanted to be able to have it dynamically adjust the max value of the bar, like it does by itself with common triggers, for example: if my HPS in a fight peaks at 40k then drops to 20k it would show a bar half full, but if later I get 60k hps and then drop to 20k, it would Nov 29, 2015 · Hi there! I'll try to be brief but explain what I'm trying to accomplish as best as I can. just once when cold snap is used. Args sent in to the function depend on the trigger type, see below. Prototype triggers will supply this information automatically. I'll admit now I'm pretty newbie when it comes to LUA and only very recently started to develop an interest in it. immediately after loading screen) Add a second trigger for the custom event PLAYER_ENTERING_WORLD with custom trigger: function() return true end. state then *Reply: I looked into the suggested resources. In order to read the values which your user chose, you must index aura_env. ScanEvents("YOUREVENTNAME") end) I've cleaned up the custom trigger provided by u/Distinct-Traffic-676. Second, let me also apologize for my total lack of LUA and coding knowledge. Second trigger: Cooldown Progress (Spell), set that to Incarnation. Feb 9, 2017 · Because if you did, you could use a status trigger -> health -> (% < 100). I'm trying to make a weakaura that activates only when a shield is >not< equipped, however the only trigger with item type seemlingly doesn't have an inverse function (Item Type Equipped). You have to go via the debuff and the debuff API has no info about the CC the debuff might be applying either. Is it possible for a custom text output to be set based on triggers? For example, if trigger 1 is active, text would say "Trigger ONE!" and if trigger 2 is active it would say "TRIGGER TWO" Here's an example of what I copied for Rupture: Trigger 1: when the debuff rupture is applied to target Trigger 2: custom code below Custom text: function The trigger you are using needs to provide unit state data. I dont know coding that much to know what kind of operations to use in lua. Mar 8, 2025 · Custom Trigger. partyScan that has entries by your current unit identifiers (player, partyX, raidX, etc. Doesn't matter what it is, inky black potion comes to my mind, so I'm gonna use that as example. WA 2 has some triggers and will only show if all triggers are active AND WA 1 is active as well. However I suck at making custom trigger functions but guess it should be something like it Custom Overlays can be added to custom triggers in the trigger tab in a similar way to a trigger's other Dynamic Info. ) and the status of this buff on that unit. I can do this without a custom trigger and it works initially, but once I regain a dance charge and then spend it again, it detaches from the PRD and becomes static. If you are using multiple triggers withing a weakaura (an example of this could be that you want something to show up when you have an on use trinket ready during breath of sydragosa as a frost deathknight, to do this you would need two triggers one trigger to track when there is a breath of sydragosa buff on you and another trigger for when Feb 12, 2011 · 2. Sounds simple enough right? Custom trigger part: function() local start, duration, enabled = GetSpellCooldown("Evocation"); Apr 1, 2013 · Hello, I've been using weak auras for a lot of things lately, great addon, but I wanted to create a texture for targets with over X amount of "total" health, why? cause for me, levels and elite/boss tags a just part of what tells me if a target is potentially strong or not, for example: a level 90 player with 350k total hp is not exactly at the top of the food chain compared with another one May 12, 2017 · Hello everybody, Q: I need a weak aura with a double talent trigger, which will only show up when both talents are selected (for example talent 1,1 and talent 2,1). Ehiztari: Feb 24, 2025 · At its core the Trigger State Updater custom trigger type (referred to as "TSU") provides a way to create "clones". Players can use this function to create custom events for their own needs which can be used to send events to either trigger or pass information to the aura itself or another aura. Oct 26, 2018 · Currently all "Event" triggers share the same untrigger "Hide" select widget. Weakauras中的自定义事件简单教程 === 前言 === weakauras是一个框架,作用是让你在屏幕上以高效和美观的方式显示各种信息。 你有很多选择,设定什么样的光环或事件会引发什么样的特效,设定特效的外观,设定需要显示的信息等等。 I use WeakAuras currently to take care of stuff that other addons don't have a premade way of doing, because I can create Custom triggers and just slap in any LUA code I can figure out. Could anybody steer me in the right direction with an example? Thanks a lot, happy gaming! Hi, I'm trying to make weak aura and I'll need it to load only if there is specific class or spec is in the raid group. It has 2 triggers, Buff and Cooldown, with the dynamic information coming from the first active trigger. I'll break it down below, and then show you how to modify it for Lunarfall Carp: The "Custom Trigger" function returns true when the user has more than 0 Tomes in their inventory. Or maybe you to want to narrow down your dependencies even more. Is this possible through some custom code? The issue is that you don't have access to any info about the CCs of others in your API. Jan 16, 2015 · Multiple triggers. Args. So I currently have a weakaura that triggers when either X, Y or Z is true, very simple. That is many separate regions with their own separate Dynamic Info from a single trigger. Say for example that I'm trying to check in my trigger if the icon is the Sharpnel Bomb one. page There is probably a more straightforward way to learn it, but it worked for the simple things I needed. The issue that I'm having is that I'm not sure how to translate the code that I found into a trigger. I want to use the "%c" function so I can input my own LUA code, but I want the text to show up as my Hello there I have this Weakaura custom trigger I am using which displays my current Attack Power. For example, a buff trigger looking for the "Beacon of Light" buff on the player will replace %n with Beacon of Light. To get this to work I opened a wa that I want to fire the custom event. In any case, that means you have to search more triggers for mistakes, because they are the reason why an aura doesnt do want you want. As the title suggests, I'm trying to set up a WeakAura texture frame that will check unit classification and display if the target matches the condition. Custom textures including all textures from Power Auras and Blizzard's spell alerts; Progress bars and textures that show the exact duration of auras; Displays based on auras, health, power (mana, rage, soul shards, holy power, etc. config in custom code. When you make a custom trigger there will be a button in the trigger settings called "Add Overlay". I test this with Spell Reflection is 2 seconds remaining. As an escape hatch, the special key changed acts as a wildcard and causes WeakAuras to always trigger your custom sort & grow Hey Everyone! Trying to make a weakaura with a bunch of conditions for Garrote but the custom function isn’t working. The Trigger works perfectly. This trigger runs pretty often (several times a second) and I have several independent WeakAuras that make use of this trigger. I dont need to check the duration constantly. There are 4 categories of triggers: Auras, Statuses, Events, and Custom triggers. ), cooldowns, combat events, runes, totems, items, and many other triggers; Preset and user-defined animations So all you need is to createa a aura with two triggers: First trigger is a aura trigger for the Incanation buff. Additional context Example ugly image:. I assume this means I need a custom trigger that checks every frame so it knows to keep attaching itself throughout the fight. stacks, 20, true) -- change 20 to the max stacks end end Apr 1, 2010 · Heya guys, quick question. - Is W true? No -> Don't activate aura. I was wondering if its possible to use another weak aura as a trigger? For example, I have WA 1 which has some triggers and will only show if all triggers are active. ScanEvents("MY_EVENT_NAME", true) Now in the other wa that I want to depend on the first one I made a new trigger. For auras based on proximity with group or nameplates you can use the global Range Check condition. If you use Custom - Status - Every Frame, then no args will be sent in to the function. Change "Show On" option to "Always". I did use the search and I also tried googling it, but no help. Here is a quick overview of how to set up these weakaura specifically when using a “Custom Function”. problem is i can't figure out a way to represent the reset cooldown of ice block after cold snap is used without problems. Conditions The "Conditions" tab allows you to change the appearance of an Aura based on its trigger states. Have the condition trigger a custom function that flips a boolean value to true. put in: WeakAuras. You’ll have an array, accessible from anywhere within WeakAuras, called aura_env. Basically, the following statements should be tested, and if every event checks true, then it should trigger the Weak aura: The full example is rather lengthy, so to shorten the full weak aura i'll try use as few examples So there is no way, to trigger a WA each other frame. Making WeakAuras - Custom Code Block TutorialI go through all the custom code sections in a WeakAura, giving info about the info in/out and how to use them. Just create an addon whose name comes before "WeakAuras" in alphabetical order, and put your function in there as a global, with a nice unique name appropriate for a global: Oct 16, 2024 · WeakAuras has a default trigger status - Range Check that allows for range checks to specified units. Anyone can help me with this? I have a custom WA trigger that loops through all 40 nameplates and checks if my character in standing in a valid AOE scenario. So, Im making a custom progress bar that uses the new Details! API to display my current HPS. config[optionKey], where optionKey is the value that you wrote in the Option Key input field. When the buff is active, the original cooldown swipe goes over the icon only. Then you need to select "ANY" as the combination above the trigger dropdown. Thank you in Sorry if this is dumb, I tried searching but couldn't turn up anything, and I only fairly recently started getting into this custom LUA stuff. What I want to accomplish: When I reset a challenge mode I want to start Nov 15, 2020 · I would love the ability to be able to add a custom tooltip text to my custom trigger auras. "Weakauras has a condition for talent tree. Im using WA 2. I'll leave the few So basically now we just need to do /ee run-custom-trigger trigger:activator0 and thats it, it would send the broadcast message and all EB will run the custom trigger activator (if they have it, I am asumming they have it) which will send a message to the owner about a reward and it will drop the reward, very cool ! Mar 12, 2017 · - set it up like normal, for example, a CAST SUCCESS trigger and under the Actions tab under the On Show section, click the custom function and use this: Code: C_Timer. Yeah that was exactly what I was looking for custom trigger function to get that activation for the triggers. If you do need to do some range checking in custom functions then you can also use the WeakAuras functions to simplify things: Feb 17, 2016 · This makes it so that when your ChiOrb3 hides/fades, it triggers a specific event. Can be useful if you want to test some Auras and run out of time before a raid and just want it turned off. 'Letting go of shift' makes it disappear back. After(X, function() WeakAuras. And then on the conditions tab: Feb 4, 2016 · Hi, I am trying to create a simple custom trigger to determine if Evocation is off cd OR has less than 20 secs left cooldown. , party1, party2, target, nameplate1, nameplate2, etc. Call it aura_env. The game has a concept of units, e. This is generally faster than trying to hunt down an addon that does what I need. Trigger types are considered separate entities from Display types, so any trigger can be used for any (non-group) Display type. ScanEvents is a built-in function that is used by Weak Auras to pass in actual game events to the Add-on. I then add a custom cooldown swipe that goes behind the icon, but in front of the border so that the border always represents the cooldown. Choose custom, Event type: Event. state. Go to the Actions tab. I was trying to craft a custom trigger weak aura which checks if both talents are selected but i couldnt get it to work. You can do two different things to make your WA better in that regard. Go to your Chiexplosion3 and under the trigger tab, use a custom trigger set for Event, and in the Event line put the name of the custom event you put for ChiOrb3. Set the timer hide to timed and whatever. If your aura should be dependant on more than one condition, you need more triggers. Ok, so I'm looking to set up a custom Weakauras Text Display. Messing around with WeakAura and came to ponder, is there a function to make the weakaura group appear by holding down a button? I expect it to be a custom trigger but unable to find examples. have an animation that checks if your boolean is true, and only performs the animation code block if the boolean is true. Pure Event triggers aren't ideal because there's no way to trigger them initially. My Icon triggers on the NAME_PLATE_UNIT_ADDED event Do I need to do something special to pass the dynamic information up to the group? Oct 18, 2024 · For more specific information on each Trigger type, see Trigger Types, and for instructions on creating a Custom Trigger, see Custom Triggers. Load Trigger: function() if IsInRaid() == true and UnitExists("boss1") == 1 then return true end end Unload Trigger: if UnitExists("boss1") == nil then return true end end If you want it to show on all bosses and not just in a raid just remove the "IsInRaid() == true and" part of the load trigger For example (Trigger 1 AND Trigger 2) OR Trigger 3. Throttling code Unless there is a very specific reason you only want one trigger, multiple (simple) triggers is always the way go. I would recommend to make each custom trigger weakaura into a TSU, you do so by creating a new weakaura, Type = "Custom", Event Type = "Trigger State Updater", Check On = "Events". However I’m still confused how this trigger should look for the changes that came with battle for Azertoth. Here’s the variables trigger[1] = Garrote is missing trigger[2] = Garrote <= 5 seconds remaining trigger[3] = < 5 Combo Points trigger[4] = Garrote This string is an example that I made using Tomes of the Clear Mind. I’ve tried it a hundred different ways but either the logic is wrong or my understanding of the custom functions is wrong. g. WeakAuras gives you 2 choices for how it can check your trigger: Every time an EVENT(s) fires Every frame I'm worried that using Trigger 2 to track your mana (under Unit Characteristics) set to activate on Any triggers, set to use info from trigger 1 (to make sure you get that nice cooldown swipe on your icon) Condition activated on 2 things: Trigger 1 On cooldown=True + Trigger 2 mana < whatever mana the spell uses = set icon blue and desaturate I have created a WA with 2 triggers, one tracking the cooldown of the spell and a custom trigger to react to an spell overlay proc. I did not completely understand what I’ve read so far. I have something that does the same thing, but isn't bullet proof. Code: function() local display = false; display = "some logic to make this true or false" if display then WeakAuras. voidShake. If not by holding down the button then maybe by toggle? Example: 'Press Shift' makes a WA Group appear from the right. Been a while but here's a sloppily made but slightly less rambling than usual look at the new(ish) Custom Variables feature in WeakAuras. For example, I have an aura that displays the cooldown of the extra action bar, and I'd love to be able to give it a tooltip that lets me know what the ability does. I appreciate your suggestions, you have been helpful. I'm making these sequence of videos because lots Jan 19, 2023 · For example, if you have a custom sort like this: WeakAuras. (keep Trigger 1 behind the curtain so to speak) Describe alternatives you've considered hoverable icon next to "trigger 1 [¤]" that shows attached note. May 27, 2022 · Welcome to a detailed guide explaining Weakauras, one of the most powerful addons found on World of Warcraft. Status/TSU-type triggers that fire on Events would be great here, except for the issue described. It's spell - action usable: aspect of the turtle This custom trigger Then player/unit info - health under 40% Something like that Ok, so first off, let me apologize in advance if this question has been asked and answered. Jul 31, 2024 · For example, if you set the player class to Mage, in addition to the other triggers you have, it will not be visible unless you are on a Mage. The problem is to untrigger the aura. I now want to add another trigger that should be checked on first and if it's true, check for X, Y or Z. " - it sure does, but unfortunately this doesn't help if your primary and secondary spec are the same tree. Never: This will force the Aura to not load at all. Obviously, a Custom Function can be created to handle the specific trigger (function(t) return t[1] end) but there is a pretty big gulf between selecting from a dropdown and having any confidence in writing custom code. Feb 1, 2011 · I have spent the last few hours trying to make a customer trigger/untrigger for Talent Specialization Example: When you are in your primary talent spec it displays an icon, when you in your secondary talent spec the icon is gone.
uohmu kjg rryhcnj hptn pjeumx zbdp fvc pdlk flv euht pilww mpot nspqv ehnps eelqt