Scripted Guis

Define and validate Victoria 3 scripted GUI definitions for tooltips and GUI behavior.

21|8|Updated Jun 23, 2025
One-click install
npx skills add https://github.com/mattia2110/tech-and-res --skill scripted-guis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Scripted Guis
Source: https://github.com/mattia2110/tech-and-res/tree/main/.agents/skills/scripted_guis
Command: npx skills add https://github.com/mattia2110/tech-and-res --skill scripted-guis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for defining and validating Victoria 3 scripted GUI definitions to drive dynamic UI elements such as tooltips and actions.

Core Features & Use Cases

  • Guidance for SGUIs: Helps you structure scripted GUI definitions that control visibility, usability, and tooltip content in the UI.
  • Localization & GUI Traceability: Shows how SGUIs connect to localization keys, GUI files, and related common content for coherent modding.
  • Quality & Consistency: Emphasizes frontmatter requirements and references vanilla patterns to ensure consistency with the game's scripting model.

Quick Start

Edit or create files under common/scripted_guis to define or review SGUIs that drive tooltips and GUI behavior.

Frequently Asked Questions about Scripted Guis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create scripted GUIs in Victoria 3 to control tooltips and UI behavior?

Scripted GUIs in Victoria 3 are defined by creating files under common/scripted_guis, ensuring frontmatter includes name and description to properly control tooltip visibility and dynamic UI behavior.

What are Victoria 3 scripted GUI definitions used for in modding?

Victoria 3 scripted GUI definitions are used in modding to drive dynamic UI elements, specifically controlling tooltip content, visibility, and usability while connecting GUI code to localization keys.

How do scripted GUIs connect to localization keys in Victoria 3 mods?

Scripted GUIs connect to localization keys by tracing links between GUI definitions, localization files, and related common content, ensuring coherent modding behavior across dynamic UI elements and tooltips.

Do I need frontmatter in Victoria 3 scripted GUI files?

Yes, frontmatter is required in Victoria 3 scripted GUI files and must include both name and description fields to ensure quality and consistency with the game's vanilla scripting patterns.

What's the best way to validate Victoria 3 scripted GUI definitions for consistency?

The best way to validate Victoria 3 scripted GUI definitions is to reference vanilla patterns and ensure proper frontmatter, tracing links between localization, GUI code, and scripting definitions for coherent modding.