Game_System
Kind: global class
- Game_System
- new Game_System()
- .initialize()
- .isJapanese() ⇒
boolean
- .isChinese() ⇒
boolean
- .isKorean() ⇒
boolean
- .isCJK() ⇒
boolean
- .isRussian() ⇒
boolean
- .isSideView() ⇒
boolean
- .isSaveEnabled() ⇒
boolean
- .disableSave()
- .enableSave()
- .isMenuEnabled() ⇒
boolean
- .disableMenu()
- .enableMenu()
- .isEncounterEnabled() ⇒
boolean
- .disableEncounter()
- .enableEncounter()
- .isFormationEnabled() ⇒
boolean
- .disableFormation()
- .enableFormation()
- .battleCount() ⇒
number
- .winCount() ⇒
number
- .escapeCount() ⇒
number
- .saveCount() ⇒
number
- .versionId() ⇒
number
- .windowTone() ⇒
Array
- .setWindowTone(value)
- .battleBgm() ⇒
Object
- .setBattleBgm(value)
- .victoryMe() ⇒
Object
- .setVictoryMe(value)
- .defeatMe() ⇒
Object
- .setDefeatMe(value)
- .onBattleStart()
- .onBattleWin()
- .onBattleEscape()
- .onBeforeSave()
- .onAfterLoad()
- .playtime() ⇒
number
- .playtimeText() ⇒
string
- .saveBgm()
- .replayBgm()
- .saveWalkingBgm()
- .replayWalkingBgm()
- .saveWalkingBgm2()
new Game_System()
管理游戏的系统设置,包括存档、菜单、遇敌等功能的启用状态,
以及战斗统计、音频设置等系统级数据
game_System.initialize()
初始化系统对象的所有属性,设置默认状态
Kind: instance method of Game_System
game_System.isJapanese() ⇒ boolean
是否日文
Check if the language is Japanese
Kind: instance method of Game_System
Returns: boolean
- 如果是日文环境返回 true
game_System.isChinese() ⇒ boolean
是否中文
Check if the language is Chinese
Kind: instance method of Game_System
Returns: boolean
- 如果是中文环境返回 true
game_System.isKorean() ⇒ boolean
是否韩文
Check if the language is Korean
Kind: instance method of Game_System
Returns: boolean
- 如果是韩文环境返回 true
game_System.isCJK() ⇒ boolean
是否日文/中文/韩文
Check if the language is CJK (Chinese, Japanese, Korean)
Kind: instance method of Game_System
Returns: boolean
- 如果是 CJK 语言环境返回 true
game_System.isRussian() ⇒ boolean
是否俄文
Check if the language is Russian
Kind: instance method of Game_System
Returns: boolean
- 如果是俄文环境返回 true
game_System.isSideView() ⇒ boolean
是否侧面图
Check if using side view battle system
数据库-系统-选项-使用 SideView 战斗系统
Kind: instance method of Game_System
Returns: boolean
- 如果使用侧面战斗系统返回 true
game_System.isSaveEnabled() ⇒ boolean
是否存档启用
Check if save is enabled
Kind: instance method of Game_System
Returns: boolean
- 如果存档功能启用返回 true
game_System.disableSave()
禁用存档
Disable save function
Kind: instance method of Game_System
game_System.enableSave()
启用存档
Enable save function
Kind: instance method of Game_System
game_System.isMenuEnabled() ⇒ boolean
是否菜单启用
Check if menu is enabled
Kind: instance method of Game_System
Returns: boolean
- 如果菜单功能启用返回 true
game_System.disableMenu()
禁用菜单
Disable menu function
Kind: instance method of Game_System
game_System.enableMenu()
启用菜单
Enable menu function
Kind: instance method of Game_System
game_System.isEncounterEnabled() ⇒ boolean
是否遇敌启用
Check if encounter is enabled
Kind: instance method of Game_System
Returns: boolean
- 如果遇敌功能启用返回 true
game_System.disableEncounter()
禁用遇敌
Disable encounter function
Kind: instance method of Game_System
game_System.enableEncounter()
启用遇敌
Enable encounter function
Kind: instance method of Game_System
game_System.isFormationEnabled() ⇒ boolean
是否整队启用
Check if formation is enabled
Kind: instance method of Game_System
Returns: boolean
- 如果整队功能启用返回 true
game_System.disableFormation()
禁用整队
Disable formation function
Kind: instance method of Game_System
game_System.enableFormation()
启用整队
Enable formation function
Kind: instance method of Game_System
game_System.battleCount() ⇒ number
战斗次数
Get battle count
Kind: instance method of Game_System
Returns: number
- 战斗总次数
game_System.winCount() ⇒ number
胜利次数
Get win count
Kind: instance method of Game_System
Returns: number
- 胜利总次数
game_System.escapeCount() ⇒ number
逃跑次数
Get escape count
Kind: instance method of Game_System
Returns: number
- 逃跑总次数
game_System.saveCount() ⇒ number
保存次数
Get save count
Kind: instance method of Game_System
Returns: number
- 保存总次数
game_System.versionId() ⇒ number
版本 ID
Get version ID
Kind: instance method of Game_System
Returns: number
- 游戏版本 ID
game_System.windowTone() ⇒ Array
窗口色调
Get window tone
Kind: instance method of Game_System
Returns: Array
- 窗口色调数组或系统默认色调
game_System.setWindowTone(value)
设置窗口色调
Set window tone
Kind: instance method of Game_System
Param | Type | Description |
---|---|---|
value | Array | 色调值数组 |
game_System.battleBgm() ⇒ Object
战斗 BGM
Get battle BGM
Kind: instance method of Game_System
Returns: Object
- 战斗背景音乐对象或系统默认 BGM
game_System.setBattleBgm(value)
设置战斗 BGM
Set battle BGM
Kind: instance method of Game_System
Param | Type | Description |
---|---|---|
value | Object | 背景音乐对象 |
game_System.victoryMe() ⇒ Object
胜利 ME
Get victory ME
Kind: instance method of Game_System
Returns: Object
- 胜利音效对象或系统默认 ME
game_System.setVictoryMe(value)
设置胜利 ME
Set victory ME
Kind: instance method of Game_System
Param | Type | Description |
---|---|---|
value | Object | 音效对象 |
game_System.defeatMe() ⇒ Object
战败 ME
Get defeat ME
Kind: instance method of Game_System
Returns: Object
- 战败音效对象或系统默认 ME
game_System.setDefeatMe(value)
设置战败 ME
Set defeat ME
Kind: instance method of Game_System
Param | Type | Description |
---|---|---|
value | Object | 音效对象 |
game_System.onBattleStart()
当战斗开始
Called when battle starts
Kind: instance method of Game_System
game_System.onBattleWin()
当战斗胜利
Called when battle is won
Kind: instance method of Game_System
game_System.onBattleEscape()
当战斗逃跑
Called when escaping from battle
Kind: instance method of Game_System
game_System.onBeforeSave()
当保存之前
Called before saving
Kind: instance method of Game_System
game_System.onAfterLoad()
当加载之后
Called after loading
Kind: instance method of Game_System
game_System.playtime() ⇒ number
游戏时间
Get playtime in seconds
Kind: instance method of Game_System
Returns: number
- 游戏时间(秒)
game_System.playtimeText() ⇒ string
游戏时间文本
Get playtime as formatted text
Kind: instance method of Game_System
Returns: string
- 格式化的游戏时间文本(HH:MM:SS)
game_System.saveBgm()
保存 BGM
Save current BGM
Kind: instance method of Game_System
game_System.replayBgm()
还原 BGM
Restore saved BGM
Kind: instance method of Game_System
game_System.saveWalkingBgm()
保存行走 BGM
Save walking BGM
上载具的时候保存当前的 BGM。
Save current BGM when getting on vehicle.
Kind: instance method of Game_System
game_System.replayWalkingBgm()
还原行走 BGM
Restore walking BGM
Kind: instance method of Game_System
game_System.saveWalkingBgm2()
保存行走 BGM 2
Save walking BGM 2
地图场景刚开始的时候如果在载具中就保存地图的 BGM。
Save map BGM when starting map scene if in vehicle.
Kind: instance method of Game_System