#Checking for fastForward programmatically

1 messages · Page 1 of 1 (latest)

late hill
#

It was only my dev module and libwrapper. I yote just in case, but still no dice. Is it possible to dump my console somewhere so I can do good old search?

gritty vessel
#

How are you testing?

late hill
#

I pop open console, put on CONFIG.debug.hooks = true, roll a longbow on Quillathe the ranger starter hero and then hold down shift as I click the Attack or Damage button in the chat.

#

FVTT version 11.299, dnd5e 2.2.1, 0 modules right now

gritty vessel
#

I see. Guess you have to check the config's event then

late hill
#

The configs event? Assuming that's a different one than the event I spot on the hooks? How would I go about that?

gritty vessel
#

Pretty sure event is a key in one of the objects

#

Log its properties, particularly ctrlKey, shiftKey, altKey

late hill
#

Sorry, just clarifying because I'm thick, we're talking about the objects logged in the hooks as args when the debug setting allow it or am I supposed to log differently? I've seen event when doing html and eventListener stuff, cannot seem to find them in there.

gritty vessel
#

Correct

late hill
#

I can definitely find shiftKey there, and since it's not a regularly rebindable keybind, that's a good start. The struggling perfectionist notices that wont work if someone programmatically fastForward, like with a macro, though. Event doesn't seem to be filled out at all in that case. stress Maybe this is not quite feasible.

gritty vessel
#

does fastForward not exist if explicitly passed?

#

Have a look at 'Faster Rolls by Default', which inverts the fast-forward behaviour.

#

It somehow knows when you FF and when you don't.

late hill
#

Oh fuck, it exists there when explicitly passed, you're right. Maybe that's the way.

#

I'll have a look there too, but now I can definitely create something that works. Thanks a lot, Zhell.