Module:Ability

local p = {}

local abilitylist = { ['Revitalize'] = { idphrase = 'Revitalize', actiontype = 'Battle Action', keywords = 'Forced Movement, Healing', gravitas = '0', uselimit = 'None', attunement = 'None', blurb = "Harnessing the uplifting power of life itself, you mend a target's wounds.", effect = "Roll a platinum die, and restore that much vitality to a targeted ally within 5 hexes. If you expend a charge of Grace when you use this action, move the targeted ally up to three hexes along a path of your choosing.", specialname = 'None', specialeffect = "None", } }

function p.abilitybox(frame) local class = args[1] local abilityname = args[2] local data = require('Module:Ability/' .. abilitybox) ability = data.abilitylist[abilityname] local result = ' ' .. ability.type .. ' ' .. abilityname .. ' ▼ ' result = result .. ' ' .. ability.blurb .. ' Effect: ' .. ability.effect .. ' '  if ability.specialname ~= 'None' then result = result .. ' ' .. ability.specialname .. ': ' .. ability.specialeffect .. ' '  end result = result .. ' '  return result end return p