Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[Twine 2+Harlowe 1.2.2] Is there a way to let readers search the text from all passages ?

The expectation is, once the given string (can be one or more words) is totally contained in any of the passages, list all the passages as links and let readers choose to quickly view details.

Right now I just have a prompt macro to accept the text from readers and then have it stored as below:
(set: $search to (prompt: "Please provide any key words you're looking for:"))

I can see 2 troubles here:
1. search and match $search in the story scope (i.e. all passages)
2. if #1 returns true, display all the passage names which contain $search

Unfortunately, I've no idea with both so currently have to just use goto $search to run if that exactly matches an existing passage.
Any helps or suggestions on this please ?
Sign In or Register to comment.