From 4e2be92c8bb73e207fac80dcbf0853bdc6db56fa Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Sun, 12 Nov 2023 21:22:43 +0300 Subject: [PATCH] update docs --- docs/guide/custom-variables.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/custom-variables.md b/docs/guide/custom-variables.md index 88439f5a4..03391cd8a 100644 --- a/docs/guide/custom-variables.md +++ b/docs/guide/custom-variables.md @@ -54,12 +54,15 @@ The following script will show an input field UI where user can enter an arbitra ; You can then inject the assigned `name` variable in naninovel scripts. Archibald: Greetings, {name}! -{name}: Yo! ; ...or use it inside set and conditional expressions. @set score+=3 if:name=="Felix" ``` +::: tip +To make character names dynamic, use [display name](/guide/characters#display-names) feature. +::: + You can inject the custom variables to any parameter values as long as the type allows. Eg, you can't assign a string (text) to an integer (number) parameter. ```nani