Profile
- Name
- Remove all notes V2
- ID
- 103523
- Shared with
- Public
- Parent
- Remove all notes V1
- Children
- None
- Created on
- June 14, 2020 at 19:16 PM UTC
- Updated on
- June 14, 2020 at 19:16 PM UTC
- Description
A very simple script that just deletes all notes on the protein.
V2 adds a dialog box to double check that the player wishes to delete all notes.
Best for
Code
confirm = dialog.CreateDialog("")
confirm.text = dialog.AddLabel("Delete all Notes?")
confirm.yes = dialog.AddButton("Yes", 1)
confirm.no = dialog.AddButton("No", 0)
if dialog.Show(confirm) > 0 then
for i=1, structure.GetCount() do
structure.SetNote(i, "")
end
end