FG Spreadshirt Swag
Page 1 of 2 12 Last
  1. #1

    Changing initiative die roll for Pathfinder

    I would like to change the die roll for initiative from a d20 to a d10 in Pathfinder. I thought I found the code in the 3.5 ruleset and modified it to d10, but it didn't work. I made copies and backups and am pretty sure I was using the right file. Would this be a job for a small extension?

  2. #2

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    If you cannot get it to work directly editing the ruleset, you are not going to get it to work in an extension either. However, unless you are planning on doing a ruleset it is better to work in an extension. I recommend you post what the original code was, where it was, and the changes you made.

  3. #3

  4. #4
    I would assume in manager_action_init.lua in the scripts folder, you would change line 42 from 'rRoll.aDice = { "d20" };' to 'rRoll.aDice = { "d10" };'. Not sure if that would catch all the instances where initiative is rolled, but it's a place to start.
    I never claimed to be sane. Besides, it's more fun this way.

  5. #5
    That is exactly what I tried. My suspicion was that it isn't the only place it was rolled, but I couldn't find anything else. I edited the 3.5 ruleset because it looked like Pathfinder pointed almost everything to that.

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,429
    Put a Debug.console command just before your modified code, something like Debug.console("About to roll init with d10"); And then open the console window with the chat command /console

    See if the debug command is displayed in the console - if not, then your code isn't running.

    Note: manager_action_init.lua is only triggered for PC rolls from the character sheet. manager_combat2.lua handles the NPC init tolls, and PC init rolls made by the GM from the combat tracker.


    More info on the Debug.console command here: https://www.fantasygrounds.com/refdoc/Debug.xcp#console
    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. #7

  8. #8
    Thanks for the pointers. I went through the combat2 code and replaced all the random(20)'s with random(10)'s when it was in code that looked like it modified init. For some reason, when I "roll all initiatives", none of them are called. Only when I rolled from the player sheet did it call the init.lau code and send something to the debug console.

    I am missing something fundamental. I am nervous about making so many changes to a ruleset and unintended consequences. I think I will try to learn how to make this work with an extension.

  9. #9
    Not my players. They never seem to roll above a 5 on the initiative d20 anyway. :-)

  10. #10

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    If you have the Castles and Crusades ruleset, you can look at how it does initiative. It has options to roll d10, d20, or d% for initiative.

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