Divooka Reference

Novella

Usable

Visual novels: characters, scenes, choices, music and art

Guide on the Methodox Wiki

288 nodes in 16 categories

Ships with
Divooka ExploreDivooka Compute
Support tier
Tier 2 (proposed)
Package
Novella Visual Novels
Novella Visual Novels

A data-driven visual novel framework: write stories as scripts or nodes, configure and run a game with nodes. Also provides game preview.

Story Writing

AchieveGrants an achievement.Add ChoiceThe choices with one more after them.Apply EffectChanges the story's variables at this point: an effect from the Effects nodes, such as Add To Variable.CallRuns another label and comes back.Call ScreenShows a screen and waits for the player to answer it; the answer is in _return afterwards.Call VariableRuns the label a variable names, then comes back.Call With ArgumentsRuns another label with arguments for its parameters, each as typed: a number, true, text.CenteredText in the middle of the screen with no window, as for a chapter title.ConcatenateOne sequence followed by another.ExtendContinues the line before, as when a thought is finished after a pause.Hard PauseWaits for some seconds and cannot be clicked through.HideHides an image.Hide ScreenHides a shown screen.Hide With OptionsHides an image on a layer.IfRuns one sequence or another depending on a condition.InputAsks the player to type into a variable.Input With OptionsAsks the player to type into a variable, with a length and the characters allowed.JumpContinues at another label.Jump From FunctionContinues at the label a function of the story's variables names: a Function graph taking Story Variables and answering text.Jump To VariableContinues at the label a variable names.MenuOffers choices.Menu From ChoicesOffers as many choices as Add Choice collected, with a line above them.MoviePlays a full-screen movie.Movie With OptionsA full-screen movie, which may keep the music playing under it.NarrateNarration: a line with no speaker.NotifyShows a notification.NVL ClearClears the full-screen NVL page.PauseWaits for a click, or for some seconds.PlayPlays a file on any channel: music, sound, voice, ambience, or one the story defines.Play MusicPlays music, which loops until stopped or replaced.Play SoundPlays a sound once.Play With OptionsPlays files on a channel with every option a script's play has.Python BlockPython run against the story's variables where the sequence reaches it; what it sets that the story can hold goes back into the story.QueueAdds files to a channel's queue, to play when what plays now ends.ReturnReturns from a called label, or ends the game.Return ValueReturns from a called label with a value, as typed, which the caller reads as _return.Return VariableReturns from a called label with a variable's value.Run CommandRuns a command the game implements; its result is in _return afterwards.Run Command With ValuesRuns a command the game implements with arguments, each as typed; its result is in _return afterwards.SayA line of dialogue.Say AsA line from someone who is not a defined character, such as a shopkeeper.Say BrieflyA line whose expression change lasts only while it is up.Say LineA line with everything a script line can carry: an expression change for the line or after it, a transition, an id for translations.SceneClears the stage and shows a background.Scene With OptionsClears the stage (or a layer) and shows a background, which may be placed or animated, such as a slow pan.ScriptAdds statements written as script, for anything the other nodes do not cover.Sequence To ScriptA sequence written as script, to read what a chain of nodes makes.ShowShows an image, or changes one showing.Show ScreenShows a screen over the game and carries on: a status bar, a map button.Show With OptionsShows an image with everything a script's show can say: where, behind what, how high in the stack, under what name, on which layer, and an animation of its own.Start ChoicesNo choices yet, to add to with Add Choice.Start SequenceAn empty sequence to build on.StopStops a channel.VoiceSets the voice file for the next line.Voice SustainKeeps the voice playing on through the next line.WhileRepeats a sequence while a condition holds.WindowShows or hides the dialogue window: show, hide or auto.Window With TransitionShows or hides the dialogue window with a transition: show, hide or auto.WithRuns a transition over what changed since the last line.

Novella Game

