Giter Club home page Giter Club logo

smart-target's Introduction

Smart-Target

Before opening an issue read THIS

Latest Release Download Count Forge Installs Foundry Core Compatible Version alt-text alt-text

Features

  1. Target with Alt+Click
  2. For players, target by just left clicking a non-owned token (Alt+Click to target owned token)
  3. Target all tokens in a template by Alt+Clicking the template (shift modifier and standard\sticky behaviour apply)
  4. Show portraits instead of colored pips to indicate targets, positioning\offset and size of the icons can be configured in the module settings
  5. Customize color\shape of the targeting reticule

Installation

It's always easiest to install modules from the in game add-on browser.

To install this module manually:

  1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
  2. Click "Install Module"
  3. In the "Manifest URL" field, paste the following url: https://raw.githubusercontent.com/theripper93/Smart-Target/main/module.json
  4. Click 'Install' and wait for installation to complete
  5. Don't forget to enable the module in game using the "Manage Module" button

Settings

  • Targeting Mode:

    • Default: Default foundry behaviour.
    • Alt-click: Target tokens by pressing Alt+Click, add Shift to target multiple.
    • Always Target: Clicking on non-owned tokens automatically targets them"
  • Release Behaviour: This setting determines how refresh target behaves when clicking multiple tokens.

    • 'Sticky' mode will target each clicked token without un-targeting anything, and you must click a token again to un-target it.
    • 'Standard' mode more closely matches the standard foundry behaviour where all previous tokens are automatically un-targeted when clicking a new token, and you must hold Shift while clicking in order to target multiple tokens.
  • Show indicator portraits instead of colors: Uses avatar for GM, defaults to Token for players if no avatar is found for the assigned actor (requires refresh)

  • Use Tokens instead of Avatars: Use tokens instead of avatars for players target indicators

  • Gm image: The image to use on indicator portraits for the GM

    • Player Avatar
    • Token Portrait
    • Token Image
  • Keep target indicators inside the token: Move the target indicators in a way that they remain inside the token border

  • Target Icon Image Scale: Set the scale for the image used by the target icons (default: 1)

  • Target Image Y Offset: Add a flat offset to the image in pixels (default: 0)

  • Target Image X Offset: Add a flat offset to the image in pixels (default: 0)

  • Target Icon Size: Set the size for the target icon in pixels (default: 12)

  • Target Icon Offset: Set the distance between icons in pixels (default: 16)

  • Border Thickness: Set the thickness of the border in pixels (default: 2)

  • Bring Targeting Arrows Closer Together: Bring the targeting arrows closer together so that they are inside the token frame

  • Targeting Arrows Color: Hex color for the targeting arrows (default: #ff9829)

  • Target indicator: Select the indicator for a targeted token

    • Default Foundry Indicator
    • CrossHair 1
    • CrossHair 2
    • BullsEye 1
    • BullsEye 2
    • Better Target
  • Use player color for target indicator: Use player color for target indicator

libWrapper

This module uses the libWrapper library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

Changelog

Issues

Any issues, bugs, or feature requests are always welcome to be reported directly to the Issue Tracker, or using the Bug Reporter Module.

Credit

Thanks to anyone who helps me with this code! I appreciate the user community's feedback on this project!

smart-target's People

Contributors

brothersharper avatar drdwing avatar lozalojo avatar lozanoje avatar p4535992 avatar spoidar avatar thefrazer avatar theripper93 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.