Download
(3 Kb)
Download
Updated: 09/06/19 09:25 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Updated:09/06/19 09:25 AM
Created:09/02/19 07:57 PM
Monthly downloads:99
Total downloads:5,260
Favorites:3
MD5:
Categories:Sorcerer, Buff, Debuff, Spell
Ward Shield Reminder  Popular! (More than 5000 hits)
Version: 1.1
by: Supplier [More]
This addon detects when an activated damage shield is lower than an adjustable percentage threshold (Default is at 0.45 of shield strength) or an adjustable base threshold (default is at 2500), or if the shield has been deactivated or destroyed. It then alerts the user by displaying a warning on the screen.

Inspired and made possible by @ratparol101's addon: https://www.esoui.com/downloads/info1676-WardHelper.html and Garkin's addon: https://www.esoui.com/downloads/info799-ShieldInfo.html

Addon works with any class.

Current version: v1.1

By default, the addon will display an alert warning (WARD LOW!) at the center of the screen when the user's damage shield is lower than a percentage threshold or a base threshold, or if it has been destroyed or deactivated (WARD DOWN!). Position of the icon can be adjusted and its new location will be automatically saved for future play sessions. The percentage threshold and base threshold can also be adjusted and its value will be automatically saved. The icon disappears as soon as the player is out of combat or if it the user has applied a new ward shield.

For default values, percentage threshold is the value of shield strength * 0.45, meaning at 45% of the shield strength, the WARD LOW! alert will pop out.

Base threshold is 2500, meaning when shield strength is at 2500, the WARD LOW! alert will pop out.


To adjust the position and of the icon and the percentage threshold:
/wrm show - Displays location of the warning icon. Simply use your mouse to drag it to your desired position.
/wrm hide - Hides the indicator after warning icon is at your desired position.
/wrm value - Shows current threshold percentage.
/wrm '0.05-0.99' - To adjust the threshold percentage, simply type in a value after /wrm. It has to be between 0.05 or 0.99. Any other number will prompt a debug message telling the player that an invalid value has been inputted. For example, if you want to set the threshold to 0.35, type in /wrm 0.35. Default is at 0.45. (Recommended Values: 0.35-0.65)


To adjust the base threshold:
/wrmb value - Shows current base threshold.
/wrmb '500-10000' - To adjust the base threshold percentage, simply type in a value after /wrmb. It has to be between 500 or 10000. Any other number will prompt a debug message telling the player that an invalid value has been inputted. For example, if you want to set the threshold to 1000, type in /wrmb 1000. Default is at 2500. (Recommended Values: 1000-3500)


Limitations:
- Percentage Threshold is changed every time a shield is destroyed or deactivated. This isn't normally a problem, but it could become one if a small shield was the only shield remaining. I had different iteration of this addon that doesn't do this, but it introduced new problems (mostly logical). For this iteration, the current fail-safe fix is a base threshold that the user can adjust. It kind of defeats the purpose of the percentage feature, so I am not sure if this is the right idea of going about it. Let me know if you have an idea of how you think this threshold should work.

- Multiple Shields might bug out the addon. So far, I have only been able to test it when I have Annulment and Hardened Ward activated (the only shield actives for Sorc). I am not sure what might happen if multiple shields from other players are applied to the userr as it is difficult to do complete testing by myself. The addon should still work fine, but let me know if a bug occurs in your playtime and how it happened, so I can try to fix it.

Note: The addon was designed to help the player manage their damage shield resource, so that they don't deplete their magicka when it is not necessary. I personally made the add-on for this purpose. I hope it might help you out as well.

Special thanks to: ESO UI Wiki, Forums, everyone in the ESO UI Gitter Chatroom!

Change Log:
v1.1:
- Removed class restriction; the addon can now be used with any class

September 6, 2019:
All files should now be in a folder for easy installation. I can't believe I missed that again!
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
1.0
3kB
Supplier
09/02/19 07:57 PM


Post A Reply Comment Options
Unread 03/09/23, 01:44 PM  
Anthonysc
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 100
Uploads: 1
This is a great addon, the additional visual feedback when your ward has dropped is extremely welcome! There is one issue however, the notification stays up constantly when you don't have a shield slotted at all. Would it be possible to tweak it so it only shows the reminder if you have a supported shield skill slotted?



You can cache what skills are on player's action bars like so:

local hotbarAbilities = {}

local function updateHotbarAbilities()
for hotbarIndex = 0, 1 do
for slotIndex = 3, 7 do
local abilityId = GetSlotBoundId(slotIndex, hotbarIndex)
local cacheKey = hotbarIndex .. "_" .. slotIndex
-- Check if the ability in the slot has changed
if hotbarAbilities[cacheKey] ~= abilityId then
hotbarAbilities[cacheKey] = abilityId
end
end
end
end

and a function to check if a given ability is slotted:
local function IsAbilitySlotted(abilityId)
for _, slotAbilityId in pairs(hotbarAbilities) do
if slotAbilityId == abilityId then
return true
end
end
return false
end
and register the event handlers to keep track of what is slotted

-- Register an event listener to update the ability ID table
EVENT_MANAGER:RegisterForEvent("PlagueContainment.name", EVENT_ACTION_SLOTS_FULL_UPDATE, updateHotbarAbilities)
EVENT_MANAGER:RegisterForEvent("PlagueContainment.name", EVENT_ACTION_SLOT_UPDATED, updateHotbarAbilities)
Then only show the warning if a supported skill is slotted.

(Quoted code above is examples from an addon I'm working on for a completely different purpose. I don't know if there's a better way to actually keep track of the abilities on both bars but that's what I came up with for me, you're welcome to use it).
Last edited by Anthonysc : 03/09/23 at 01:44 PM.
Report comment to moderator  
Reply With Quote
Unread 01/17/20, 10:46 PM  
alexbart

Forum posts: 0
File comments: 1
Uploads: 0
Any chance you can provide an option to make the alert text more customizable please? At least text size would be great..Color change would be really cool.
Report comment to moderator  
Reply With Quote
Unread 09/03/19, 10:45 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4963
File comments: 6032
Uploads: 78
Much appreciated!
Report comment to moderator  
Reply With Quote
Unread 09/03/19, 08:45 PM  
Supplier
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 15
Uploads: 2
Originally Posted by Baertram
This sounds nice. Could you maybe just remove the restrictions for sorcers as there are plenty of shield abilities in teh game,a lso for stamina and other chars?
If a user does not want this he could disable the addon so the class restrictions make no sense in my opinion.
You are right. I removed the restriction now.
Report comment to moderator  
Reply With Quote
Unread 09/03/19, 06:45 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4963
File comments: 6032
Uploads: 78
This sounds nice. Could you maybe just remove the restrictions for sorcers as there are plenty of shield abilities in the game, also for stamina and other chars?
If a user does not want this he could disable the addon so the class restrictions make no sense in my opinion.
Last edited by Baertram : 09/03/19 at 10:45 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: