summaryrefslogtreecommitdiff
path: root/script.rpy
blob: c990dfbf067c90157756b70f3c97907a8a2544e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# The script of the game goes in this file.
define e = Character("SDK")

label start:
    scene black
    centered "Click to load game data"
    $ GAME_LOADER()

label loop:
    menu:
        "Quest editor":
            jump quest_editors
        "Quit":
            return

label restore:
    menu:
        "Save changes":
            python:
                f=open(get_path("editor.json"), "r")
                alltquests["Main"]=json.load(f)
                f.close()
                f=open(get_path("quests.json"), "w")
                json.dump(alltquests, f, indent=1, separators=(',', ': '))
                f.close()
            pass
        "Discard changes":
            pass
    jump loop