Xbozon / storyteller

A small modification that allows you to present the story in the game as an open book.
Apache License 2.0
16 stars 9 forks source link

Feature request, not an issue #67

Open DPatters7 opened 8 months ago

DPatters7 commented 8 months ago

It would be great to be able to use this module and display specific pages to the users. Currently it always shows the most recent page that the user has seen, and they would have to use the corner navigation to turn the page to the new one I want to show them.

I'd like to have a storybook with many pages, but only show the relevant one at the time (and ideally turn off user navigation). Right now, I make 10+ storybooks and use the showStoryByID macro to pop up the one I want them to see. Maybe something like showStoryByID('story id', 'page number') could work -sorry not a programmer.

Love the mod, thanks for making it.

Xbozon commented 8 months ago

@DPatters7 Something must have broken over time. Previously, if you pressed the show story button, the same page that you currently have open was supposed to be shown.

For example, if you (as game master) open page 5, pressing the button should open page 5 for all players. Is it doesn't work?

DPatters7 commented 8 months ago

It may be a conflict with another addon perhaps, but in my testing it always displays the first pages to the user and they can use the corner navigation to turn the page, so if I open page 5 and hit 'show players' they see page 1 and 2. My workaround has been to use the button to generate a macro and make a set of 2 page books and use macros to pull up the one I want, so far that works fine, but it would be nice to use one storybook vs 10 for story elements.

Xbozon commented 8 months ago

I'll try to investigate. Can you send a screenshot of the mod list just in case?

DPatters7 commented 8 months ago

Sure, this is an image of the issue, I click to show pages 3/4 and the user sees pages 1/2. The active mod list is attached.

IssueImage modlist1 modlist2 modlist3
Xbozon commented 8 months ago

@DPatters7

Problem confirmed.

How it works now (badly): when you close the story, the last opened page is saved (for you as gm). If you open the story and click show button, all players will see this page (based on your save). However, after that the players already have the local value of the page and everything falls apart.

I will try to add a macro with the page this weekend, but the whole fix will take 1 to 3 weeks :(

DPatters7 commented 8 months ago

Thanks for looking into this, it really is a great module to mix up the pace of the story.

Xbozon commented 7 months ago

@DPatters7

Unfortunately the quick fix didn't work out, had to go the full route. I managed to implement the functionality of showing any page in v1.2.0, both from the "Show Story" button and through macros.

I would really appreciate it if you could check everything before I close the issue.

DPatters7 commented 7 months ago

@Xbozon I tested out the update with a GM session on one screen and a user session on another and it worked perfectly, but I did find one quirk.

If I have an even number of pages, the new macro works as expected as does the 'show player' button, but if I have an odd number of pages, it will show the previous two pages. So setting the macro to pages 2,4,6,8 works as expected, but if you set it to page 3, it will show 1&2, if I set it to 5 it shows 3&4.

Those are very minor issues, and the mod is great. Thank you for getting that fix in there, now I can consolidate my books down to fewer journal entries.