#Roll vs Item Roll
1 messages · Page 1 of 1 (latest)
I doubt I cna be of much help atm 😅
Thank you Zhell.
Yeah, that's the definition of evaluate. You said prototype, so I got confused checking the actual prototype.
I reached evaluate when I was following the trail of what rollAttack does. I was looking for the options for item rolls, which end up being the same options as Roll (or mostly, apparently)
the main question is what options does rollAttack provide?
which system are we working with?
ok, so rollAttack provides a fast forward at least
what are you trying to do again?
But of course, a way to find the options for any roll would be even better, as I expect to keep working with rolls for a bit
Ignoring pedantic comments like #shadowrun-5e or #dnd5e
You'd want to do the same for item.rollAttack (where item is a defined item document) to get the options for that
Method to get the options should be identical
rollAttack just passes every option given to it to d20roll. It does nothing with them on its own.
Afaik the goal was to get the available options
Well, it would be, right? But evaluate only shows minimize, maximize and async. I still haven't checked the constructor for Roll, but maybe there's a comment there with more info
(sorry, I'm a bit slow typing)
... other than options.event.
Yes don't check evaluate check the next closest function it expanda on which would be d20roll
The reason I started asking is because I didn't want to have to track all of the roll functions to see the options. I thought it would be in the docs. Or an unofficial list somewhere
And follow the rabbit hole from.there
are we just exploring the source code, or is there a particular goal?
because the options parameter serves many purposes
The initial goal was to prevent a message roll from reaching the chat (chatMessage does it). But I have more work to do with rolls, so I went to check the docs.
Since I found no list, I came here to ask
And here we are
I'll study the code and figure out what I need from there
Thanks, everyone!
gotchya, so, chat messages can be supressed via temporary: true (iirc) as part of its options
System documentation != Core api doc
(that is a chat message option, btw)
rollAttack can be fast forwarded, and have adv/disadv set
can you suppress a chat message generated from rollAttack ? I am not sure, but I know you can get the attack expression from the item as well, so you could roll it yourself and specifically not generate a chat message if not
Yes
that's the functionality i know of off the top of my head, but to get a complete list, you will need to walk through the call stack and inspect how the options argument is used at each step
let us know if you have any troubles, the options argument is heavily overloaded and can be a bit tricky to figure out at times
Yes, it takes chatMessage: false
It just returns a D20Roll.