I just discovered Perchance this morning while looking for some options to consolidate and “oracle-ize” some pen-an-paper game tables from Ganesha games. I’m a retired and somewhat lazy software developer who figured there should be a way to accomplish this without reinventing the wheel, and Perchance seems to fit the bill well. One initial question - the example generator html files seem to have a single call to “update” when the button is clicked. Can a generator respond to multiple button messages? For example if I wanted to include two unrelated tables in a single generator file ? I have about 15 tables for one game, and would like to be able to have buttons for each table, plus a read-only scrolling text area that contains the output from each click, like a journal.

  • cwiggins999@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    27 days ago

    Excellent - thanks! Each environment seems to have nuances, but I should have tried this google approach - glad to see it is well indexed. The history examples are perfect.

    I looked at the DYI API also - can it handle a parameter for choosing a particular output, as in the multiple-independent-outputs-example? Like the individual buttons do, using “update(out1)”, “update(out2)”, etc.? I’m thinking of invoking this in Tabletop Simulator’s ingame tablet, and it has an earlier version of chromium that doesn’t look like it supports the generator URLs directly, so might use an API versus trying to transpile.