Module:Imahero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "local p = {} --p stands for package function p.hello( frame ) return "Hello, world!" end return p")
 
No edit summary
Line 1: Line 1:
local p = {} --p stands for package
local p = {} --p stands for package


function p.hello( frame )
function p.hello(frame, name)
     return "Hello, world!"
     return "Hello " .. name .. "!"  
end
end


return p
return p

Revision as of 20:56, 2 December 2023

See usage on user:imahero/test.


local p = {} --p stands for package

function p.hello(frame, name)
    return "Hello " .. name .. "!" 
end

return p