How to set adventure in chat

PhantomBot Version: 3.1.2
OS Version: win10
Java Version: 11.0.4
Browser and Version (for Panel Support): n/a
Stock PhantomBot: Yes

Quick question. Is there a way for my viewers to choose the specific adventure? Any help would be appreciated! Thanks!!

The current system does not allow choosing a specific story

1 Like

I’m looking to add the same thing however using a command that only a mod can use.

The only thing I can find in the code is this in the JS

   do {
            story = $.randElement(temp);
        } while (story == lastStory && stories.length != 1);

Which chooses a random element in the array of stories I think? But I can’t find out how to specify the number via chat command unfortunately. Even manually editing randElement to be a number or temp to be a number seems to break the code.

EDIT: I have a rough working version now… I will post in the custom modules forum this week once I have tested it a bit more.


1 Like

Awesome. im not too savvy with code, but please let me know if you find a working solution.
It would be nice to have the command in chat read !adventure set story x
Thanks for your work