PDA

View Full Version : CoreRPG based: On Demand Manual Dice (DM only)



celestian
May 10th, 2018, 05:50
This extension should work with any CoreRPG based ruleset. It should NOT be used with AD&D Core as it's included in the ruleset already.

The extension allows you to control-click-dice or control-drag dice and it will popup the "Manual dice" roller window for quick manual dice roll.

This means you don't have to toggle manual dice roller using the campaign setting (for everyone). If you've made the encounter to hard from the intended goal or the party is having to easy a time of it. You can now adapt on demand.

Version 1.0: initial release.
Version 2.0: roll "shadow" dice to players and ignore result (use manual settings).
Version 2.1: clean up for 3.3.7 updates
Version 2.2: bugfix for /story entries.
Version 2.3: reverted /story fix.

Download here:

seycyrus
May 11th, 2018, 01:11
Thanks Celestian! Two questions/comments.

1) Can you make it so that you cannot enter a dice value larger than the type of dice rolled? Fat fingers makes it possible to "input 23" into a d6 roll.

2) I tested this by logging on as localhost. When I do, I get a message "extension (custom dice results) loaded. Is there a way to remove this message for the players?

celestian
May 11th, 2018, 02:52
Thanks Celestian! Two questions/comments.

1) Can you make it so that you cannot enter a dice value larger than the type of dice rolled? Fat fingers makes it possible to "input 23" into a d6 roll.


This extension just loads the Manual Dice window built into CoreRPG.



2) I tested this by logging on as localhost. When I do, I get a message "extension (custom dice results) loaded. Is there a way to remove this message for the players?

Not sure what you mean. I do not see any message like that.

https://i.imgur.com/mzXv5Yu.png

seycyrus
May 11th, 2018, 04:21
Yes, I'm being dumb, my apologies. I confused it another extension. But now i see that I'm not seeing your extension at all. I'm using the Gurps Ruleset, which is based on Core.

Edit: I'm double, (or is it triple) today! Apologies again. I see it now.

celestian
May 11th, 2018, 04:25
Yes, I'm being dumb, my apologies. I confused it another extension. But now i see that I'm not seeing your extension at all. I'm using the Gurps Ruleset, which is based on Core.


I'm pretty sure GURPS is not loading CoreRPG.

seycyrus
May 11th, 2018, 04:35
I'm pretty sure GURPS is not loading CoreRPG.

I edited my last post without seeing your reply. I can see the extension now, thank you.

Btw, the newest Gurps ruleset is, "GURPS 4E Core Ruleset".

MTS
May 17th, 2018, 18:22
This extension is showing up on the client side. The clients have the option "Dice: Manual entry" - and they can turn it on even if the DM sets the client option to Off.

The only good thing about the player having it, is that if the player manually controls the outcome of the roll, the message [MANUAL ROLL] shows up for everyone. But can it be completely hidden from the player? Turning it "off" for clients in the DM options does not prevent a player from reactivating it in their own Options.

Trenloe
May 17th, 2018, 18:26
This extension is showing up on the client side. The clients have the option "Dice: Manual entry" - and they can turn it on even if the DM sets the client option to Off.

The only good thing about this is that if the player adds the number to the dice roller manually, the message [MANUAL ROLL] shows up for everyone. But can it be completely hidden from the player?
None of this is the extension - this is standard CoreRPG based ruleset functionality.

celestian
May 17th, 2018, 18:27
This extension is showing up on the client side. The clients have the option "Dice: Manual entry" - and they can turn it on even if the DM sets the client option to Off.

The only good thing about this is that if the player adds the number to the dice roller manually, the message [MANUAL ROLL] shows up for everyone. But can it be completely hidden from the player?

You're going to have to explain this to me. When I join a game as a client I don't have the option to "apply" extensions.

Edit:
Based on what Trenlow is saying I think I know where the confusion is. This extension simply allows the DM to "on demand" load the "built in Manual Dice Roller". Otherwise the manual dice roller that is built in has to be either ALL ON or ALL OFF.

Trenloe
May 17th, 2018, 18:42
The campaign option Dice: Manual Entry is a local setting. Players can turn it on or off for their rolls, independent of the GM.

MTS
May 17th, 2018, 18:42
So I've turned off the "client" in the DM screen. However, the player can go into their options and turn it "on" and use it from there. If the extension is loaded, the client sees the option to turn it on.

Trenloe
May 17th, 2018, 18:43
If the extension is loaded, the client sees the option to turn it on.
This is standard FG functionality. The extensions doesn't change it.

