5E Product Walkthrough Playlist
  1. #1

    Using special keys

    Hi,

    Well, giving it another try to my ruleset, i'd like to know if i can use keys to modify the way rolls are done. Let's say i roll d10's on basic roll action. Can i use the CTRL key while rolling to change that to d10's +2 ? This is just an example. The thing i want to do is add control keys to call changes on rolls. If so, how do i spell that in the manager_whatever.lua file ? If CTRL then ... ? Thanks !

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Have a look at the code for saving throws in 5e. I thunk you can ctrl+scroll to make adjustments to the modifier. You will see the ctrl code there - how you modify it from there is up to you

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    API commands to check if shift, CTRL or Alt are pressed are detailed here: https://www.fantasygrounds.com/refdoc/Input.xcp

    In 5E search for isShiftPressed in scripts\manager_action_attack.lua and scripts\manager_action_damage.lua for a couple of examples.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

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
  •  
FG Spreadshirt Swag

Log in

Log in