Skip to content

v0.8.0

Choose a tag to compare

@roileaf roileaf released this 02 Dec 06:55
· 42 commits to main since this release

Update the Foundry module and the bot.

  • /map can switch scenes: the GM's Switch scene menu (under the GM's map) lists the active scene and the scenes in Foundry's navigation bar. Picking one switches /map for everyone, and Foundry makes it the active scene when the GM opens the world.
  • /map is private: each user gets their own map that only they see. A player's shows what their own tokens see; the GM's shows every token by its real name, with no fog. The menus sit under the map: the GM's Token to move (real names; a masked creature says what players see, e.g. "Creature") and Switch scene; a player with several tokens (a familiar, a companion) gets Your token. Players move only the tokens they own in Foundry. Maps posted in the channel by 0.7.0 open a private map when a button is pressed.
  • /map follows the scene's vision when Token Vision is on in Foundry, drawn the way Foundry draws it. A player's map shows what their own tokens see, as in Foundry: what they have line of sight to (sight walls, limited walls, vision cones) and that is lit by daylight (Global Illumination), a lamp or a carried light, or within the token's darkvision. Lights are drawn as light: their radius, cone and colour, stopped by light walls, with darkness sources putting them out. Places out of sight are black, or dimmed where explored when the scene has fog exploration. Creatures and other party members out of sight aren't drawn; a creature only heard (a hearing sense, not behind a sound wall) shows as a dashed outline with no name or picture. The bot works this out itself, so it stays right after moves made in Discord.
    • Explored areas are shared by the party: they start from the linked players' fog in Foundry and grow with what each player's tokens see in Discord.
    • No meta from moving: creatures a player can't see don't steer Go to…, and the move stops where it runs into one ("something you couldn't see is in the way").
    • Not simulated: each player's own explored area (the party shares one), detection modes other than hearing, conditions like Invisible, and levels/elevation.
  • /map counts the turn in each system's terms and says what's left:
    • PF2e / SF2e: Strides and actions, e.g. "30 ft = 2 Strides (2 actions), 20 ft left in this Stride";
    • D&D 5e: Speed, then the Dash action ("45 ft: needs the Dash action, 15 ft left");
    • Draw Steel: squares for the move action, then the main action used to move;
    • Daggerheart: range bands: within Close range (6 squares) is part of an action, beyond it may need an Agility Roll;
    • other systems: against Speed when the token has one.
  • The setting is now Share scenes with Discord: it sends the navigation-bar scenes too (backgrounds only when they change). Activating a scene in Foundry still switches /map. It also sends sight-blocking walls, lights, darkness and Global Illumination, each token's vision, light, facing and senses, the players' explored fog, each token's real name (used only in the GM's private menu) and which linked players own it; changing an actor's ownership re-syncs.
  • The bot no longer crashes on an incomplete scene or token image; it skips the image.