Home · Scripting · Introduction to ElementScript

Introduction to ElementScript

Definition of ElementScript
ElementScript or ElementScript or EMETScript is a simple to use, object oriented scripting language that was developed by Kudzai Sadomba for the creation of desktop, mobile and web applications that need to make use of video, audio, graphics and other media elements in a way that gives these elements fast access to hardware. The name "ElementScript" is a joining of the words "Elemental", "Media", "Encoding", "Text" and "Script", hence why it is also called EMETScript.

ElementScript is the successor of a scripting language Kudzai Sadomba developed in 2009. Initially, Kudzai intended to come up with a superfast way of creating games and calling on different game elements when needed in a Windows or Linux application written in C++. The initial scripting language, through a console, thus resulted in the output of OpenGL elements as and when required based on the contents of the script behind it. Another script file could also be called from one script file and also made to run in the console as well as 3D models, camera instructions, custom 3D elements and sound.

ElementScript was developed to be much faster than its predecessor and was rewritten to include a lot more features that added support for the support of multiple types of textures, 3D files, shaders and also different rendering options (so not only OpenGL but also Direct3D). In addition to this, newer features of ElementScript enabled it to also have support for the creation of newer libraries and extensions by other developers, and the team, written in ElementScript, and optionally may also be supported by other executable binaries. This enabled the creation of scripts supporting the easy and quick rendering of video and audio to the screen for the AVisPar product range.

ElementScript through the use of the Enzyme Platform, may also be used to create websites and mobile applications for smartphones.

Syntax and Usage
The most unique thing about ElementScript is the way it works, but even more so, the way it is written. ElementScript allows for only four words/arguments per line. A new line separates every command. Every method is written in it's own script file. You can also only call a maximum of four methods / script files from a single script file. A new line terminates every single statement.

Object NameOfObject WhatItIsMeantToDo AttributeDescription
COEX[BLABLABLA]loadLibrary.sublib.functionload library
Camera[Main]targetPlayer1make camera focus on element called Player1
ModelPlayer1load“address-no-spaces” create model called Player1 from address
ModelArenaload“address-no-spaces”create model called Arena from address
AIPlayer2assign“address-to-kai.script”assign info from AI file to element called Player2
TransformPlayer1translatex,y,zMove Player1 to set coordinates
TransformArenascalex,y,zScale model Arena to size
MaterialArenaassign“address-to-texture-file-no-spaces”Assign material to model called Arena
LightPlayer1assignTRUEset lighting flag of Player1 element to true
EventPlayer1CollisionPlayer2Create collision event between elements Player1 and Player2

Different script files have different usage based also on their extensions. Most script files use the extension ".script", however, user interface scripts use the extension ".ui". User interface scripts can contain a large number of user interface elements such as buttons, videos, audio, menus, widgets and even heads-up-displays and windows. You can also put user interface elements in normal script files. Script files with information on artificial intelligence or non-player user controls use the extension ".ai".


Creator Game Maker Script

09.07.2014. 16:06


This article hasn't been commented yet.

Write a comment

* = required field




1 + 4 =