bdd-creature/view.lua

32 lines
1.2 KiB
Lua
Raw Permalink Normal View History

2024-08-06 21:00:05 +02:00
require "libs"
local config = require "config"
local BeastFile = require "classes.beastfile"
local beast = BeastFile("data", arg[1] .. ".beast", tonumber(arg[2]))
local creature = beast:getRawData()
2024-08-06 21:12:28 +02:00
print(creature.name, "Lvl:" .. creature.level, "Pression:" .. creature.pression, creature["type"], creature.categorie)
2024-08-06 21:00:05 +02:00
print(" ", "------")
2024-08-06 21:12:28 +02:00
print("FOR:" .. creature.stats["for"], "INT:" .. creature.stats.int, "CHA:" .. creature.stats.cha)
print("CON:" .. creature.stats.con, "SAG:" .. creature.stats.sag, "DIS:" .. creature.stats.dis)
print("HAB:" .. creature.stats.hab, "VOL:" .. creature.stats.vol, "REL:" .. creature.stats.rel)
print(" ", "PER:" .. creature.stats.per)
2024-08-06 21:00:05 +02:00
print(" ", "------")
2024-08-06 22:25:19 +02:00
print("PV:" .. creature.vita.pv, "PE:" .. creature.vita.pe, "Eclat:" .. creature.vita.eclat)
2024-08-06 21:12:28 +02:00
print("Armure", "Phy:" .. creature.armure.phy, "Psy:" .. creature.armure.psy, "Spe:" .. creature.armure.spe)
2024-08-06 21:00:05 +02:00
print(" ", "------")
print("Armes:")
for key, value in ipairs(creature.armes) do
print(value.nom, value.force)
2024-08-06 21:00:05 +02:00
end
print(" ", "------")
print("Competences:")
for key, value in ipairs(creature.competence) do
print(value.name, value.value)
end
print(" ", "------")
print("Skills:")
for key, value in ipairs(creature.skill) do
print(value[1], value[2])
end