Adding linkToNextStorylet to Readme and fixing a bug
This commit is contained in:
@ -208,7 +208,7 @@ StoryManager.weightedRandom = function(allStorylets, n) {
|
||||
// ---------------------------------------------------------------
|
||||
Macro.add("getStoryletLinks", {
|
||||
handler: function() {
|
||||
let n, tag;
|
||||
let n, tag, selection;
|
||||
[n=null, tag=null, selection="ordered"] = this.args;
|
||||
State.temporary.nextStorylets = StoryManager.getStorylets(n, tag, selection);
|
||||
$(this.output).wiki(`\
|
||||
@ -217,7 +217,7 @@ Macro.add("getStoryletLinks", {
|
||||
[[_storylet.description|_storylet.passage][$currentStorylet=_storylet]]<br>
|
||||
<</capture>> \
|
||||
<</for>> \
|
||||
`);
|
||||
`)
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user