Module:Sandbox/FalterTest: Difference between revisions

From Melvor Idle
(More lua testing)
(Blanked the page)
Tag: Blanking
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
local p = {}


local Constants = mw.loadData('Module:Constants/data')
local MonsterData = mw.loadData('Module:Monsters/data')
function p.getMonsterStat(frame)
  local MonsterName = frame.args[1]
  local StatName = frame.args[2]
  local result = 'No monster found with that name'
  for key, value in pairs(MonsterData) do
    if(value.name == MonsterName) then
      --mw.logObject(value)
      mw.log(StatName)
      result = value[StatName]
    end
  end
  return result
end
return p

Latest revision as of 22:26, 29 June 2024

Documentation for this module may be created at Module:Sandbox/FalterTest/doc