Profile
- Name
- Remove all notes V3
- ID
- 103590
- Shared with
- Public
- Parent
- Remove all notes V1
- Children
- None
- Created on
- June 14, 2020 at 19:45 PM UTC
- Updated on
- June 14, 2020 at 19:45 PM UTC
- Description
This simply delete all notes on a protein.
V3 removes the dialog from V2 in favor of a system to designate notes to keep. Simply adding <ND> (All uppercase, arrows are part of the string) to a note will cause the recipe to not delete the note.
Best for
Code
function main()
local note
for i=1, structure.GetCount() do
if not string.find(structure.GetNote(i), "<ND>") then
structure.SetNote(i, "")
end
end
end
function errorHandler(err)
if not string.find(err, "Cancelled") then
print(err)
end
return err
end
--main()
success, err = xpcall(main, errorHandler)