▶
is_valid_variable()
This function will return true if var_name is a variable with an assigned value in the current macro script, otherwise it will return false. I'm using this in a macro to test and see if the macro was provided any runtime arguments (arg0), which changes what the macro should do. Here's a snippet of a macro that checks if a variable (in this case a macro's runtime argument arg0) is valid in order to change the macro's behavior:
[ 2025-01-11 22:50:01 CET ] [ Original post ]
- Added macro function 'is_valid_variable(var_name)'
- Added script comments * (Comments begin with the pound sign '#', and MUST END WITH A SEMICOLON, just like any other line.) Any line beginning with a '#' will not be executed as a part of the macro.
- documentation updated
- Fixed bug where multiple tokens in a stack would scale up as if they were all picked up. Only the top token (fully visible token) in a stack will be picked up.
is_valid_variable(var_name)
This function will return true if var_name is a variable with an assigned value in the current macro script, otherwise it will return false. I'm using this in a macro to test and see if the macro was provided any runtime arguments (arg0), which changes what the macro should do. Here's a snippet of a macro that checks if a variable (in this case a macro's runtime argument arg0) is valid in order to change the macro's behavior:
if is_valid_variable(arg0) {
target = pick_token();
target_value = self.get_value("skills/Small Guns/value") - target.get_value("armour/locations/head") - self.RAD_PENALTY;
show(self.get_value("bio/name") + " fires their " + arg1);
}
else {
target_value = self.get_value("skills/Small Guns/value") - self.RAD_PENALTY;
}
...
...
...
if is_valid_variable(arg0) {
- All of my weapon macros pass the weapon's damage and name to the macro of the appropriate skill for the weapon used. So If I am shooting a Beretta M9, I run the "Small Guns" macro with "2d6" and "Beretta M9" as runtime arguments. So, if arg0 is a valid variable (if arg0 has a value assigned to it) then I know I am attacking attacking someone. In that case, we want to adjust our target number by the enemy's armour value.
- If we are just running the 'Small Guns' macro on its own (like in a circus' shooting gallery), then arg0 will NOT be a valid variable (it will have no value assigned to it), and the target number will just be the value of our "Small Guns" skill, and there is no need to choose a target.
[ 2025-01-11 22:50:01 CET ] [ Original post ]
Gothic Virtual Tabletop
Mr. Wallaby
Developer
Mr. Wallaby
Publisher
2024
Release
Game News Posts:
21
🎹🖱️Keyboard + Mouse
🕹️ Partial Controller Support
🎮 Full Controller Support
🕹️ Partial Controller Support
🎮 Full Controller Support
Positive
(18 reviews)
Public Linux Depots:
- [0 B]
Gothic Virtual Tabletop is a virtual tabletop application that can be customized to support most TTRPG systems, including wargames.
Built-in System-agnostic Character Sheets
- Customizable character sheets support any system from the ever-present D&D, to that fantasy heartbreaker from the 90s.
- Easily access character sheets by double clicking on a token, not by switching to another tab.
Revolutionary Hotbar System
When you select a token, a state-of-the-art Hotbar appears at the bottom of the screen. The Hotbar displays all the information a player or GM cares about in one compact space, making GM-ing large combats or managing multiple playable characters a breeze. Gone are the days of dozens of tabs worth of stat blocks cluttering your monitor!Robust Macro System
- Roll dice, edit your character sheet, send predefined messages in chat, and even play sounds at one press of a button.
- Customize the color and text of any macro button, and where they should be shown on the Hotbar
- Support for user-defined variables, which can include mathematical equations and/or any value on a token's character sheet.
Support For Almost Any TTRPG System or Wargame
Default Character Sheet values and macros, as well as compendium weapons, armour, spells, and tables are defined in .json files and stored independently on a per-campaign basis. Easily customize Gothic Virtual Tabletop to suit each and every one of your needs.Built-In Compendium
Define weapons, armour, abilities, spells, and rollable tables present in your system of choice and easily add them to a token at the press of a button.Built-in Jukebox
Browse your campaign's music library and add queue up the perfect songs for the occasion!Absolutely Sublime Text Chat
- Rolls always show what the individual die rolls were, even when part of a complex equation or macro.
- Easily whisper to other players, or the GM.
- Roll dice for all to see, or just to the GM in secret.
- Roll on tables and show the result in chat.
- Support for robes and wizard hats.
Per-map whiteboard layer for drawing up battle strategies or doodling while that player takes the slowest turn ever.
Feature-rich Map editor
- Quick and easy fog-of-war tools to keep curious players from scouting out secret rooms and ambushes.
- Adjust the grid to fit any image, whether it has a baked-in grid or not.
- Turn grid lines on and off.
- Supports Common types of map grids, including square, hex (horizontal), hex (vertical), and no grid.
No Loading Screens
Okay, there is one loading screen that appears when a player first connects to the server and downloads assets. After that, you're free to game in peace.Self Hosted
- All your maps, tokens, sounds, and music files are stored locally, on your computer. Gone are the days of juggling storage space when trying to upload a new map for your next encounter!
- Password Protected Lobbies
- Easily view who is connected to the server in the bottom left, a green bubble means connected, and yellow means connecting.
MINIMAL SETUP
- OS: Kernel 5.4+
- Processor: Quad Core Intel 4th gen (4000) or equivalentMemory: 8 GB RAM
- Memory: 8 GB RAM
- Graphics: Dedicated Card RecommendedNetwork: Broadband Internet connection
- Storage: 200 MB available space
- OS: Kernel 5.4+
- Processor: Anything within the last 5 yearsMemory: 8 GB RAM
- Memory: 8 GB RAM
- Graphics: NVIDIA GTX 1080 or equivalent and aboveNetwork: Broadband Internet connection
- Storage: 200 MB available space
GAMEBILLET
[ 6098 ]
GAMERSGATE
[ 1352 ]
FANATICAL BUNDLES
HUMBLE BUNDLES
by buying games/dlcs from affiliate links you are supporting tuxDB