-
June 22nd, 2020, 04:11 #11
it would be { "d6","d6","d6" }
adice is an array of dice.
-
June 22nd, 2020, 22:35 #12
- Join Date
- Nov 2017
- Location
- Western NY
- Posts
- 139
Thank you damned! Helps alot!
-Thanks!
-
August 5th, 2020, 22:25 #13
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.
-
August 5th, 2020, 23:26 #14
-
August 9th, 2020, 01:41 #15
I'm having a hard time triggering onRoll for some reason.
rRoll isCode:{ s'aDice' = { #1 = s'd20' }, s'nMod' = #1, s'tags' = s'diseasetracker', s'sType' = s'disease', s'nTarget' = #20, s'sDesc' = s'[DISEASE] Fortitude' }
Last edited by bmos; August 9th, 2020 at 12:20.
-
August 9th, 2020, 04:25 #16
Just something you might try
Ln8: ActionsManager.registerResultHandler('diseasesave' , onDiseaseSave)
Ln213: function onDiseaseSave(rSource, rTarget, rRoll)
Ln214: Debug.chat('onDiseaseSave')
-
August 9th, 2020, 11:13 #17
Last edited by bmos; August 9th, 2020 at 20:26.
-
August 9th, 2020, 14:08 #18
- Join Date
- Aug 2014
- Posts
- 77
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.
-
October 12th, 2020, 20:43 #19
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Thank you for making this guide.
I've used your example action and been able to implement it in a template, so that doubleclicking a frame makes it roll.
But if I would like to have the value in the frame as a modifier, how would I go about that?
I am trying to dig through and dissect the 3.5 lua files, but I am getting completly lost in the codes.
Is there an easy way of getting the value localy, or would I need to create strings and several functions in a lua file to make it function?
Thanks in advance.
-
February 1st, 2021, 06:21 #20
I had modified an existing MoreCore attack routine successfully, however - I am not sure how to get a DRAG to target on CT, for example, to work. So I guess I didn't REALLY get it correct
(An example case is you forgot to target someone and rolled, this lets you drop it on the token or CT entry you wish to check a hit against.
When I printout rRoll, I see some clues why it would not work but what am I supposed to do to support this?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks