FG Spreadshirt Swag
  1. #1
    Skillkoil's Avatar
    Join Date
    Dec 2015
    Location
    Fayetteville, North Carolina
    Posts
    541
    Blog Entries
    3

    Are there any other "Hotkeys" allowed in FG besides CTRL, ALT and SHIFT?

    I am wanting to create an extension that allows a player in the 5E ruleset to hold a hotkey like SHIFT and double click a Skill, I.E. Stealth or Perception and have that dice roll in the dice tower. From what I have gathered the three Hotkeys in the topic are the only ones active and bound. I guess I need to know:

    1. Is it possible to bound CTRL, ALT or SHIFT + a skill roll to the dice tower?

    2. Are there any other Hotkeys that anyone knows of that I could use instead?

    3. Is this even possible to write or has it been tried before?

    Thanks!!

    FG Con 13 – Fantasy Grounds Online RPG Convention - October 12-14 2018
    Register at www.fg-con.com for all the latest info.
    My Blog
    Technical Administrator for Fantasy Grounds College
    Holder of the "Ultimate License" | Allower of Demo Players!
    GM of Nephilim Wars - 5E Post Apocalyptic Campaign
    DM of Destiny Calls - 5E Homebrew that includes Waterdeep: Dragon Heist

  2. #2
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    Quote Originally Posted by Skillkoil View Post
    I am wanting to create an extension that allows a player in the 5E ruleset to hold a hotkey like SHIFT and double click a Skill, I.E. Stealth or Perception and have that dice roll in the dice tower. From what I have gathered the three Hotkeys in the topic are the only ones active and bound. I guess I need to know:

    1. Is it possible to bound CTRL, ALT or SHIFT + a skill roll to the dice tower?

    2. Are there any other Hotkeys that anyone knows of that I could use instead?

    3. Is this even possible to write or has it been tried before?

    Thanks!!
    1) yes

    2) no

    3) yes/don't know

    in Fantasy Grounds "Hotkey" means bottom panel of the desktop where you can store the most common rolls, modifiers, shortcut links etc. What you are asking are key inputs that FG engine API can detect. You can detect if end user is holding those keys with Input.isCtrlPressed(), Input.isAltPressed() and Input.isShiftPressed(). These has to be written as lua and you can make conjunction of all three keys holdings.
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  3. #3
    Skillkoil's Avatar
    Join Date
    Dec 2015
    Location
    Fayetteville, North Carolina
    Posts
    541
    Blog Entries
    3
    Sorry for the syntax error but thank you for the information! That is exactly what I needed!

    FG Con 13 – Fantasy Grounds Online RPG Convention - October 12-14 2018
    Register at www.fg-con.com for all the latest info.
    My Blog
    Technical Administrator for Fantasy Grounds College
    Holder of the "Ultimate License" | Allower of Demo Players!
    GM of Nephilim Wars - 5E Post Apocalyptic Campaign
    DM of Destiny Calls - 5E Homebrew that includes Waterdeep: Dragon Heist

  4. #4

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    There is also Interface.onAltPressed and the like that let’s you take action when the key is pressed rather than just checking the status of the key at an instant in time

  5. #5
    Skillkoil's Avatar
    Join Date
    Dec 2015
    Location
    Fayetteville, North Carolina
    Posts
    541
    Blog Entries
    3
    Appreciate it! Brushing up on lua now so I can start working on it.

    FG Con 13 – Fantasy Grounds Online RPG Convention - October 12-14 2018
    Register at www.fg-con.com for all the latest info.
    My Blog
    Technical Administrator for Fantasy Grounds College
    Holder of the "Ultimate License" | Allower of Demo Players!
    GM of Nephilim Wars - 5E Post Apocalyptic Campaign
    DM of Destiny Calls - 5E Homebrew that includes Waterdeep: Dragon Heist

  6. #6
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    That's non existent API I think he meant Input.onAlt read more from here: https://www.fantasygrounds.com/refdoc/Input.xcp
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  7. #7

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    Yes sorry. Away from computer and saying from memeory which is awful

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in