celestian
May 17th, 2018, 18:47
So I've turned off the "client" in the DM screen. However, the player can go into their options and turn it "on" and use it from there. If the extension is loaded, the client sees the option to turn it on.

You're confusing the built in functionality of CoreRPG's "Manual Roll" with this extension.

If you REMOVE this extension the Manual Roll campaign setting will still be there.

This extension ONLY allows you to use the manual roll on demand, w/o having to go into campaign settings and enable it.

MTS
May 17th, 2018, 19:46
Got it - thanks. I did confuse myself. :)

Ludd_G
May 19th, 2018, 15:44
Hi all,

thanks for this extension, it'll definitely speed things up at my table (I use FG to DM live at the table, with me manually inputting the players real dice rolls and me using the normal FG dice rolling functionality).

With that said, I don't suppose there is any chance to build an extension to automatically open the Manual Dice Roll window for all friendlies (the PCs) but not neutrals or enemies (NPCs controlled by me)? I'm not sure if there are handles that can be used to trigger events for different statuses of PC/NPC?


Cheers,


Simon


p.s. maybe this could also open up having a closer look at making using FG, as a DM tool at the table, more user friendly, as I think this hybrid use of computer assistance at the table will become an ever growing market, and I'd love FG to be at the forefront of it, e.g integration between DnDBeyond's character builder and great look-up capabilities, and FG's campaign, combat, maps, tables etc, etc. I keep seeing people ask for DnDB to be more of a VTT to use at the table, and just think an intersection of functionality between DnDB and a VTT (my preference being FG, obviously) would provide everything these people are asking for and bring a whole and different new audience to FG moving forwards... but maybe that's for a different thread... :)

Valyar
May 25th, 2018, 12:35
This extension is great. I roll dice in front of the players with all pros and cons (with the exception of the hidden rolls as rules demand), but sometimes I want to be able to introduce subtle plot armor in those rolls (damage rolls mainly) and this is excellent way to do it, without players noticing it easily.

What I see is that when a die is cast with "Manual" option there is no 3d roll rolling around, but I guess this is how CoreRPG works and nothing can be done to simulate a roll?

damned
May 25th, 2018, 16:19
If the dice roll then you take what the dice give you.

celestian
May 25th, 2018, 16:43
What I see is that when a die is cast with "Manual" option there is no 3d roll rolling around, but I guess this is how CoreRPG works and nothing can be done to simulate a roll?

Indeed that's how the manual dice roller in CoreRPG works. I noticed it myself.

Valyar
May 25th, 2018, 16:50
I would be awesome if a die is cast even with manual rolls. Then the immersion will be complete. :)
I know it is CoreRPG, just wishful thinking now from my side.

Trenloe
May 25th, 2018, 17:48
I would be awesome if a die is cast even with manual rolls. Then the immersion will be complete. :)
I know it is CoreRPG, just wishful thinking now from my side.
You can't force the 3D dice to roll a specific result - they are based on a random physics engine, and you can't tell FG which result to show on the die face at the end of the roll.

In the original proof of concept manual dice roller (that was the impetus for the manual roller appearing in the FG CoreRPG ruleset as standard) the dice still rolled, but the end result in the chat window was changed. See the screenshot and further info here: https://www.fantasygrounds.com/forums/showthread.php?28235-manual-entry-dice-dialog-box-possible&p=252683&viewfull=1#post252683

Neither is really ideal - sharp eyed players might see that the die result was not what was rolled, or if the dice aren't rolled then players know that the result has been manually entered. Based off the latter, the CoreRPG FG code assumes that everyone knows that the dice results are being set - and this is made obvious by the [MANUAL] label in the action string.

celestian
May 25th, 2018, 18:20
I'd have to look at the code but you could probably force a dice roll and also force it hidden regardless of campaign settings so the players only see the shadow of the dice roll but it's not actually used. Doing that you wouldn't need to care what the dice roll showed (since you use the manual input value) but they'd think you did roll instead of input a roll.

Insanely busy right now so I can't poke at it but I'm pretty sure something like that is possible.

madman
May 26th, 2018, 04:51
I would be awesome if a die is cast even with manual rolls. Then the immersion will be complete. :)
I know it is CoreRPG, just wishful thinking now from my side.



I'd have to look at the code but you could probably force a dice roll and also force it hidden regardless of campaign settings so the players only see the shadow of the dice roll but it's not actually used. Doing that you wouldn't need to care what the dice roll showed (since you use the manual input value) but they'd think you did roll instead of input a roll.

Insanely busy right now so I can't poke at it but I'm pretty sure something like that is possible.

