From 7f81628d4056c90e74773d91d47d502e8ac47bb8 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sat, 2 Nov 2019 20:11:03 -0500 Subject: [PATCH] Created Scripts (markdown) --- Scripts.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Scripts.md 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