Mass Effect Wiki
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Mass Effect: Andromeda
Super Walkthrough
Pathfinder Ryder
Augmentations
Mods
Research
Development
Narrative Actions
Profiles
Romance
Gameplay
Armor
Combat
Missions
Resources
Skills
Weapons
Multiplayer
APEX HQ
APEX Missions
Boosters
Equipment
Strike Teams
Media
Mass Effect Andromeda: Initiation
Mass Effect Andromeda: Nexus Uprising
Mass Effect Andromeda: Annihilation
Original Soundtrack
Mass Effect: Discovery
Original Trilogy
Guides
Mass Effect Guide
Mass Effect 2 Guide
Mass Effect 3 Guide
Commander Shepard
Interrupt
Interrupt (Mass Effect 3)
Morality
Reputation
Research
Romance
Gameplay
Adversaries
Missions
Assignments
Weapons
Talents
Powers
Equipment
Achievements
Multiplayer
Characters
Customization
Equipment
Gear
Maps
Challenges
Media
Books
Comics
Original Soundtrack
Films
N7 HQ
Apps
Universe
Databases
Codex
Codex (Mass Effect: Andromeda)
Alliance News Network
Cerberus Daily News
Heleus News Service
News Stories
Characters
Mass Effect Characters
Mass Effect 2 Characters
Mass Effect 3 Characters
Mass Effect: Andromeda Characters
Squad
Races
Timeline
Milky Way
Attican Traverse
Earth Systems Alliance Space
Inner Council Space
Outer Council Space
Terminus Systems
Andromeda
Heleus Cluster
Eos
Aya
Voeld
Havarl
Kadara
H-047c
Elaaden
Storyline
Storyline II
Storyline III
Storyline IV
Community
Manual of Style
Community Guidelines
Files Guideline
Chat Policy
Information Sourcing
Manual of Style
Administrators
Chat
Forums
Projects Forum
Policy Forum
Community Forum
Watercooler Forum (legacy)
Help Desk Forum (legacy)
Recent Blog Posts
Sandbox
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Mass Effect Wiki
4,261
pages
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Mass Effect: Andromeda
Super Walkthrough
Pathfinder Ryder
Augmentations
Mods
Research
Development
Narrative Actions
Profiles
Romance
Gameplay
Armor
Combat
Missions
Resources
Skills
Weapons
Multiplayer
APEX HQ
APEX Missions
Boosters
Equipment
Strike Teams
Media
Mass Effect Andromeda: Initiation
Mass Effect Andromeda: Nexus Uprising
Mass Effect Andromeda: Annihilation
Original Soundtrack
Mass Effect: Discovery
Original Trilogy
Guides
Mass Effect Guide
Mass Effect 2 Guide
Mass Effect 3 Guide
Commander Shepard
Interrupt
Interrupt (Mass Effect 3)
Morality
Reputation
Research
Romance
Gameplay
Adversaries
Missions
Assignments
Weapons
Talents
Powers
Equipment
Achievements
Multiplayer
Characters
Customization
Equipment
Gear
Maps
Challenges
Media
Books
Comics
Original Soundtrack
Films
N7 HQ
Apps
Universe
Databases
Codex
Codex (Mass Effect: Andromeda)
Alliance News Network
Cerberus Daily News
Heleus News Service
News Stories
Characters
Mass Effect Characters
Mass Effect 2 Characters
Mass Effect 3 Characters
Mass Effect: Andromeda Characters
Squad
Races
Timeline
Milky Way
Attican Traverse
Earth Systems Alliance Space
Inner Council Space
Outer Council Space
Terminus Systems
Andromeda
Heleus Cluster
Eos
Aya
Voeld
Havarl
Kadara
H-047c
Elaaden
Storyline
Storyline II
Storyline III
Storyline IV
Community
Manual of Style
Community Guidelines
Files Guideline
Chat Policy
Information Sourcing
Manual of Style
Administrators
Chat
Forums
Projects Forum
Policy Forum
Community Forum
Watercooler Forum (legacy)
Help Desk Forum (legacy)
Recent Blog Posts
Sandbox
Editing
Module:Enemies
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:Enemies
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local function isEmpty(s) return s == nil or s == '' or s == "None" end -- ======================================== -- Function outputs the lifebar of an enemy -- ======================================== -- Output ME enemy lifebar local function lifebar_ME(param) local s = "" local shields = 0 if not isEmpty(param.args['shields']) then shields = tonumber(param.args['shields']) end if shields > 0 then for i=1,shields,1 do s = s .. "[[File:ME-Enemy Container-S.png|link=]]" end end local result = "[[File:ME-Enemy Container-H.png|link=]]" .. s return result end -- Output ME2 enemy lifebar local function lifebar_ME2(param) -- ME2 lifebar combos: -- Health, Health + Armor + Barrier, Health + Armor + Shields, Health + Barrier, Health + Shields, or -- Armor, Armor + Barrier, Armor + Shields or -- Barrier or Shields local list = { ["h"] = "[[File:Enemy_Container-H.png|alt=Health|link=]]", ["ha"] = "[[File:Enemy_Container-AH.png|alt=Health & armor|link=]]", ["has"] = "[[File:Enemy_Container-SAH.png|alt=Health, armor & shields|link=]]", ["hab"] = "[[File:Enemy_Container-BAH.png|alt=Health, armor & barriers|link=]]", ["hb"] = "[[File:Enemy_Container-BH.png|alt=Health & barriers|link=]]", ["hs"] = "[[File:Enemy_Container-SH.png|alt=Health & shields|link=]]", ["a"] = "[[File:Enemy_Container-A.png|alt=Armor|link=]]", ["ab"] = "[[File:Enemy_Container-BA.png|alt=Armor & barriers|link=]]", ["as"] = "[[File:Enemy_Container-SA.png|alt=Armor & shields|link=]]", ["b"] = "[[File:Enemy_Container-B.png|alt=Barriers|link=]]", ["s"] = "[[File:Enemy_Container-S.png|alt=Shields|link=]]", } local life = param.args local combo = ""; if not isEmpty(life['health']) then if not isEmpty(life['armor']) then if not isEmpty(life['shields']) then combo = "has" elseif not isEmpty(life['barrier']) then combo = "hab" else combo = "ha" end else if not isEmpty(life['shields']) then combo = "hs" elseif not isEmpty(life['barrier']) then combo = "hb" else combo = "h" end end elseif not isEmpty(life['armor']) then if not isEmpty(life['shields']) then combo = "as" elseif not isEmpty(life['barrier']) then combo = "ab" else combo = "a" end else if not isEmpty(life['shields']) then combo = "s" elseif not isEmpty(life['barrier']) then combo = "b" else combo = "" end end return list[combo] end -- Output ME3 enemy lifebar local function lifebar_ME3(param) -- ME3 lifebar combos: -- Health, Health + Barrier, Health + Shields, or -- Armor, Armor + Barrier, Armor + Shields or -- Barrier or Shields local list = { ["h"] = "[[File:ME3_Enemy-H.png|alt=Health|link=]]", ["hb"] = "[[File:ME3_Enemy-BH.gif|alt=Health & barrier|link=]]", ["hs"] = "[[File:ME3_Enemy-SH.gif|alt=Health & shields|link=]]", ["a"] = "[[File:ME3_Enemy-A.png|alt=Armor|link=]]", ["ab"] = "[[File:ME3_Enemy-BA.gif|alt=Armor & barrier|link=]]", ["as"] = "[[File:ME3_Enemy-SA.gif|alt=Armor & shields|link=]]", ["b"] = "[[File:ME3_Enemy-B.png|alt=Barrier|link=]]", ["s"] = "[[File:ME3_Enemy-S.png|alt=Shields|link=]]", } local life = param.args local combo = ""; if not isEmpty(life['health']) then if not isEmpty(life['shields']) then combo = "hs" elseif not isEmpty(life['barrier']) then combo = "hb" else combo = "h" end elseif not isEmpty(life['armor']) then if not isEmpty(life['shields']) then combo = "as" elseif not isEmpty(life['barrier']) then combo = "ab" else combo = "a" end else if not isEmpty(life['shields']) then combo = "s" elseif not isEmpty(life['barrier']) then combo = "b" else combo = "" end end return list[combo] end -- Output ME: Andromeda enemy lifebar local function lifebar_Andromeda(param) -- ME: Andromeda lifebar combos: -- Health, Health + Shields. Boss indicated with skull icon. -- Armor, Armor + Shields. Boss indicated with skull icon. -- Eiroch, Architech's Conduit, Mutated/Ancient Eiroch and The Cardinal has their own distinct life bar. local list = { ["h"] = "[[File:MEA-Enemy-H.svg|alt=Health|link=]]", ["h2"] = "[[File:MEA-Enemy-H2.svg|alt=Health type 2|link=]]", ["hs"] = "[[File:MEA-Enemy-HS.svg|alt=Health & shields|link=]]", ["h-boss"] = "[[File:MEA-Enemy-H-boss.svg|alt=Health boss|link=]]", ["hs-boss"] = "[[File:MEA-Enemy-HS-boss.svg|alt=Health & shields boss|link=]]", ["a"] = "[[File:MEA-Enemy-A.svg|alt=Armor|link=]]", ["a2"] = "[[File:MEA-Enemy-A2.svg|alt=Armor type 2|link=]]", ["as"] = "[[File:MEA-Enemy-AS.svg|alt=Armor & shields|link=]]", ["a-boss"] = "[[File:MEA-Enemy-A-boss.svg|alt=Armor boss|link=]]", ["as-boss"] = "[[File:MEA-Enemy-AS-boss.svg|alt=Armor & shields boss|link=]]", ["cardinal"] = "[[File:MEA-Enemy-H-boss-Cardinal.svg|alt=The Cardinal lifebar|link=]]", ["specialeiroch"] = "[[File:MEA-Enemy-A-boss-SpecialEiroch.svg|alt=Mutated/Ancient Eiroch lifebar|link=]]", } local life = param.args local boss = string.lower(life['boss']) local bar = ""; if (boss == "architect") then bar = "h2" elseif (boss == "calot") then bar = "h-boss" elseif (boss == "archon's sword") then bar = "hs-boss" elseif (boss == "eiroch") then bar = "a2" elseif (boss == "behemoth") then bar = "a-boss" elseif (boss == "blaze hydra") then bar = "a-boss" elseif (boss == "progenitor") then bar = "as-boss" elseif (boss == "the cardinal") then bar = "cardinal" elseif (boss == "ancient eiroch" or boss == "mutated eiroch") then bar = "specialeiroch" else if not isEmpty(life['health']) then if not isEmpty(life['shields']) then bar = "hs" else bar = "h" end elseif not isEmpty(life['armor']) then if not isEmpty(life['shields']) then bar = "as" else bar = "a" end end end return list[bar] end -- Outputs lifebar function p.lifebar(param) local game = param.args['game'] local result if game == "me" then result = lifebar_ME(param) end if game == "me2" then result = lifebar_ME2(param) end if game == "me3" then result = lifebar_ME3(param) end if game == "andromeda" then result = lifebar_Andromeda(param) end return result end -- ======================================= -- Function outputs the powers of an enemy -- ======================================= function p.powers(param) local args = mw.text.split(param.args[1], "%s*,%s*") local result = ""; local game = param.args['game'] for i, name in ipairs(args) do result = result .. "{{PowerDetails|game=" .. game .. "|" .. name .. "}}<br>" end return param:preprocess("{{PowerDetails|game=me3|Nova}}{{PowerDetails|game=me3|Barrier}}{{PowerDetails|game=me3|Warp}}{{PowerDetails|game=me3|Charge}}{{PowerDetails|game=me3|Impale}}") end return p
Summary:
Please note that all contributions to the Mass Effect Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Enemies/doc
(
edit
)
Follow on IG
TikTok
Join Fan Lab