That would be AMAZING if you can make that work celestian (http://www.fantasygrounds.com/forums/member.php?54726-celestian)!

Madman..

Trenloe
May 26th, 2018, 15:13
I'd have to look at the code but you could probably force a dice roll and also force it hidden regardless of campaign settings so the players only see the shadow of the dice roll but it's not actually used.
Look at secret in the roll/throw message structure here: http://www.fantasygrounds.com/refdoc/Comm.xcp This is usually set in the roll record bSecret value (e.g. rRoll.bSecret) which is then used in manager_actions.lua to set the secret flag in the message structure.

Bidmaron
June 1st, 2018, 18:44
So teen low you agree this is doable right?

celestian
June 1st, 2018, 19:36
So teen low you agree this is doable right?

Oh, it's 100% possible. I've got the next rev doing it I just haven't posted yet. Was going to look at messing with the manualrolls code so the roll happens when the DM presses the "check" box in the Manual Roller window....but not had chance yet. Right now it rolls the dice immediately (and hides them) when you control-click the dice. Your manual result text (if you show it to players) shows up when you click the check, so there will be slight delay.

celestian
June 1st, 2018, 20:48
Version 2.0

Added the "shadow" dice roll for players and ignores results using manual dice setting.

Keep in mind the dice will NOT match whatever you set manually (except if you're lucky) but the players will only see the dice shadow for the type of dice you are rolling...

Moon Wizard
June 1st, 2018, 22:15
Also, I will have a "faux roll" button in the next release for manual rolls. This will allow GMs (not players) to use manual rolling with shadow dice and no manual roll notification.

Regards,
JPG

celestian
June 1st, 2018, 22:21
Also, I will have a "faux roll" button in the next release for manual rolls. This will allow GMs (not players) to use manual rolling with shadow dice and no manual roll notification.

Regards,
JPG

Sweet. I can remove that bit from the extension when it happens ;)

Bidmaron
June 8th, 2018, 05:11
Also, I will have a "faux roll" button in the next release for manual rolls. This will allow GMs (not players) to use manual rolling with shadow dice and no manual roll notification.

Regards,
JPG

Thanks, MW, and I thank you profusely for the onWindowOpened!
Now, if you can just put in an onTimeExpired or some other like-named routine to let us do something based on a real-time clock.

celestian
January 8th, 2019, 05:22
Update 2.1, cleanup for new options added from previous FG updates. Removed items no longer needed (part of CoreRPG now).

Ludd_G
January 15th, 2019, 17:04
Hi,

I use this extension at the table for face to face games and it's a real help in running sessions, so thank you. I would like to make one request though, I hope you don't mind, and that's to enquire if it'd be possible to adjust the extension to offer the option to make all PC rolls manual and all GM rolls automatic, if that makes sense? I use FG to manage all aspects of a session, but my players, understandably, love to roll their actual dice. I will always then input their rolls to aid with ongoing tracking of damage, effects, concentration etc. and am prone to forget to hold the modifier key to switch to manual entry, as I don't need to do that with all my GM rolls. Thanks for taking the time to read this, and thanks anyway, whatever your thoughts are.

Cheers,

Simon

celestian
January 15th, 2019, 17:21
Hi,

I use this extension at the table for face to face games and it's a real help in running sessions, so thank you. I would like to make one request though, I hope you don't mind, and that's to enquire if it'd be possible to adjust the extension to offer the option to make all PC rolls manual and all GM rolls automatic, if that makes sense? I use FG to manage all aspects of a session, but my players, understandably, love to roll their actual dice. I will always then input their rolls to aid with ongoing tracking of damage, effects, concentration etc. and am prone to forget to hold the modifier key to switch to manual entry, as I don't need to do that with all my GM rolls. Thanks for taking the time to read this, and thanks anyway, whatever your thoughts are.

Cheers,

Simon

That's an easy one. My extension actually just uses the built in functionality but with an on-demand feature. The built in feature already does what you are asking. Simply turn it on in the campaign settings. I'd also not use the extension at the same time tho I don't think it would cause any problems but it would be completely unnecessary.

Ludd_G
January 15th, 2019, 19:22
Hi Celestian,

thanks loads for getting back to me. I'm sorry but I think I didn't explain very well quite what I'd love to see (which I honestly suspect isn't going to be possible): Because I'm playing at the table, all my players use dice, paper character-sheets, notes etc., whilst I run and manage everything from within FG. So, whilst my players are keeping a track of their status etc on their sheets, I need to duplicate all that on the character sheets within FG, as well as all the normal GM stuff relating to all the NPCs.

