DICE PACKS BUNDLE
Page 2 of 4 First 1234 Last
  1. #11
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    Quote Originally Posted by DMFirmy View Post
    I was putting a little bit of thought into this today, and my initial thought would be to add a couple of new options to the dice roll radial menu for Drop Lowest and Drop Highest, in the same way there are buttons to negate, half, and double the total currently. I started digging around in the CoreRPG ruleset to see how these radial menus are defined, but it seems like they are hard-coded in FG's core code. Is it possible to modify this radial menu to add this functionality? I cannot seem to find anywhere in the ruleset code that I can modify the menu, and I also haven't been able to find any info in the documentation. This feature is something that I am sure a lot of people would find useful, so I am anxious to play around with it to see if I can get it working. If it is not possible, I can try and think of another way to introduce the functionality, but adding it to the radial menu seems the most natural option to me.
    Unfortunately that is hardcoded in FG all right. I also wanted to fudge these dice rolled options as well but still they are beyond possible
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  2. #12
    Quote Originally Posted by DMFirmy View Post
    I was considering something similar to this for the ruleset that I have been working on. If I manage to get something working, I will try and package it up as an extension and share my code here.
    I have just completed my first draft of a "Drop Lowest" extension, which you can download from here. It is still a very simple implementation, but before I get much further along in development I have come to a point where I don't quite know what I am doing wrong.

    With this extension activated, typing "/rolld" in the chat window will trigger a roll of 4d6. The lowest roll is determined and removed, and a message is sent to the chat window with the results. Everything seems to work perfectly. Here is an image that shows the results of using the "/die 3d6" command on one line and the "/rolld" command on the next: Attachment 8004

    The problem I am having is when I drag the results onto the ability score on the character sheet. The result from the first command can be dropped onto the Strength score and it will be automatically applied. The result from the "/rolld" command, however, will not be applied if I try the same thing. I can, however, drag the result from "/rolld" back into the chat window, in which case it will come back with only the total, as in this image: Attachment 8005.

    I have no problem dragging the total onto my character sheet, so technically this functionality works... at least to a point. I cannot seem to figure out why the results from my custom command can't be dragged like the results of the "/die" command can. It seems to me that I have everything wired up correctly. If anyone who might be able to give me a hand wants to take a look at my code to see where I went wrong, I would really appreciate the advice. This module is something my players have strongly requested from me, and I really learned quite a lot just getting it this far. If I can figure out what I am doing wrong I am planning to modify the functionality so that the new slash command will accept parameters for the dice to be rolled and the number to be dropped, so instead of just having it always roll 4d6 drop lowest, you could instead do something like "/rolld 5d8 2" to roll 5d8 dropping the 2 lowest results.

    NOTE: These screenshots and all of my testing have been done using the 3.5E ruleset.
    Last edited by DMFirmy; November 22nd, 2014 at 20:56. Reason: Leaving Note

  3. #13
    I just posted an update to this extension on my website (the original link still works) that now allows you to pass in the number of dice, dice type, and number of results to be dropped, though the same issue mentioned in my previous post is still present. It is also a known issue that, at the moment, the handling for d100 rolls is not properly implemented, but I will get around to that at some later time when I find the time and energy to do so. Once I figure out how to make the roll results draggable onto the character sheet, I think this extension will be pretty close to ready to release in the main forums, so again, any help would be appreciated.

  4. #14
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    @DMFirmy - good work.
    Give it a couple of days and hopefully one of the more experienced programmers will spot your thread and have a look.

  5. #15
    Thanks damned...

    I actually just added support for d100's, so I think this little extension is pretty close to complete. Even with the annoying extra step of having to drag the totals back into chat to make them draggable, it is certainly faster and easier than having to mentally do the drops.

  6. #16
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Is the extension file still available for download?
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  7. #17
    Quote Originally Posted by Trenloe View Post
    Is the extension file still available for download?
    Yeah, sorry about that. I didn't realize my website modified the file name when I uploaded the updated version.
    Here is a link to the download page on my website as opposed to a direct link to the file. I will always attempt to keep the most up-to-date version uploaded to this page.

  8. #18
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Quote Originally Posted by DMFirmy View Post
    The problem I am having is when I drag the results onto the ability score on the character sheet. The result from the first command can be dropped onto the Strength score and it will be automatically applied. The result from the "/rolld" command, however, will not be applied if I try the same thing. I can, however, drag the result from "/rolld" back into the chat window, in which case it will come back with only the total...
    The ability score number field only accepts drops that are a number. It doesn't recognise your customer type of "rolld" as having a number portion and so doesn't do anything with it. A quick fix is to change the rMessage.type in the createChatMessage function to be "dice", i.e. rMessage.type = "dice"; This will allow you to drag a rolld result to an ability score field and the total of the roll will be populated in the field.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  9. #19
    Quote Originally Posted by Trenloe View Post
    The ability score number field only accepts drops that are a number. It doesn't recognise your customer type of "rolld" as having a number portion and so doesn't do anything with it. A quick fix is to change the rMessage.type in the createChatMessage function to be "dice", i.e. rMessage.type = "dice"; This will allow you to drag a rolld result to an ability score field and the total of the roll will be populated in the field.
    I will give this fix a try later today when I get home, but I am curious how I would implement the "not-so-quick-fix" and actually make it so my rolld result IS recognized as a number. Thanks a million for the advice though... this one was driving me bananas.

  10. #20
    @Trenloe: Thanks, that fix does the trick!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in