Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Nov 12, 2023
1 parent d846fd0 commit 4e2be92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/guide/custom-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e2be92

Please sign in to comment.