XSkriptTutorial.Syntax
Search:
print pdf

SolutionsXScript-tutorialScript structure

MissingLink für Verweise auf noch nicht erstellte Abschnitte:

Begriffe, für die auf eine Definition verwiesen wird; Altes grün 33AA11

General remarks on the syntax

About X-Script

X-Script is a script language which bases on Pascal-Script. The most important parts from the underlying Pascal are included, but there are also some language constructs which aren't supported by Pascal Script (for example the in-operator). ON the following pages, the most basic things should be explained. Programming knowledge are really helpful in order to understand X-Script, but it is our goal to make it possible for non-programmers to use X-Script in order to create missions for their own game sets.

Syntax fundamentals

Linke in many other programming languages, commands are seperated by semikolons (;). In contrary to C/C++, X-Script doesn't distinguish between upper and lower cases. While my_variable and My_Variable are two different things in C/C++, they are identical in X-Script. Therefore, X-Script compensates a little bit of lack of discipline in programming. Blank spaces (not within an identifier!) and blank rows can be used, in order to increase clarity in the code.

That doesn't mean, that as a programmer you can do what you want. X-Script is known for its type strictness. In contrast to visual basic a variable has to be declared in a certain area before it can be used. If a type is once assigned, it can't receive any values of another type, only values of the same type or a subtype. Also, assignments between variables of different types can only be done with specific convertion functions (like IntToStr).


Recent Changes - Edit Menue
Page last modified on 10.12.2007, 22:45 by Hieronymus
Edit Page - Attributes - Page History