![]() įor more information on the conditional expression format and available operators see the script expressions guide. Vestibulum sit amet dolor non dolor placerat vehicula. Line is considered a generic text statement if doesn't start with any of the predefined statement literals: To make writing scripts with large amounts of text more comfortable generic text lines are used. # Commands API Referenceįor the list of all the currently available commands with a summary, parameters and usage examples see commands API reference. ![]() Some parameters however are required in order for the command to execute and should always be specified. For example, when a command is used without specifying any parameters it will reset text of a default printer, but you can also set a specific printer ID like this: printer:Dialogue. ![]() It means they either have a predefined value or just doesn't require any value in order for the command to be executed. ![]() Most of the command parameters are optional. There could be only one nameless parameter per command and it should always be specified before any other parameters. "PianoTheme" here is the value of the "BgmPath" String parameter. A parameter is considered nameless when it could be used without specifying its name.įor example, a command expects a nameless parameter specifying the name of the music track to PianoTheme Most of the commands have a nameless parameter. Eg for string list: foo,bar,"Lorem ipsum.", for decimal list: 12,-8,0.105,2 Eg for named integer: foo.8, bar.-20.Ī comma-separated list of values of one of the above types. Don't forget to wrap the string in double quotes in case it contain spaces, eg: "Lorem ipsum dolor sit amet.".Ī number which is not a fraction a whole number, eg: 1, 150, -25.Ī decimal number with fraction delimited by a dot, eg: 1.0, 12.08, -0.005.Ĭan have one of two possible values: true or false (case-insensitive).Ī name string associated with a value of one of the above types. # Parameter Value Typesĭepending on the command parameter, it could expect one of the following value types: TypeĪ simple string value, eg: LoremIpsum. If you find yourself specifying wait:false more often than not, consider disabling Wait By Default option in script player configuration this way the player won't wait the commands, unless wait parameter is explicitly set to true. The implementing class also has a attribute applied, so you can use both and statements in the script to invoke this command.Ĭommand identifiers are case-insensitive all the following statements are valid and will invoke the same AutoSave command: This could either be name of the C# class that implements the command or the command's alias (if it's applied via CommandAlias attribute).įor example, command (used to auto-save the game) is implemented via the AutoSave C# class. ![]() Right after the command literal a command identifier is expected. Command represents a single operation, that controls what happens on the scene eg, it can be used to change a background, move a character or load another naninovel script. Line is considered a command statement if it starts with a literal. Statement none of the above literals are present at the start of the line, it's considered a generic text statement. Type of the statement is determined by the literal placed at the start of the line: Literal Įach line in a naninovel script represents a statement, which can be a command, generic text, label or a comment. You can open and edit them with the built-in visual editor or with an external text editor of your choice, like Microsoft Word, Google Docs or VS Code. Script assets are created with Create -> Naninovel -> Naninovel Script asset context menu. nani extension) where you control what happens on scenes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |