it would be { "d6","d6","d6" }
adice is an array of dice.
Printable View
it would be { "d6","d6","d6" }
adice is an array of dice.
Thank you damned! Helps alot!
-Thanks!
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'm having a hard time triggering onRoll for some reason.
rRoll isI never see the debug message on line 214 but the handler to call it seems to be set up just like the example.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' }
Just something you might try
Ln8: ActionsManager.registerResultHandler('diseasesave' , onDiseaseSave)
Ln213: function onDiseaseSave(rSource, rTarget, rRoll)
Ln214: Debug.chat('onDiseaseSave')
Thanks for putting so much effort into this! How would I make the die rolled an exploding die?
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.
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?