Results 1 to 6 of 6

Thread: Fog of War tools

  1. #1

    Fog of War tools

    Heyo,
    First off.. sorry if asked/requested/annoying... searched and did not find.

    But i run a DnD game, and im looking to get the most out of Fog of War.

    Main question/request:
    Is it possible to make a button/token on the game board that when clicked, creates a predefined area of Fog of War on the board?

    And a button to reset it.

    My group spends a lot of time dungeon delving.. i use a mod called Stage to handle my board/map transitions.. i like it. But resetting the fog often through the menu and/or removing the fog when they return to town gets tedious at the pace they move.

    Is this possible?

    I tried finding something in the API about creating fog with coordinates but didnt see anything that looked helpful.

    Thanks in advance for considerations, suggestions and advice.

  2. #2
    Code:
    local fow = spawnObject({ type = 'FogOfWar', position = {bla, bla, bla}, otherParams })
    should work.
    See https://api.tabletopsimulator.com/spawnableobjects/ and https://api.tabletopsimulator.com/base/#spawnobject

  3. #3
    This might sound a bit forward... but i love you!
    It worked.. Thanks a ton.

  4. #4
    Follow up.. im trying to use another button to remove it.. ive tried destroyobj(..) .... do i need to set fow to global or something..?

  5. #5
    You should be able to do fow.destruct(). If you want, you could make fow global by removing the "local" word from before it in the snippet

  6. #6
    Worked.. thx.

Similar Threads

  1. Cannot use Draw Tools in VR
    By ScruffyRasputin in forum VR Support
    Replies: 0
    Last Post: 12-15-2018, 04:46 PM
  2. Drawing Tools
    By cerin616 in forum Suggestions
    Replies: 1
    Last Post: 02-27-2018, 05:14 PM
  3. In-Game Scripting Tools
    By MrStump in forum Scripting
    Replies: 10
    Last Post: 02-10-2017, 02:52 PM
  4. New DM Tools
    By TattleTale in forum Original Content
    Replies: 10
    Last Post: 10-13-2016, 07:59 AM
  5. Object arrangement tools
    By Zolorado in forum Suggestions
    Replies: 5
    Last Post: 06-26-2016, 10:49 AM

Posting Permissions

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