#Roll vs Item Roll

1 messages · Page 1 of 1 (latest)

median girder
#

@fathom raven

fathom raven
uncut onyx
fathom raven
#

Thank you Zhell.

floral stream
#

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)

median girder
#

the main question is what options does rollAttack provide?

#

which system are we working with?

floral stream
#

5e is the system

#

And yes, the options for rollAttack would help

median girder
#

ok, so rollAttack provides a fast forward at least

#

what are you trying to do again?

floral stream
#

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

fathom raven
#

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

fathom raven
uncut onyx
#

rollAttack just passes every option given to it to d20roll. It does nothing with them on its own.

fathom raven
floral stream
#

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)

fathom raven
floral stream
#

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

fathom raven
#

And follow the rabbit hole from.there

median girder
#

are we just exploring the source code, or is there a particular goal?

#

because the options parameter serves many purposes

floral stream
#

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!

median girder
#

gotchya, so, chat messages can be supressed via temporary: true (iirc) as part of its options

fathom raven
median girder
#

(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

floral stream
#

Yes

median girder
#

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

floral stream
#

OK

#

I'll do that

#

Thanks, @median girder

median girder
#

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

uncut onyx
#

It just returns a D20Roll.