Editing Module:ItemTables
Revision as of 06:23, 20 September 2024 by Sylphoid (talk | contribs) (Created page with "local p = {}; local data = mw.loadJsonData("Data:ItemData.json") -- returns the table of a specific item function get_json_item(name) for i,v in pairs(data) do if (v["Name"] == name) then return v end end return nil end --{{#invoke:Sandbox/Sylphoid|get_prop|ITEM_NAME|PROPERTY}}-- --check Data:ItemData.json for properties p.get_prop = function(frame) local item_name = frame.args[1] local property = frame.args[2] local item = get_json_item(item_name) if(ite...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
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.
Retrieved from "https://deadlocked.wiki/Module:ItemTables"