added first commands
This commit is contained in:
@@ -9,13 +9,13 @@ var keys;
|
|||||||
var allowNextDlg = true;
|
var allowNextDlg = true;
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
fetch("text_horror/dialogue.json")
|
fetch("text_horror/dialogue.json") //Load json file here
|
||||||
.then(Response => Response.json())
|
.then(Response => Response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
dlgFile = data;
|
dlgFile = data;
|
||||||
changeDlg("start");
|
changeDlg("start"); //Set "start" key from dialogue.json
|
||||||
skipDlg = true;
|
skipDlg = true; //Allow skipping to next dialogue
|
||||||
nextDlg(false);
|
nextDlg(false); //Skip to first
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user