So, to make maximum use of FG's automation and tracking, my game flow is thus: if I make an attack, save etc. with an NPC I would want the dice in FG to auto-roll, as they do with "Manual Roll" set to Off in Options, but when my players make a roll they then tell me what the roll is and I then need to input that roll in FG on their behalf (as none of the players is on a computer) thus needing "Manual Roll" to be active. This allows FG to track everything for both players and me, concentration, hp, etc, and correctly display it on the CT, which the players can see, and this is where your "On Demand" extension is really helping me out as I can toggle between die states using the modifier key...

But, you see, I'm a totally klutz and constantly forget to modify before rolling the dice, which can really slow the game down as I try and undo what I've just done. So, what would be amazing is: if rolls made for the PCs and rolls made for NPCs had something within the code that flagged them as in someway different (and this is where I'm guessing they don't, which would make this wish an impossible dream! :D ) then an extension could maybe automatically open the Manual Dice Roll window for all PC rolls, but would just roll the dice as though Manual was off, for all NPC rolls, if that make sense?

I realise this is massive over engineering for a total edge case, but when using FG at the table it would be a great help. And, as face to face games become popular once again, it would be great for FG to be the default session management tool at the table, and I think extensions like yours really help to keep FG relevant for a variety of play environments.

Thanks once again for getting back to me, and for taking the time to code this extension in the first place. Cheers!

celestian
January 15th, 2019, 19:48
The easiest way I see is having a client session running for them to roll (or you) and that one have the option enabled for manual rolls (built in). Otherwise there is no clean way to do it.

Ludd_G
January 15th, 2019, 19:50
Thanks again, that's what I suspected. I think I've just got to be better at remembering :o

Andraax
January 15th, 2019, 19:54
You turn on manual rolls for everything. Then, if you want the system to actually roll for you, when the window pops up click on the "die" icon and it rolls for you.

LordNova2
March 4th, 2019, 22:19
Story Text, which is achieved with /story or Ctrl+Enter, or even the formatted text in story sheets that you click on no longer show up with the formatted box around it when I enable this extension.
Not game-breaking in any way, but should be noted that it is messing with the format of the chat.

celestian
March 5th, 2019, 06:19
Story Text, which is achieved with /story or Ctrl+Enter, or even the formatted text in story sheets that you click on no longer show up with the formatted box around it when I enable this extension.
Not game-breaking in any way, but should be noted that it is messing with the format of the chat.

I'm not sure what that is But I'll look at it when I get back in town next week . I've never heard of either one of those options .

LordNova2
March 5th, 2019, 21:13
This function is used to making a bock of text for a description of a room or the actions of the NPCs easily outputted to the chat box by a click of the mouse. With a little extra formatting in the story sheet you can make it output as a quote, as in the NPC is saying it in the chat-box.
I am sure as soon as you get the chance to sit down to take a look, you will immidiotly know what I am talking about. ;)

26581

realmsoff
March 7th, 2019, 22:37
Yep this extension (wich is awesome), at this moment, breaks the speech bubble and story box formatting in the chat box.

celestian
March 9th, 2019, 23:56
Yep this extension (wich is awesome), at this moment, breaks the speech bubble and story box formatting in the chat box.

Try the latest version 2.2. Testing on my end shows it working now.

realmsoff
March 11th, 2019, 14:16
I tested version 2.2 and the formatting is working like a charm again!

When I control-click-dice everything works perfect but when I control-drag dice however, it first shows a normal dice roll and then the input box shows up.

celestian
March 11th, 2019, 20:08
I tested version 2.2 and the formatting is working like a charm again!

When I control-click-dice everything works perfect but when I control-drag dice however, it first shows a normal dice roll and then the input box shows up.

Sorry I missed that. For now I've reverted the "fix". You'll have to do w/o the /story window frame in chat for now if you want to use this. I could not easily find the solution.

I'll try and revisit this when I have more time.

realmsoff
March 11th, 2019, 20:54
ok I'll use version 2.2 for now cause its more usefull to me. Hopefully this feature will be standard in FGunity.

It's really usefull to nudge level 1 characters or steer pivotal moments in a campaign without fumbling with the options menu.

RobboNJ69
October 11th, 2019, 06:10
Great extension. I did find one issue. It breaks the ability to drop a HTTP link into the chat. It shows (LINK) but isn't clickable. Without the extension turned on, I can paste a web link to chat and then drag it into a text block, description, etc.

Just letting you know. Thanks!

Dr0W
November 17th, 2019, 17:05
Great extension!

Main use I found for this is when I'm running face to face games. I want to roll NPC rolls on FG, but want to insert PC's rolls manually.