Capture Tags and Attributes

⌘K
  1. Home
  2. KAG References
  3. Advanced Settings
  4. Capture Tags and Attributes

Capture Tags and Attributes

Terminology

In .ks scripts:

  • Text enclosed in square brackets [ ] is called a tag.
  • The first word inside the brackets is the tag name.
  • Subsequent words separated by spaces are attributes (dynamic parameters for the tag).

Example:
[charaName name="Producer"]

  • Tag Name: charaName
  • Attribute: name (with the value "Producer")
tags in .ks

Configuration

The Capture Tags and Attributes feature enables you to extract strings from specific script tags and display them in spreadsheet cells for easy management.

Example Workflow

Below is a sample .ks file viewed in a text editor:

NozomiA.ks opened by the Text Editor

Note the [showStatus] tag containing dynamic variables (stat1 and stat2).

To capture these values:

  • Tag: [showStatus]
  • Attributes: stat1, stat2

Configure the settings as shown:

Added capture tags and atributes

Result:
The extracted values from [showStatus] tags will populate separate cells in your project spreadsheet.

ShowStatus Stat1 and Stat2 show in the cells

Tags , ,
Was this article helpful to you? No Yes

How can we help?