User:Hierok/Template
Jump to navigation
Jump to search
Traits and Effects
local traits = {
-- The Hide (Beorning, Blue trait tree) ["Guarded Attack"] = { tree = "blue", -- Blue trait tree effects = { { id = Be01.01, description = "Skills Earned: Guarded Attack" }, }, ["Animalistic"] = { tree = "blue", -- Blue trait tree effects = { { id = Be02.01, description = "The trait Animalistic causes Hearten to be used in any form." }, { id = Be02.02, description = "The trait Animalistic causes Composure to be used in any form." }, }, ["Worthy Adversary"] = { tree = "blue", -- Blue trait tree effects = { { id = Be03.01, description = "The trait Worthy Adversary causes Bear-form to gain +30% Armour and +20% " }, }, }
}
return traits
Skills
local skills = {
["Hearten"] = { effects = { Be02.01 } },
["Composure"] = { effects = { Be02.02 } },
}
return skills
local p = {}
-- List all traits for Lore-master function p.listTraitsByClass(frame)
local class = frame.args[1] -- Class argument, e.g., "lore-master" local class_traits = traits[class] if not class_traits then return "Class not found." end local result = {} for trait, data in pairs(class_traits) do table.insert(result, string.format("%s (%s trait tree):", trait, data.tree)) for _, effect in ipairs(data.effects) do table.insert(result, string.format(" %d. %s", effect.id, effect.description)) end end return table.concat(result, "
")
end
return p
Script error: No such module "TraitsEngine".