Difference between revisions of "Emuera/config"

From Era Wiki
Jump to: navigation, search
m (links, header)
(Page fully translated)
Line 1: Line 1:
== デバッグコマンド ==
+
== Debug Commands ==
※標準ではデバッグコマンドは使用できません。</br>
+
※Debug Commands are not available by default.<BR>
必要ならヘルプの設定から"デバッグコマンドを使用する"にチェックを入れてください。
+
Check the "Use Debug Commands" checkbox in the settings if necessary.
  
※この機能は[[Emuera/debug|デバッグモード]]が無かったバージョンの簡易的な機能です。</br>
+
※This is a simple feature in versions without [[Emuera/debug|debug mode]].<BR>
現バージョンでのデバッグには[[Emuera/debug|デバッグモード]]での起動を勧めます。
+
For debugging the current version, it is recommended to start with [[Emuera/debug|debug mode]].
  
スクリプト実行中(ゲーム中)、"@"で始まる文字列を入力するとデバッグコマンドとして受け付けられます。</br>
+
When the script is running (in game), entering a string beginning with "@" will be accepted as Debug Commands.<BR>
大文字小文字を区別するかどうかはemuera.config中の"大文字小文字の違いを無視する"の指定に依存します。
+
Case insensitivity depends on "Ignore capitalization" in emuera.config.
  
デバッグコマンドはERBと同じ書式で指定します。</br>
+
Debug Commands are specified in the same format as ERB.<BR>
例えば、
+
For example,
  
 
  @MONEY = 10000
 
  @MONEY = 10000
 
  @PRINTV FLAG:200
 
  @PRINTV FLAG:200
  @PRINTFORM %NAME:MASTER%のCFAG(1) = {CFLAG:MASTER:1}
+
  @PRINTFORM %NAME:MASTER%'s CFLAG(1) = {CFLAG:MASTER:1}
 
  @ADDCHARA 1
 
  @ADDCHARA 1
  
のように書くことができます。</br>
+
It can be written as follows.<BR>
また、単に変数や数式を入力した場合、それらの値が出力されます</br>
+
Also, if you simply enter a variable or formula, those values will be output<BR>
(下記の@の後の半角スペースは必須ではありません)
+
(A space after @ is not required below.)
 
  @ FLAG:200
 
  @ FLAG:200
  @ @"%NAME:MASTER%のCFAG(1) = {CFLAG:MASTER:1}"
+
  @ @"%NAME:MASTER%'s CFLAG(1) = {CFLAG:MASTER:1}"
  
ただしIFやCALLのようなスクリプトの流れを変える命令や、INPUTやWAITのように入力を要求する命令は使えません。
+
However, instructions that change the flow of the script, such as IF and CALL, <BR>and instructions that require input, such as INPUT and WAIT, cannot be used.
  
  
いくつかのERBにはない命令があります。
+
There are some instructions that are not in the ERB.
  
 
* @REBOOT
 
* @REBOOT
::再起動してemuera.configやcsv、erbファイルを読み直します。
+
::Restart and re-read the emuera.config, csv and erb files.
 
* @OUTPUT
 
* @OUTPUT
::現在のログをemuera.logに出力します。既に存在する場合は上書きされます。</br>これはOUTPUTLOG命令と同じ動作です。
+
::Outputs the current log to emuera.log. If it already exists, it will be overwritten. <BR>This is the same behavior as the OUTPUTLOG instruction.
 
* @EXIT
 
* @EXIT
::Emueraを終了します。QUIT命令と同じ動作です。
+
::Quit Emuera, which is the same as the QUIT instruction.
 
* @CONFIG
 
* @CONFIG
::設定ダイアログを開きます。
+
::Open the configuration dialog.
 
* @DEBUG
 
* @DEBUG
::デバッグダイアログを開きます。これは[[Emuera/debug|デバッグモード]]で起動した場合のみ有効です。
+
::Open the debug dialog. This only works if you start with [[Emuera/debug|debug mode]].
  
上記以外、つまり通常のERBの命令を実行した場合、MASTERの名前・呼び名が強制的に"イカサマ"になります。</br>
+
In case of other than the above, i.e. if a normal ERB instruction is executed, the name of MASTER will be forcibly changed to "CHEATER".<BR>
これはデバッグコマンドがチートとしての性質も持つため、乱用を防ぐための措置です。
+
This is a measure to prevent abuse, since Debug Commands also has the nature of being cheats.

Revision as of 22:19, 9 April 2020

Debug Commands

※Debug Commands are not available by default.
Check the "Use Debug Commands" checkbox in the settings if necessary.

※This is a simple feature in versions without debug mode.
For debugging the current version, it is recommended to start with debug mode.

When the script is running (in game), entering a string beginning with "@" will be accepted as Debug Commands.
Case insensitivity depends on "Ignore capitalization" in emuera.config.

Debug Commands are specified in the same format as ERB.
For example,

@MONEY = 10000
@PRINTV FLAG:200
@PRINTFORM %NAME:MASTER%'s CFLAG(1) = {CFLAG:MASTER:1}
@ADDCHARA 1

It can be written as follows.
Also, if you simply enter a variable or formula, those values will be output
(A space after @ is not required below.)

@ FLAG:200
@ @"%NAME:MASTER%'s CFLAG(1) = {CFLAG:MASTER:1}"

However, instructions that change the flow of the script, such as IF and CALL,
and instructions that require input, such as INPUT and WAIT, cannot be used.


There are some instructions that are not in the ERB.

  • @REBOOT
Restart and re-read the emuera.config, csv and erb files.
  • @OUTPUT
Outputs the current log to emuera.log. If it already exists, it will be overwritten.
This is the same behavior as the OUTPUTLOG instruction.
  • @EXIT
Quit Emuera, which is the same as the QUIT instruction.
  • @CONFIG
Open the configuration dialog.
  • @DEBUG
Open the debug dialog. This only works if you start with debug mode.

In case of other than the above, i.e. if a normal ERB instruction is executed, the name of MASTER will be forcibly changed to "CHEATER".
This is a measure to prevent abuse, since Debug Commands also has the nature of being cheats.