PDA

View Full Version : CoreRPG/5E Extension: Player CT Targeting



Steeleyes
March 21st, 2018, 23:17
In order to speed up combat I wanted to give the players a few more options when it comes to targeting via the Combat Tracker. In theory CTRL-click allows players to toggle targets via their combat tracker however it appears to be broken at present (and is on the fix list for the next release 3.3.5). Targeting via the battle map works just fine (provided you remember to drag tokens from the combat tracker). Battle map targeting obviously doesn't work for theatre-of-the-mind encounters where there is no map.

Here is an extension to allow players to drag-to-target, click-to-clear and clear-all on the combat tracker like the GMs can.

It's been play tested during a live session and a few issues have been found and fixed. The code ended up being a little more complex than I first imagined so there still may be a bug or two hiding.

* Players get a target button on their combat tracker that opens up a small sub-panel (provided they own the character).
* Inside the panel is a target button that can be dragged onto another visible target in the combat tracker to add it to the list of targets (like the GMs).
* The panel also contains a cancel-alltargets button (like the GMs).
* Players can cancel individual targets by clicking on the token in the sub-panel (again like the GM).
* The extension endeavours to keep the combat maps up to date too (map, GM tracker and player trackers should to all stay in sync).
* It's a little stricter than the core battlemap targeting in that it only allows players to mess with characters they own.
* It has been tested in situations where players control multiple characters and add and release them.
* I've tested on CoreRPG and 5E (it may work on other rule sets but no guarantee).

Regards, Steeleyes.

Releases:
v0.1: Initial release.
v0.2: Allow players to drop targets on to the battle map as well.
v0.3: Fix the display for FG 3.3.6
v0.4: Fix bug to allow players to target by dragging the target icon onto the map.

Known Issues:
* Clicking on the row of tokens only deselects the target if it's present on the battlemap as well.

Gwydion
March 22nd, 2018, 15:12
In order to speed up combat I wanted to give the players a few more options when it comes to targeting via the Combat Tracker. In theory CTRL-click allows players to toggle targets via their combat tracker however it appears to be broken at present (and is on the fix list for the next release 3.3.5). Targeting via the battle map works just fine (provided you remember to drag tokens from the combat tracker). Battle map targeting obviously doesn't work for theatre-of-the-mind encounters where there is no map.

Here is an extension to allow players to drag-to-target, click-to-clear and clear-all on the combat tracker like the GMs can.

It's been play tested during a live session and a few issues have been found and fixed. The code ended up being a little more complex than I first imagined so there still may be a bug or two hiding.

* Players get a target button on their combat tracker that opens up a small sub-panel (provided they own the character).
* Inside the panel is a target button that can be dragged onto another visible target in the combat tracker to add it to the list of targets (like the GMs).
* The panel also contains a cancel-alltargets button (like the GMs).
* Players can cancel individual targets by clicking on the token in the sub-panel (again like the GM).
* The extension endeavours to keep the combat maps up to date too (map, GM tracker and player trackers should to all stay in sync).
* It's a little stricter than the core battlemap targeting in that it only allows players to mess with characters they own.
* It has been tested in situations where players control multiple characters and add and release them.
* I've tested on CoreRPG and 5E (it may work on other rule sets but no guarantee).

Regards, Steeleyes.

Awesome! Thanks for sharing.

Dax Doomslayer
March 24th, 2018, 04:26
This is fantastic. A while ago I was asking if there was something just like this. Thanks for doing this!!

Steeleyes
March 24th, 2018, 14:39
This is fantastic. A while ago I was asking if there was something just like this. Thanks for doing this!!

No problems Dax. Give it a try and let me know if you bump into any issues.

Blacklamb
March 28th, 2018, 20:37
I have a player who is use to being a GM in FG and was missing the ability to do this, thank you!!!

Dax Doomslayer
March 28th, 2018, 21:14
No issues so far and I like it. The one difference between this extension and the DM's combat tracker ability that I've noticed is that you can't drag the target bulls eye to the token to target. As a player, this probably isn't a big deal other than for area effect spells I guess. This works fine as far as I can see otherwise and really appreciate this extension Steeleyes!!

