Ken L
December 2nd, 2017, 09:06
This is something present in d20pro and I'm curious if it's possible through extensions here.
Currently the Chat window soaks up the key strokes. I haven't looked terribly deep here, but my goal here is if I press 'A' I can select the first attack of the selected token. completely bypassing the tracker. 'F' can then select the full attack variant, for all other attacks I can perform the standard highlight-attack.
Why is this useful? It's more for the GM, if I have an array of baddies, I can quickly run through the mooks by getting their default attack action out of the way without having to peek into the CT or open a stat block.
Key hurdles are:
1. Preventing the chat box from absorbing all normal keystrokes outside of designated text areas
2. Classifying attacks using the ruleset's attack parser.
Area 2 is interesting as attacks appear to be 'classified' on hover as the xml database only stores them as a string, so these are parsed on the fly it appears. I'm sure there's something more interesting happening but these are casual observations. I'm not entirely sure if this is possible to hook the 'A' hotkey to the first classifiable attack.
Regarding the 'selected token' alluded to, I earlier did a slight rework of the Combat Tracker and as part of that, I've gained a memory for 'selected tokens'. Combining these two, I wish to have the ability to perhaps select tokens on the map, press the A key, and either drop attack dice on a target token or control click for each attacker. All without consulting the Combat Tracker. A side goal here is to multi-select N tokens, and press A to select the default action to attack for all of them at once on a target of my choice. This is handy for mass readied attacks or mass opportunity attacks, or even quickly processing 5 enemies at once (perhaps multi-selecting through the combat tracker).
So I ask, before I start poking around here, is this possible?
Currently the Chat window soaks up the key strokes. I haven't looked terribly deep here, but my goal here is if I press 'A' I can select the first attack of the selected token. completely bypassing the tracker. 'F' can then select the full attack variant, for all other attacks I can perform the standard highlight-attack.
Why is this useful? It's more for the GM, if I have an array of baddies, I can quickly run through the mooks by getting their default attack action out of the way without having to peek into the CT or open a stat block.
Key hurdles are:
1. Preventing the chat box from absorbing all normal keystrokes outside of designated text areas
2. Classifying attacks using the ruleset's attack parser.
Area 2 is interesting as attacks appear to be 'classified' on hover as the xml database only stores them as a string, so these are parsed on the fly it appears. I'm sure there's something more interesting happening but these are casual observations. I'm not entirely sure if this is possible to hook the 'A' hotkey to the first classifiable attack.
Regarding the 'selected token' alluded to, I earlier did a slight rework of the Combat Tracker and as part of that, I've gained a memory for 'selected tokens'. Combining these two, I wish to have the ability to perhaps select tokens on the map, press the A key, and either drop attack dice on a target token or control click for each attacker. All without consulting the Combat Tracker. A side goal here is to multi-select N tokens, and press A to select the default action to attack for all of them at once on a target of my choice. This is handy for mass readied attacks or mass opportunity attacks, or even quickly processing 5 enemies at once (perhaps multi-selecting through the combat tracker).
So I ask, before I start poking around here, is this possible?