Choices VariableWith NovellaGame.HeadlessVariable, the menu choices to make, by position among the options shown and separated by commas (1,0,2); once they run out the first option is chosen.Headless VariableThe environment variable that makes NovellaGame.Run play headless: its value is how many interactions to play.Screenshots VariableWith NovellaGame.HeadlessVariable, a folder to save a described picture of every interaction in, so a document's frames can be looked at as well as its transcript read.Make Novella GameMakes a game with a title and a resolution.Make Novella Game From DefinitionMakes a game from a definition built elsewhere, such as by a functional graph.AchieveLive script: grants an achievement.Add AssetAdds one file from memory, under a path scripts refer to it by.Add Asset FolderAdds a folder of game files: images, audio, video, fonts, scripts.Add Library AssetsAdds the files embedded in this Divooka document's library: its images, sounds, fonts and scripts.Add SceneAdds a scene: a label made from a scene's background, music, lines and ending.Add StoryAdds a story built elsewhere (from nodes or code).Call LabelLive script: runs a story label to its return, then comes back here.Define CharacterDefines a character.Define ImageDefines an image by name from a file among the assets (or a colour such as #000).Get NumberReads a story variable as a number.Get VariableReads a story variable as text.HideLive script: hides an image.InputLive script: asks the player to type something and returns it.Load ScriptAdds a script, given as text.Load Script FileAdds a script file from disk.Load Scripts From AssetsAdds every script (.novella) among the game's files, under a folder or everywhere.MenuLive script: offers choices and returns the index of the one chosen.NarrateLive script: narration.NotifyLive script: shows a notification.PauseLive script: waits for a time, or for a click when the time is zero.PlayLive script: plays a file on a channel (music loops, sound plays once).Random IntegerA random whole number from the story's own generator, so rolling back and choosing again draws the same one.Register CommandRegisters a command that takes no arguments and returns nothing, the shape a Divooka function graph has most often.Register Command FunctionRegisters a command that takes arguments and answers: a graph given the arguments as text, whose answer the story reads as _return (a number, true or false, or text, as typed).Register Expression FunctionRegisters a function conditions, text and effects can call by name, such as [title_for(trust)]: a graph given the arguments as text, whose answer is read as typed.RunOpens the game in a window and plays until the player quits.SayLive script: a character says a line, and the call returns when the player continues.SceneLive script: clears the stage and shows a background.Set ConfigSets a configuration value, as define config.name = value does in a script: text, a number, true or false.Set DefaultSets a variable's initial value, as default does.Set ResolutionSets the resolution the game is laid out at.Set ResultAnswers the run command being handled: the story reads this as _return.Set ThemeSets a theme value, as define theme.name = value does: a colour, a size, an image file, a font.Set TitleSets the game's title.Set VariableSets a story variable (in a live script, or from a command).ShowLive script: shows an image, optionally at a position and with a transition.StopLive script: stops a channel.To StringTranslate TextText in the player's language, through the story's string translations (translate ... strings).ValidateChecks the story: undefined labels, characters, images, files, commands.WithLive script: runs a transition over what changed.

Screens

Add BoxA box of elements, laid out by its kind: vbox one under another, hbox side by side, grid in rows of columns, frame a panel with them placed over it, fixed each where its position puts it, viewport one under another and scrolled with the wheel.Add For EachElements once for every item of a list, with the item in a variable: a row for every gift in the bag.Add IfSome elements while a condition holds and, optionally, others while it does not.Add Picture ButtonA picture to press, such as a place on a map, with another picture under the pointer.Add Screen BarA bar showing a variable against a maximum, such as trust out of ten.Add Screen ButtonA button with text on it.Add Screen ImageA picture on the screen: an image name or a file.Add Screen InputA text field that types into a variable, such as a name.Add Screen KeyActs when a key is pressed while the screen is up: escape, enter, space, left, a letter, f1...Add Screen SpaceEmpty space of a size, to hold things apart in a box.Add Screen TextText on the screen; it may show variables with [name].Add Screen TimerActs when some seconds have passed, as a timed choice runs out; again every time they pass, when repeating.Add Screen VariableA variable of the screen's own with its first value, as typed; its buttons can change it, and it lasts as long as the screen.Add Use ScreenAnother screen's elements in place, such as a status bar several screens share.Anchor Last ElementPuts the element added last at a point of itself other than its centre: (0, 0) puts its top left corner at its position, (1, 1) its bottom right, so (1, 1) at (1, 1) sits it in the stage's corner.AnswerAnswers a called screen with a value, as typed, which the story reads as _return.Close ScreenCloses the screen; a called one answers nothing.Go To LabelLeaves the screen and continues the story at a label.Hide Screen ActionHides another screen.Notify ActionShows a notification.Open Menu ActionOpens one of the game's menus: save, load, preferences, history, gallery, music_room, achievements or main_menu.Play Sound ActionPlays a sound once.Run Command ActionRuns a command the game registers.Screen To ScriptA screen as a script writes it.Set Last Element Style PropertySets a style property on the element added last itself, laid over its style: outline_width2; on a button, a property starting text_ styles its label.Set Screen Style PrefixA prefix for the styles of everything on the screen: with gold, its buttons draw with gold_button when there is one.Set Variable ActionSets a variable to a value, as typed.Set Variable To ActionSets a variable to what an expression gives when the button is pressed, such as the item of a For Each row: item.Show Screen ActionShows another screen.Start ContentsA set of elements with no screen of its own yet, to fill a box, a branch or a loop with; build it with the Add nodes as a screen is built.Start ScreenA screen with nothing on it yet.Style Last ElementGives the element added last a style of its own (style), and for a box, a prefix for the styles of what it holds (style_prefix).Then ActionOne action and then another: set a variable, then go to a label.Toggle Variable ActionTurns a true variable false and a false one true.