Steeleyes
March 29th, 2018, 14:34
The one difference between this extension and the DM's combat tracker ability that I've noticed is that you can't drag the target bulls eye to the token to target.

Yes my guinea pigs (I mean players) noticed that too. It looks like the extra code would need to go in the map manager rather than the combat tracker. So we may have to live with it.

Forgive me for a step down into the depths of a gory underworld...

As far as I can see from the code there is no simple way to extend the combat map manager to add this functionality (it looks like I'd be forced to clone and edit the entire thing - yuch - that would make maintaining the extension a pain). [Edit: This isn't true there are ways to extend modules e.g CombatManager.setCustomDrop()]

The XML sections of the code appear to be easy to extend and override, but as far as I can see the lua code is not set up to allow existing features to be extended (I already had to write a new client target manager rather than adding or modifying the existing target manager). Maybe someone with more experience of writing extensions can point me in the right direction "How do I extend one of the global lua scripts?". I did hunt for an answer to this and the only thing I found was to write a new manager. [Edit: This also isn't true CombatManager['someFunction'] = someNewFunction; works - ideally save the old function first so you can "inherit" from it]

I've also had issues clicking on a token to deselect it when only the combat-tracker is being used (i.e theatre of the mind with no battlemap), but at least that's probably fixable in the combat tracker code.

Dax Doomslayer
March 29th, 2018, 16:09
No worries on that Steeleyes. I love the extension and I can live with that difference. I appreciate the work you did on it!! It does sound a bit of 'diminishing returns' to do this and as it is now helps me immensely! Thanks again for this!

Steeleyes
April 1st, 2018, 17:57
No worries on that Steeleyes. I love the extension and I can live with that difference. I appreciate the work you did on it!! It does sound a bit of 'diminishing returns' to do this and as it is now helps me immensely! Thanks again for this!

It looks like the combat manager does have a clean way to allow me to respond to target drops onto the map, so I've added the extra code to fix the bug (I've updated the .ext at the top - you should see v0.2).

Steeleyes
April 1st, 2018, 18:03
removed duplicate post

Dax Doomslayer
April 2nd, 2018, 00:48
Very cool! It's an Easter miracle - lol. I'll have to try this out when we play tomorrow. Thanks for you hard work Steeleyes!!

sirkerry
June 7th, 2018, 18:21
Anyone know if this extension works with the Savage Worlds ruleset?

Sgain
June 17th, 2018, 20:45
it causes a bunch of errors for Savage Worlds users. Most likely because some of these ideas were om the last update for SW.

Blacklamb
August 7th, 2018, 18:31
My gaming group is loving this extension unfortunately the UI code changes in the latest FG (v3.3.6) breaks it in the combat tracker. Thank you for your hard work, I am hoping you will be able to fix it.

Steeleyes
August 9th, 2018, 09:52
Ah thanks for the heads up. We used it on Monday and none of my players ran into issues but it’s certainly possible something changed.

Can you give a few details about what failed and how it manifested itself.

[Edit] Yes it does look a bit dodgy for coreRPG and 5E. Is it still generally working but all the icons are in the wrong places?

Steeleyes
August 10th, 2018, 18:58
Anyone know if this extension works with the Savage Worlds ruleset?
Sorry no plans for supporting anything other than core and 5E. :(

Steeleyes
August 13th, 2018, 13:58
My gaming group is loving this extension unfortunately the UI code changes in the latest FG (v3.3.6) breaks it in the combat tracker. Thank you for your hard work, I am hoping you will be able to fix it.
I've fixed the player targeting extension now for FG v3.3.6 (the graphics were badly positioned). I've tested with CoreRPG and 5E, my players should also put it through it's paces tonight.

[Edit] Last night's play testing did still show an issue dropping the target onto the battle map so I'll need to take another look.

Steeleyes
August 16th, 2018, 11:55
Released v0.4. This fixes a bug and now allows players to target by dropping the target icon onto the map again (in addition to the other options they have for targeting).

Dax Doomslayer
August 16th, 2018, 16:21
Thanks Steeleyes! I think this is one of my favorite extensions!!