A module for Foundry VTT. Allows you to use a table as the Display Name for a token so each new token will get a random name. It can also roll random biographies for tokens when used with Better Rolltables.
First, grab your random name table and drag it into a Journal entry. That will give you some
text that looks similar to @RollTable[2cbm3cP46dxcxO5Z]{Dwarf Female Name}
. Now, open the Actor
and click Prototype Token. Paste your @RollTable[...
text into the Token Name. When you drag your Actor
onto the map to create a new Token, its name will be randomized!
When multiple lines are returned from a table, the lines will be joined together with a space. For example, you could have a roll table formula of 1d1, and have two results which are also tables for a firstname and a lastname, both with range 1-1.
Story tables are currently bugged in Better Rolltables. When this changes, we will update this README with instructions on how to randomize biographies.
This module provides a few methods under the game.allGoblinsHaveNames
namespace for use in macros or other modules.
game.allGoblinsHaveNames.rerollSelectedTokens()
- Re-rolls the names of all selected tokens.game.allGoblinsHaveNames.rollFromTableString(tableStr)
- Takes a string like@RollTable[...
or@Compendium[...
and returns a random result from that table.
You can install this module through the Foundry module UI
You can file an issue on github if you're running into a bug or reach me on the Foundry VTT discord as Cattegy#7436.