From f1860b04344e3ca9876cea6d84fb12b7e16321a6 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sat, 2 Nov 2019 20:34:15 -0500 Subject: [PATCH] Updated Scripts (markdown) --- Scripts.md | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/Scripts.md b/Scripts.md index 9fd3c71..a52db48 100644 --- a/Scripts.md +++ b/Scripts.md @@ -2,24 +2,18 @@ After the info section, you can have as many individual scripts in your file as Here is an example of a script file 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" }, - "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 + { + "type": "deleteFile", + "file": "sdmc:/LeafEdit.3dsx", + "message": "Deleting LeafEdit.3dsx" + } +] +``` +Note that scripts are json arrays and thus are a name followed by **square brackets** with the functions inside surrounded by **curly brackets** \ No newline at end of file