The Gold Road Chapter – which includes the Scribing system – and Update 42 is now available to test on the PTS! You can read the latest patch notes here: https://forums.elderscrollsonline.com/en/discussion/656454/
Maintenance for the week of April 15:
• [COMPLETE] ESO Store and Account System for maintenance – April 16, 8:00AM EDT (12:00 UTC) - 6:00PM EDT (22:00 UTC)

Making an Addon for Killing Innocents

FlopsyPrince
FlopsyPrince
✭✭✭✭✭
✭✭✭
Any idea how hard it would be to make an addon to show/toggle the state of "Killing Innocents" without having to go into the settings?

I do that frequently, and it gets reset because of an alt-syncing addon. I would love a little picture that could show, but even having a slash command would be nice. One is at esoui.com, but it says it is not usable.

I might code it myself, but I am not sure how to start that. Any pointers would be good!
PC
PS4/PS5
  • NeuroticPixels
    NeuroticPixels
    ✭✭✭✭✭
    It already exists.
    The addon is called Vampire’s Woe. Check it out.
    Check out the ReShade I made: Crispy Sharpness
  • Baertram
    Baertram
    ✭✭✭✭✭
    There existed an addon innocent attack toggle which just changed the innocent attack settings via a keybind, but somehow it's not on esoui anymore.
    Edited by Baertram on 10 July 2022 17:54
  • Necrotech_Master
    Necrotech_Master
    ✭✭✭✭✭
    ✭✭✭✭✭
    It already exists.
    The addon is called Vampire’s Woe. Check it out.

    this only partially would do what the OP is asking

    this can disable the blade of woe, but it wouldnt say stop you from using a light attack or some other skill on an NPC accidentally
    plays PC/NA
    handle @Necrotech_Master
    active player since april 2014
  • Baertram
    Baertram
    ✭✭✭✭✭
    I found the addon agan but it is not on www.esoui.com @FlopsyPrince
    CaptainBlagbird had written it, I've uploaded it to a dropbox for you:
    Innocent Attack Toggle

    I hope he is fine with that, not sure why it's not on ESOUI.com, maybe it was a small one just posted to some ESOUI forum thread. never released.
    Edited by Baertram on 21 July 2022 08:42
  • FlopsyPrince
    FlopsyPrince
    ✭✭✭✭✭
    ✭✭✭
    I loaded it, but I haven't tried it yet. How do you
    Baertram wrote: »
    I found the addon agan but it is not on www.esoui.com @FlopsyPrince
    CaptainBlagbird had written it, I've uploaded it to a dropbox for you:
    Innocent Attack Toggle

    I hope he is fine with that, not sure why it's not on ESOUI.com, maybe it was a small one just posted to some ESOUI forum thread. never released.

    Thanks, but I prefer to stick with things on esoui.

    The one mentioned above did not help either, since it seems to just control vampire blade of woe conflicts.
    PC
    PS4/PS5
  • NeuroticPixels
    NeuroticPixels
    ✭✭✭✭✭
    It already exists.
    The addon is called Vampire’s Woe. Check it out.

    this only partially would do what the OP is asking

    this can disable the blade of woe, but it wouldnt say stop you from using a light attack or some other skill on an NPC accidentally

    Yes it does. It got added within the last couple months. Read the addon’s description page and comment section.
    Check out the ReShade I made: Crispy Sharpness
  • NeuroticPixels
    NeuroticPixels
    ✭✭✭✭✭
    I loaded it, but I haven't tried it yet. How do you
    Baertram wrote: »
    I found the addon agan but it is not on www.esoui.com @FlopsyPrince
    CaptainBlagbird had written it, I've uploaded it to a dropbox for you:
    Innocent Attack Toggle

    I hope he is fine with that, not sure why it's not on ESOUI.com, maybe it was a small one just posted to some ESOUI forum thread. never released.

    Thanks, but I prefer to stick with things on esoui.

    The one mentioned above did not help either, since it seems to just control vampire blade of woe conflicts.

    It does do what you want. Read the description page. The addon by Phinix. You need to check the addon’s settings and set keybinds.

    https://www.esoui.com/downloads/info1375-VampiresWoe.html
    Check out the ReShade I made: Crispy Sharpness
  • FlopsyPrince
    FlopsyPrince
    ✭✭✭✭✭
    ✭✭✭
    I must have missed it.

    The tooltip was a bit confusing.
    PC
    PS4/PS5
  • Baertram
    Baertram
    ✭✭✭✭✭
    Thanks, but I prefer to stick with things on esoui.
    I think it was on ESOUI like other addons of CaptainBlagbird still are.
    And it's exactly what you have asked for...

    If you think it's harming:
    Just check the code, its a simple keybind changing the option for attack innocents.
    And chat ouput.
    That's all.


    Here is the small code of it, you should be able to see yourself:
    --[[
    
    Innocent Attack Toggle
    by CaptainBlagbird
    https://github.com/CaptainBlagbird
    
    --]]
    
    --Get the language
    local lang = GetCVar("language.2")
    local langArray = {
    	["en"] = "Toggle 'Prevent Attacking Innocents'",
    	["de"] = "Schalte 'Unschuldige verschonen' um",
    	["fr"] = "Toggle 'Prevent Attacking Innocents'",
    	["es"] = "Toggle 'Prevent Attacking Innocents'",
    	["ru"] = "Toggle 'Prevent Attacking Innocents'",
    	["it"] = "Toggle 'Prevent Attacking Innocents'",
    }
    local langFeedbackArray = {
        ["on"] = {
    		["en"] = "enabled",
    		["de"] = "Aktiviert",
    		["fr"] = "aktivé",
    		["es"] = "enabled",
    		["ru"] = "enabled",
    		["it"] = "enabled",
        },
        ["off"] = {
    		["en"] = "disabled",
    		["de"] = "Deaktiviert",
    		["fr"] = "désactivé",
    		["es"] = "disabled",
    		["ru"] = "disabled",
    		["it"] = "disabled",
        },
        ["chatOutput"] = {
    		["en"] = "Prevent attacking innocents: ",
    		["de"] = "Verhindere Attacken auf Unschuldige: ",
    		["fr"] = "Prévenir attaques contre innocents: ",
    		["es"] = "Prevent attacking innocents: ",
    		["ru"] = "Prevent attacking innocents: ",
    		["it"] = "Prevent attacking innocents: ",
        }
    }
    
    -- Binding string
    ZO_CreateStringId("SI_BINDING_NAME_INNOCENTATTACKTOGGLE", langArray[lang] or langArray["en"])
    SafeAddVersion("SI_BINDING_NAME_INNOCENTATTACKTOGGLE", 1)
    
    -- Function for binding
    function InnocentAttackToggle()
    	local setting = GetSetting(SETTING_TYPE_COMBAT, COMBAT_SETTING_PREVENT_ATTACKING_INNOCENTS)
    	if setting == "1" then setting = "0" else setting = "1" end
    	SetSetting(SETTING_TYPE_COMBAT, COMBAT_SETTING_PREVENT_ATTACKING_INNOCENTS, setting, 1)
    	local feedbackOn =  langFeedbackArray["on"][lang] or langFeedbackArray["on"]["en"]
        local feedbackOff = langFeedbackArray["off"][lang] or langFeedbackArray["off"]["en"]
        local chatOutput =  langFeedbackArray["chatOutput"][lang] or langFeedbackArray["chatOutput"]["en"]
    	local str = setting=="1" and "|c00FF00" .. feedbackOn .. "|r" or "|cFF0000" .. feedbackOff .. "|r"
    	d(chatOutput .. str)
    end
    

    If you do not trust me maybe someone else can download and check the code for you, but I'm trust worthy if it comes to addons (and in general :D ).

    btw: An addon uploaded to ESOUI is not checked in content so if I upload it there it would be the same as uploading it somehwere else. It's only scanned for virus and if it contains any executable, dll or similar files.
    Everythign else checked depends on time, will, addon know-how of the checking persons. So do not expect it to be checked by every single line. My info here is is more than ESOUI does on that :D
    Edited by Baertram on 22 July 2022 07:54
  • FlopsyPrince
    FlopsyPrince
    ✭✭✭✭✭
    ✭✭✭
    Baertram wrote: »
    Thanks, but I prefer to stick with things on esoui.
    I think it was on ESOUI like other addons of CaptainBlagbird still are.
    And it's exactly what you have asked for...

    If you think it's harming:
    Just check the code, its a simple keybind changing the option for attack innocents.
    And chat ouput.
    That's all.


    Here is the small code of it, you should be able to see yourself:
    --[[
    
    Innocent Attack Toggle
    by CaptainBlagbird
    https://github.com/CaptainBlagbird
    
    --]]
    
    --Get the language
    local lang = GetCVar("language.2")
    local langArray = {
    	["en"] = "Toggle 'Prevent Attacking Innocents'",
    	["de"] = "Schalte 'Unschuldige verschonen' um",
    	["fr"] = "Toggle 'Prevent Attacking Innocents'",
    	["es"] = "Toggle 'Prevent Attacking Innocents'",
    	["ru"] = "Toggle 'Prevent Attacking Innocents'",
    	["it"] = "Toggle 'Prevent Attacking Innocents'",
    }
    local langFeedbackArray = {
        ["on"] = {
    		["en"] = "enabled",
    		["de"] = "Aktiviert",
    		["fr"] = "aktivé",
    		["es"] = "enabled",
    		["ru"] = "enabled",
    		["it"] = "enabled",
        },
        ["off"] = {
    		["en"] = "disabled",
    		["de"] = "Deaktiviert",
    		["fr"] = "désactivé",
    		["es"] = "disabled",
    		["ru"] = "disabled",
    		["it"] = "disabled",
        },
        ["chatOutput"] = {
    		["en"] = "Prevent attacking innocents: ",
    		["de"] = "Verhindere Attacken auf Unschuldige: ",
    		["fr"] = "Prévenir attaques contre innocents: ",
    		["es"] = "Prevent attacking innocents: ",
    		["ru"] = "Prevent attacking innocents: ",
    		["it"] = "Prevent attacking innocents: ",
        }
    }
    
    -- Binding string
    ZO_CreateStringId("SI_BINDING_NAME_INNOCENTATTACKTOGGLE", langArray[lang] or langArray["en"])
    SafeAddVersion("SI_BINDING_NAME_INNOCENTATTACKTOGGLE", 1)
    
    -- Function for binding
    function InnocentAttackToggle()
    	local setting = GetSetting(SETTING_TYPE_COMBAT, COMBAT_SETTING_PREVENT_ATTACKING_INNOCENTS)
    	if setting == "1" then setting = "0" else setting = "1" end
    	SetSetting(SETTING_TYPE_COMBAT, COMBAT_SETTING_PREVENT_ATTACKING_INNOCENTS, setting, 1)
    	local feedbackOn =  langFeedbackArray["on"][lang] or langFeedbackArray["on"]["en"]
        local feedbackOff = langFeedbackArray["off"][lang] or langFeedbackArray["off"]["en"]
        local chatOutput =  langFeedbackArray["chatOutput"][lang] or langFeedbackArray["chatOutput"]["en"]
    	local str = setting=="1" and "|c00FF00" .. feedbackOn .. "|r" or "|cFF0000" .. feedbackOff .. "|r"
    	d(chatOutput .. str)
    end
    

    If you do not trust me maybe someone else can download and check the code for you, but I'm trust worthy if it comes to addons (and in general :D ).

    btw: An addon uploaded to ESOUI is not checked in content so if I upload it there it would be the same as uploading it somehwere else. It's only scanned for virus and if it contains any executable, dll or similar files.
    Everythign else checked depends on time, will, addon know-how of the checking persons. So do not expect it to be checked by every single line. My info here is is more than ESOUI does on that :D

    I don't distrust the code. I just want to handle it all with one tool.
    PC
    PS4/PS5
  • Baertram
    Baertram
    ✭✭✭✭✭
    Okay. As the addon is not uploaded at www.esoui.com it cannot be installed via Minion.

    The addon works as is and as long as the settings name won't change it will work for years and never needs any update.
    It provides what you've asked for, and only that (where other addons named above provide vampire stuff etc. you maybe never need).

    You may contact captainBlagbird at esoui, write him a PM and ask him to upload it to esoui.
    Or use the other addons which are on esoui but provide many more features you might never need, blowing up filesize, increasing loading times due to SavedVariables used (but not needed) etc.

Sign In or Register to comment.