diff --git a/Scripts.md b/Scripts.md new file mode 100644 index 0000000..0bbce05 --- /dev/null +++ b/Scripts.md @@ -0,0 +1,25 @@ +After the info section, you can have as many individual scripts in your file as you want. These need a name and all of the functions you want to run in the script, you can find info on all the functions you can use in the `Functions` section of the sidebar. + +Here is an example of a script that will download a file and then delete it +```json +{ + "info": { + "title": "Download & Delete", + "description": "Download a file and then delete it", + "version": "1" + }, + "Download & Delete": [ + { + "type": "downloadFile", + "file": "https://github.com/Universal-Team/extras/raw/master/builds/LeafEdit/LeafEdit.3dsx", + "output": "sdmc:/LeafEdit.3dsx", + "message": "Downloading LeafEdit.3dsx" + }, + { + "type": "deleteFile", + "file": "sdmc:/LeafEdit.3dsx", + "message": "Deleting LeafEdit.3dsx" + } + ] +} +``` \ No newline at end of file