Calling Variables in Message box

Created at
Updated at

Anyone know if its possible to call a variable using the "Show Text" command.

For example, in older rpg makers. You could use the "Show text" and in the box for text.

\v[x] 

\v = the command to call a variable

[x] = the number for the variable you are calling

this can be used to reference "Common events" and such.

I tried using said command: \v[x] but it didn't work.

I'm trying to recreate a time system using common events and variables. When the player uses an item it will show a text calling the variables representing "minutes" and "hours".

Comments

Created at
Updated at

The control characters are listed in the following source code Assets\RPGMaker\Codebase\Runtime\Common\ControlCharacter\ControlCharacter.cs * Japanese only. And I could not find this in any manual or documentation anywhere!  ⇒Sorry. This is documented in below Beginner's Tutorial.         https://rpgmakerunite.com/en/learn/006_eng.html#01c

/// 制御文字: ///  /// 【置換系】 ///  /// \V[n]   変数n番の値に置き換えられます。 /// \N[n]   アクターn番の名前に置き換えられます。 /// \P[n]   パーティメンバーn番に置き換えられます。 /// \I[n]   アイコンn番を描画します。 /// \G      通貨単位に置き換えられます。 /// \\      バックスラッシュに置き換えられます。 ///  /// 【設定系】 ///  /// \C[n]   以降の文字をn番の色で表示します。 /// \PX[n]  ウィンドウの左上を原点にX座標を設定します。 /// \PY[n]  ウィンドウの左上を原点にY座標を設定します。 /// \FS[n]  文字サイズをnに変更します。 /// \{      文字サイズを1段階大きくします。 /// \}      文字サイズを1段階小さくします。 ///  /// 【動作系】 ///  /// \!      ボタン入力を待ちます。 /// \.      1/4秒待ちます。 /// \|      1秒待ちます。 /// \>      同じ行の残りの文字を一瞬で表示します。 /// \<      文字を一瞬で表示する効果を取り消します。 /// \^      文章表示後の入力待ちをしません。 /// /// \f      改ページをします (バトルの場合のみ)。Uniteで追加されたもの? ///  /// 【他】 ///  /// \$      所持金のウィンドウを開きます。

In english, 

/// Control characters: ///  /// 【replace】 ///  /// \V[n]   Replaced by the value of variable number n. /// \N[n]   Replaced by the name of actor n-th. /// \P[n]   Replaced by party member number n. /// \I[n]   Draw icon number n. /// \G      Replaced by the currency unit. /// \\      Replaced by a backslash. ///  /// 【config】 ///  /// \C[n]   The following characters are displayed in color n. /// \PX[n]  Sets the X coordinate with the origin at the upper left corner of the window. /// \PY[n]  Sets the Y coordinate with the origin at the upper left corner of the window. /// \FS[n]  Change the font size to n. /// \{      Increase the font size by one step. /// \}      Decrease the font size by one step. ///  /// 【timing】 ///  /// \!      Wait for button input. /// \.      Wait 1/4 second. /// \|      Wait 1 second. /// \>      The remaining characters of the same line are displayed in an instant. /// \<      Cancel the effect of displaying text in an instant. /// \^      Does not wait for input after displaying a sentence. /// /// \f      Page breaks (only for battles). added in Unite? ///  /// 【others】 ///  /// \$      Opens a window of possessions.


Created at

Thank you so much! I haven't messed with RPG Maker in a while so it slipped my mind that it would be case sensitive..

I was using a lower case \v[n]. I changed it to uppercase \V[n] and now it works perfectly. Thank you!


Created at

Thank you Kakudo Yuie!