Difference between revisions of "User talk:Kevan/Gamedata"

From BlogNomic Wiki
Jump to navigation Jump to search
 
Line 9: Line 9:
 
:This would also need some markup to (as I understand the Dice extension linked to in the [https://blognomic.com/archive/replacing_the_gndt_with_a_wiki_page#comments 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".
 
:This would also need some markup to (as I understand the Dice extension linked to in the [https://blognomic.com/archive/replacing_the_gndt_with_a_wiki_page#comments 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 decrement by LA and write "@@d4 @@d4" in the dice tray section, reload the page to see what I got, and then update my Food score, removing the dice from the tray. --[[User:Kevan|Kevan]] ([[User talk:Kevan|talk]]) 09:21, 21 September 2018 (UTC)
 
: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 decrement by LA and write "@@d4 @@d4" in the dice tray section, reload the page to see what I got, and then update my Food score, removing the dice from the tray. --[[User:Kevan|Kevan]] ([[User talk:Kevan|talk]]) 09:21, 21 September 2018 (UTC)
 +
 +
As I see it the Hunt action does add directly to the column. In your scenario you'd decrement LA by 2, write "7-2+@@d4+@@d4", or "7+@@d4+@@d4" if we have Weaponry, in the column, "Save page" and you're done. I'm not saying the dice tray shouldn't happen, since we do plenty of things that don't add or subtract numbers from a column with dice; however as I understand it the extension replaces the markup with the result which is quite different than seeing the result in the GNDT comments. [[User:Card|Card]] ([[User talk:Card|talk]]) 15:46, 21 September 2018 (UTC)

Latest revision as of 15:46, 21 September 2018

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 decrement by LA and write "@@d4 @@d4" in the dice tray section, reload the page to see what I got, and then update my Food score, removing the dice from the tray. --Kevan (talk) 09:21, 21 September 2018 (UTC)

As I see it the Hunt action does add directly to the column. In your scenario you'd decrement LA by 2, write "7-2+@@d4+@@d4", or "7+@@d4+@@d4" if we have Weaponry, in the column, "Save page" and you're done. I'm not saying the dice tray shouldn't happen, since we do plenty of things that don't add or subtract numbers from a column with dice; however as I understand it the extension replaces the markup with the result which is quite different than seeing the result in the GNDT comments. Card (talk) 15:46, 21 September 2018 (UTC)