0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ティラノスクリプト解析

Last updated at Posted at 2025-06-08

TYRANOとtyrano(tyrano.js, kag.js)

TYRANO = object(tyrano.core);
TYRANO.kag = object(tyrano.plugin.kag);
TYRANO.kag.tyrano = TYRANO;
 ←kagからTYRANOを参照するため

TYRANOとtyranoは別物
tyranoとTYRANO.kag.tyranoは別物
TYRANOとTYRANO.kag.tyranoは同じもの

kag.js

init

「コンフィグファイルの読み込み」、「ゲームの初期化」、「first.ks読み込み」などを行う。

parseScenario

シナリオファイルをタグ配列にパース。

loadScenario

parseScenarioでタグ配列を取得し、実行していく。

kag.tag.js

nextOrder

master_tagとmacroに対して、その処理を実行する。
また、kag.trigger("nextorder")によって、開発ツールにタグの実行を通知したりもしている。

タグの記述

vital: 必須パラメータ
pm: 任意パラメータ(デフォルト値つき)
start関数に処理を記述

[chara_show]

デフォルトでは、div.0_fore(page: "fore", layer: "0")下にdiv.tyrano_charaを追加し、キャラ画像を表示。

tyrano.base.js

body直下のdiv#tyrano_baseの設定。

kag.layer.js

tyrano_base下のdiv#root_layer_gameとdiv#root_layer_systemの設定。
root_layer_gameは背景、キャラクターなど。
root_layer_systemはメッセージウィンドウ、UI、メニューなど。

kag.menu.js

メニューボタンをクリックすると、showMenu関数が呼ばれ、div.layer_menu -> div#menu_menu_wrapper -> div.display_menuに各種コンフィグボタンを表示

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?