User talk:Kevan/Gamedata

From BlogNomic Wiki
Revision as of 09:21, 21 September 2018 by Kevan (talk | contribs)
Jump to navigation Jump to search

Noting API URL: https://wiki.blognomic.com/api.php?action=query&prop=revisions&titles=API%7CUser:Kevan/Gamedata&rvprop=timestamp%7Cuser%7Ccomment%7Ccontent&rvslots=main&formatversion=2&format=xml


so the GNDT would remain for die rolling I suppose. I think this might be something to try out. Editing a wikipage with formatting like this might not be to everyone's taste though. Card (talk) 16:17, 11 September 2018 (UTC)

Die-rolling's a good point. I was just wondering if it was possible to make a sidebar box that looks much the same as the current GNDT (neat table of stats, most recent edit timestamped and explained beneath) but where the updates are all handled on the wiki. I haven't tried coding a box for it yet, I'll make a post for a proper discussion if it looks like it might have legs. --Kevan (talk) 16:59, 11 September 2018 (UTC)

As an example of what I mean by "I guess you’d need to have it also check the surrounding numbers if you wanted it to work in one edit for rules that add DICEX to a specific column.", putting a bunch of "@@d6" in a column with a number that is already there would log the results of the dice, add or subtract the results and not require one to edit the wikipage twice. Card (talk) 01:08, 21 September 2018 (UTC)

This would also need some markup to (as I understand the Dice extension linked to in the blog post) tell the dice bot to add and subtract numbers. Which could be done - if I'm adding d6 to a value of 7, I replace "7" with "7+@@d6" in my wiki edit, and the bot replaces that with, say, "11".
Adding die rolls straight into the table is quite rare, though, I think. In practice we'd probably want some kind of "dice tray" on the page, probably with the sidebar script omitting it - if I'm taking a Hunt action, I add "@@dice4 @@dice4" to the dice tray section, reload the page to see what I got, and then update the table, removing the dice from the tray. --Kevan (talk) 09:21, 21 September 2018 (UTC)