Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-19
View File
@@ -1,19 +0,0 @@
package.path = package.path .. ";luajson/?.lua"
local JSON = require"json"
local path_in = "/home/morr/Téléchargements/fvtt-RollTable-you-find-yourself-in-a-tavern-what-happens-next_.json"
local f1 = io.open(path_in, "r")
local strjson = f1:read("*a")
f1:close()
local tabData = JSON.decode(strjson)
local results = {}
for idx, res in pairs(tabData.results) do
results[res.range[1].."-"..res.range[2]] = res.text
end
local entries = JSON.encode(results)
print()
print()
print(entries)