An engine that can be used to manage and play Visual Novels with limited interactivity. It supports a simple scripting language so you can control the story from within your XML file (which is the actual story).

Report article RSS Feed How scripts work.

Script are an essential thing when making something others can use. Not everyone wants or has to time to learn everything about a programming language to change how a certain engine does it's thing or add to it. This is where scripts come in.

Posted by moci on Nov 13th, 2009 Page 1 of 2    
Basic Client Side Coding.

Script are an essential thing when making something others can use. Not everyone wants or has to time to learn everything about a programming language to change how a certain engine does it's thing or add to it. This is where scripts come in.

This tutorial will give you an overview of what functions you can actually use when making your scripts.

For this first release of the engine the scripts are still very basic, but the way it's set up now does allow you to do everything without looking into any kind of actual code.

How the scripts internally get converted is of no concern to you, if you do want to know look at the engine's code. What you do need to know is this:

  • it's case sensitive
  • arguments can be given by including them in '()', if needed
  • wrong functions or arguments will not crash the engine

Here's the actual function list:

  • playSound(id:String, willLoop:Booelan) - plays a sound, can be looped
  • stopSound(id:String) - stops a sound
  • stopAllSound() - stops all sounds
  • proceedStory() - proceed to the next frame in the story
  • gotoFrame(id:String) - proceed to a given frame in the story
  • proceedDialog() - proceed the dialog in the frame
  • gotoDialog(id:String) - proceed to a given dialog in the frame
  • changeBack(id:String) - change the background image
  • changeFront(id:String) - change the foreground image
  • end() - ends the story (dispatches the EVENT_END event)

Some of these functions require an ID, this ID is the one you give in the assets listing. internally the assets get called by either an automatically given number, or by the actual ID name that's given in the XML.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Platforms
Windows, Mac
Company
IntoGames
Contact
Send Message
Licence
Creative Commons
Release Date
Released Aug 24, 2009
Engine Watch
Track this engine
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Engines
Visual Novel Engine
Visual Novel Engine Creative Commons Released Aug 24, 2009
Related Groups
IntoGames
IntoGames Developer & Publisher