Story

Add AchievementA story with an achievement, which Achieve grants and the Achievements screen lists.Add Audio NameA story with a name for an audio file, so lines can play theme rather than its path.Add ChannelA story with an audio channel of its own, beside music, sound, voice and ambience.Add CharacterA story with a character added.Add ConstantA story with a constant, set when a game starts and again after a load so a changed value reaches old saves.Add DefaultA story with a variable's starting value: affection and 0.Add Gallery EntryA story with a gallery entry, unlocked once its pictures have been seen.Add Gallery Entry WhenA story with a gallery entry unlocked when a condition holds, rather than when its pictures have been seen.Add ImageA story with an image defined: a name and a file (or a colour such as #000).Add Image From SourceA story with an image from a source made by the Images nodes: a movie, a filtered or composite picture, a switch.Add LabelA story with a label added, replacing one of the same name.Add Layered ImageA story with a layered image, assembled with Start Layered Image and the layer nodes.Add Music TrackA story with a track for the music room, unlocked once heard, or when a condition holds.Add Python DefinitionsA story with Python run once when a game starts: the functions it defines can be called from any condition, text or effect, as [title_for(trust)].Add ScreenA story with a screen laid out by the Screens nodes, which Show Screen and Call Screen find by its name.Add StyleA story with a style made by the Styles nodes: a look of its own, or, under one of Novella's own names, a restyling of that part of the game.Add TransitionA story with a named transition, made from a built-in one: slow as dissolve(2).Check StoryChecks a story without its files: undefined labels, characters, transforms and transitions.Combine StoriesTwo stories as one: the second's labels and definitions added to the first's.Label NamesThe labels a story has, in order.Make LabelA label: a named place in the story, holding a sequence.Make Label With ParametersA label that takes arguments, which Call With Arguments passes and the label reads as variables.Start StoryAn empty story to add labels and characters to.Story From LibraryReads a story from a script file in the document's library.Story From ScriptReads a story from script text.Story To ScriptA story written as script.Translate LineA story with a line translated, found by the label it is in, who says it and what it says.Translate Line By IdA story with a line translated by the id Say Line gave it.Translate StringA story with any other text translated: a choice, a name, a prompt, a notification.

Conditions

Animation

Add Animated ImageA story with an image that is an animation: picture lines and pauses that animate it wherever it is shown.Also ChangeChanges another property in the step before, so the two change together: a move and a fade at once.Animate PropertyAnimates a property to a value over some seconds, eased by a warper.Animation BlockA timeline nested in this one, so a repeat inside it loops only that part.Animation From ScriptAn animation written as a script's animation block, one statement per line.Animation To ScriptAn animation as a script writes it.At TimeWhat follows starts this many seconds after the animation began, cutting short what was running.Call Transform FunctionHands the image to a function the game registers for animations, for as long as the function lasts.Choose BetweenOne of two or three timelines, picked at random by weight each time the animation gets here; the same moment of the same shown image always picks the same.Contains PictureA picture drawn inside this one with a timeline of its own, placed within it: sparkles over a lantern.Define TransformA story with a transform: an animation a show's at can name, which may take parameters.Include TransformRuns another transform in place, such as left or one the story defines.In ParallelTimelines that run at the same time, each animating its own properties: a bob while fading in.On EventWhat the image does when it is shown, replaced or hidden.RepeatStarts the timeline (or the block it is in) again: a number of times, or forever when 0.Set PropertySets a property at once.Show PictureFrom here on the image shows this picture, cross-fading over a transition's length if one is given: frames of a blink, a candle, a waving flag.Start AnimationAn empty timeline to build on.WaitWaits before the next step.

Effects

Story Variables

Images

Game Definition

Choice

Scenes

Transitions

Novella Application

Styles

Characters