EvenLess wrote: ↑Fri Aug 25, 2023 3:54 pm
...
While at it, I extracted all the flags into a nice and searchable CSV. Viewable as a
[Link].
And using that CSV, I've made a script to extract all the ones that are set on the character.
The default file paths, are the same folder as the Cheat Table was opened from. Change to fit your situation.
The scripts take a moment to run. There are 25808 (known) flags to go through
Checking the player's flags.
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
local csvFile = 'AllFlags.csv'
local file = io.output('AllFlagsOnPlayer.csv')
io.write('"UUID";"Name";"Description"\n')
for line in io.lines(csvFile) do
-- "UUID";"Name";"Description";"FileUUID";"FilePath"
local uuid,name,description,fileuuid,filepath = string.match(line, '^"([^"]+)";"([^"]+)";"([^"]+)";"([^"]+)";"([^"]+)"')
if fileuuid ~= nil and string.match(fileuuid, '^[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]') then
local gotFlag = GetFlagOnPlayer(fileuuid)
if gotFlag ~= nil and gotFlag ~= 0 then
io.write(string.format('"%s";"%s";"%s"\n', tostring(fileuuid), tostring(name), tostring(description)))
end
end
end
io.close(file)
{$asm}
[DISABLE]
Checking Wyll's flags is basically the same as checking the player's, with the difference being that is uses
GetFlag()
specifying the UUID of the target, rather than just using the
GetFlagOnPlayer()
. You can see the UUIDs in my previous post (the one quoted here).
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
targetUUID = 'c774d764-4a17-48dc-b470-32ace9ce447d'
local csvFile = 'AllFlags.csv'
local file = io.output('AllFlagsOnWyll.csv')
io.write('"UUID";"Name";"Description"\n')
for line in io.lines(csvFile) do
-- "UUID";"Name";"Description";"FileUUID";"FilePath"
local uuid,name,description,fileuuid,filepath = string.match(line, '^"([^"]+)";"([^"]+)";"([^"]+)";"([^"]+)";"([^"]+)"')
if fileuuid ~= nil and string.match(fileuuid, '^[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]') then
local gotFlag = GetFlag(fileuuid, targetUUID)
if gotFlag ~= nil and gotFlag ~= 0 then
io.write(string.format('"%s";"%s";"%s"\n', tostring(fileuuid), tostring(name), tostring(description)))
end
end
end
io.close(file)
{$asm}
nop
[DISABLE]