5E Product Walkthrough Playlist
Page 2 of 2 First 12
  1. #11
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    22,117
    Blog Entries
    1
    it would be { "d6","d6","d6" }

    adice is an array of dice.

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  2. #12
    Thank you damned! Helps alot!

    -Thanks!

  3. #13
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605
    Can multiple registerResultHandlers be set up in different scripts for the same roll?
    I want to count consecutive saving throws in Pathfinder and it would be great to take advantage of the saving throw script that already exists.

    I tried adding
    ActionsManager.registerResultHandler("save", onRoll);
    to onInit but the onRoll function I set up to debug with didn't trigger.
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

  4. #14
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    22,117
    Blog Entries
    1
    Quote Originally Posted by bmos View Post
    Can multiple registerResultHandlers be set up in different scripts for the same roll?
    I want to count consecutive saving throws in Pathfinder and it would be great to take advantage of the saving throw script that already exists.

    I tried adding
    ActionsManager.registerResultHandler("save", onRoll);
    to onInit but the onRoll function I set up to debug with didn't trigger.
    I could be wrong but I think the answer is No.

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  5. #15
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605
    I'm having a hard time triggering onRoll for some reason.
    rRoll is
    Code:
    { s'aDice' = { #1 = s'd20' }, s'nMod' = #1, s'tags' = s'diseasetracker', s'sType' = s'disease', s'nTarget' = #20, s'sDesc' = s'[DISEASE] Fortitude' }
    I never see the debug message on line 214 but the handler to call it seems to be set up just like the example.
    Last edited by bmos; August 9th, 2020 at 12:20.
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

  6. #16
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    22,117
    Blog Entries
    1
    Just something you might try

    Ln8: ActionsManager.registerResultHandler('diseasesave' , onDiseaseSave)
    Ln213: function onDiseaseSave(rSource, rTarget, rRoll)
    Ln214: Debug.chat('onDiseaseSave')

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  7. #17
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605
    Quote Originally Posted by damned View Post
    Just something you might try

    Ln8: ActionsManager.registerResultHandler('diseasesave' , onDiseaseSave)
    Ln213: function onDiseaseSave(rSource, rTarget, rRoll)
    Ln214: Debug.chat('onDiseaseSave')
    Alas, no change. Thanks for the suggestion 'though!

    EDIT: I'm not really sure what fixed it but it is working now.
    Last edited by bmos; August 9th, 2020 at 20:26.
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

  8. #18
    Thanks for putting so much effort into this! How would I make the die rolled an exploding die?
    Last edited by Quorlox; August 9th, 2020 at 15:49.

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Joshua Stream Pre

Log in

Log in