WebGAL Script Writing Assistant
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_0064faa7/webgalskill
About this skill
Problem
WebGAL visual novel scripts compress background changes, character placements, branches, variables, and audio fades into semicolon-delimited inline commands. Hand-writing these scripts often creates mistakes around parameter order, -next / -concat / -notend, conditional choices (visible condition)[enabled condition], and the difference between global and runtime variables, causing skipped transitions, missing audio fades, or branches that do not return. For example, changeScene does not automatically clear the stage, while callScene returns after execution; mixing them can leave stale stage state. A fade-out command such as bgm:none -enter=3000; also needs to be placed at the correct dialogue or transition point.
How It Works
The skill breaks WebGAL commands into reference modules for basics, dialogue, backgrounds and figures, scenes and branches, variables, audio, video, animation, and effects:
- Syntax checks: prioritize validating that commands end with
;, use ASCII colons and semicolons, and follow thecommand:value -param=value;structure. - Transition flow: structure shots, backgrounds, and character entrances/exits using
changeBg,changeFigure,setTextbox,setAnimation, andsetTransition. - Branch logic: handle choices, jumps, and state checks with
choose,label/jumpLabel,setVar, and-when. - Media handling: define playback, fade-in/fade-out, and stop behavior for
bgm,-V,playEffect, andplayVideousing the documented asset parameters. - Output format: return
wscode blocks and explain parameter behavior, optimization points, and possible side effects outside the code.
Boundaries
It is intended for projects that already have image, audio, and video assets and mainly use built-in WebGAL commands for script orchestration. It does not create art assets or replace the engine runtime; custom JSON animations, stacked Pixi effects, and save-file variables such as $userData require existing project configuration or file structure.
Use Cases
- While drafting WebGAL panels, use the skill to check `changeScene` versus `callScene` return behavior and fix leftover stage state.
- When adding voice lines and BGM fade-out to a dialogue flow, generate runnable scripts with `bgm`, `-V`, and `playEffect` parameters.
- When migrating chapter branches from manual labels to `choose`, `label`, and `jumpLabel`, verify choice files and jump targets.
- Before adding character entrance and exit animations, confirm `setAnimation` and `setTransition` targets and parameter syntax.
Best For
- A game writer on a visual novel schedule who must turn chapter staging requirements into WebGAL commands and quickly trace branch or voice issues.
- An indie game creator who needs to verify background, figure, BGM, and effect parameters so scripts play reliably at each node.
- An interactive-content instructor who needs to convert example conditional choices and variable logic into runnable WebGAL branch scripts.
- A technical maintainer taking over an old project who needs to audit `changeScene`, `callScene`, and global variables to fix stage-state leftovers.
Related Skills
A multi-platform writing workflow for WeChat that emphasizes information gain, scannability, SEO/GEO, and localization to produce verifiable, high-signal blog posts.
Search YiQiXiu electronic album templates for brochures, product manuals, magazines, mobile albums, portfolios, and meeting materials, returning preview links and page views.
Generate structured company strategic planning reports from policy, industry, competitor, and internal data, with Markdown and DOCX output.
Rewrites MD, PDF, or TXT material into a mobile-friendly WeChat article with title candidates, outline, and self-check.