Implementing widget

This commit is contained in:
David Masad
2021-01-27 21:34:05 -05:00
parent 7a14ae671b
commit ca835cb3d7
4 changed files with 52 additions and 50 deletions

View File

@ -18,11 +18,7 @@ You can go to the [[Ballroom]] or the [[Library]].
<<set $location = "Ballroom">>
You're in the ballroom.<br>
<<set _possibleStories = window.NM.getNStorylets(3)>>
<<for _story range _possibleStories>>
<<capture _story>>
[[_story.description|_story.passage][$payload=_story.payload]]<br>
<</capture>>
<</for>>
<<ShowStorylets _possibleStories>>
Or you can go to the [[Library]]
@ -76,11 +72,8 @@ Fortunately, they reply with a rumor of their own -- one you haven't heard yet.
<<set $location = "Library">>
You're in the library.<br>
<<set _possibleStories = window.NM.getNStorylets(3)>>
<<for _story range _possibleStories>>
<<capture _story>>
[[_story.description|_story.passage][$payload=_story.payload]]<br>
<</capture>>
<</for>>
<<ShowStorylets _possibleStories>>
Or you can go to the [[Ballroom]]
:: ConversationRoot