Skip to content
Snippets Groups Projects
Commit 0b900327 authored by Arkerthan's avatar Arkerthan
Browse files

Use domPassage for JS Random events

parent 052d1c78
No related branches found
No related tags found
No related merge requests found
...@@ -43,4 +43,16 @@ new App.DomPassage("Murder Attempt", () => { ...@@ -43,4 +43,16 @@ new App.DomPassage("Murder Attempt", () => {
return App.Events.murderAttempt(); return App.Events.murderAttempt();
} }
} }
); );
\ No newline at end of file
/* ### Random Events ### */
new App.DomPassage("JS Random Event",
() => {
V.nextButton = "Continue";
const f = document.createDocumentFragment();
V.event.execute(f);
return f;
}
);
:: JS Random Event [nobr]
<<set $nextButton = "Continue">>
<<run html5passage(n => $event.execute(n))>>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment