Class: Game_System

Game_System

new Game_System()

The game object class for the system data.

Methods

battleBgm()Object

Gets the battle bgm
Returns:
TypeDescription
ObjectThe battle bgm

battleCount()number

Get the amount of battles
Returns:
TypeDescription
numberAmount of battles

defeatMe()Object

Gets the defeat me
Returns:
TypeDescription
ObjectThe defeat me

disableEncounter()

Disables encounters

disableFormation()

Disables the formation command

disableMenu()

Disables the menu

disableSave()

Disables saving

enableEncounter()

Enables encounters

enableFormation()

Enables the formation command

enableMenu()

Enables the menu

enableSave()

Enables saving

escapeCount()number

Get the amount of battles escaped
Returns:
TypeDescription
numberAmount of battles escaped

initialize()

Initialize the game system

isAutosaveEnabled()boolean

Check if the game has autosave enabled
Returns:
TypeDescription
booleanTrue if autosave enabled

isCJK()boolean

Check if the locale is Chinese/Japanese/Korean
Returns:
TypeDescription
booleanTrue if Chinese/Japanese/Korean

isChinese()boolean

Check if the locale is Chinese
Returns:
TypeDescription
booleanTrue if Chinese

isEncounterEnabled()boolean

Check if encounters are enabled
Returns:
TypeDescription
booleanTrue if encounters are enabled

isFormationEnabled()boolean

Check if the formation command is enabled
Returns:
TypeDescription
booleanTrue if the formation command is enabled

isJapanese()boolean

Check if the locale is Japanese
Returns:
TypeDescription
booleanTrue if Japanese

isKorean()boolean

Check if the locale is Korean
Returns:
TypeDescription
booleanTrue if Korean

isMenuEnabled()boolean

Check if the game has its menu enabled
Returns:
TypeDescription
booleanTrue if menu enabled

isMessageSkipEnabled()boolean

Check if the game has message skip enabled
Since:
  • 1.8.1
Returns:
TypeDescription
booleanTrue if message skip enabled

isRussian()boolean

Check if the locale is Russian
Returns:
TypeDescription
booleanTrue if Russian

isSaveEnabled()boolean

Check if the game has save enabled
Returns:
TypeDescription
booleanTrue if save enabled

isSideView()boolean

Check if the game is side view battle system
Returns:
TypeDescription
booleanTrue if side view

mainFontFace()string

Get the main font face
Returns:
TypeDescription
stringThe main font face

mainFontSize()number

Get the main font size
Returns:
TypeDescription
numberThe main font size

numberFontFace()string

Get the number font face
Returns:
TypeDescription
stringThe number font face

onAfterLoad()

Processing after a save file is loaded

onBattleEscape()

Processing when a battle is escaped

onBattleStart()

Processing when a battle starts

onBattleWin()

Processing when a battle is won

onBeforeSave()

Processing before a save occurs

playtime()number

Get the playtime in seconds
Returns:
TypeDescription
numberThe playtime

playtimeText()string

Get the playtime as text
Returns:
TypeDescription
stringThe playtime as text
Replays the saved bgm

replayWalkingBgm()

Replays the walking bgm
Save the current bgm

saveCount()number

Get the amount of times saved
Returns:
TypeDescription
numberAmount of times saved

saveWalkingBgm()

Save the walking bgm

saveWalkingBgm2()

Save the walking bgm 2

savefileId()number

Get the current save file id
Returns:
TypeDescription
numberSave file id

setBattleBgm(value)

Sets the battle bgm
NameTypeDescription
valueObjectThe new battle bgm

setDefeatMe(value)

Sets the defeat me
NameTypeDescription
valueObjectThe new defeat me

setSavefileId(savefileId)

Set the current save file id
NameTypeDescription
savefileIdnumberThe new save file id

setVictoryMe(value)

Sets the victory me
NameTypeDescription
valueObjectThe new victory me

setWindowTone(value)

Sets the window tone
NameTypeDescription
valueArrayThe new window tone array object

versionId()number

Get the version id
Returns:
TypeDescription
numberVersion id

victoryMe()Object

Gets the victory me
Returns:
TypeDescription
ObjectThe victory me

winCount()number

Get the amount of battles won
Returns:
TypeDescription
numberAmount of battles won

windowOpacity()number

Get the window opacity
Since:
  • Version 1.3.0
Returns:
TypeDescription
numberThe window opacity

windowPadding()number

Get the window padding
Returns:
TypeDescription
numberThe window padding

windowTone()Array

Gets the window tone
Returns:
TypeDescription
ArrayWindow tone array object