Difference between revisions of "Scripting basics"

From Soldat Community Wiki
Jump to: navigation, search
Line 1: Line 1:
:The '''Soldat Server Scripting Core''' was programmed by [[EnEsCe]] to help other users creating scripts for their server.
+
----
:It use the Pascal coding language with '''Events''', '''Functions''' and '''Variables'''. Current ScriptCore version is v3.
 
  
''For an alphabetical list of all functions,events and variables, click [[Server_Scripting|here]].''
 
  
 +
===Story of Soldat Script Core===
  
 +
The '''Soldat Server Scripting Core''' was programmed by [[EnEsCe]] to help other users creating scripts for their server.
 +
It use the Pascal coding language with '''Events''', '''Functions''' and '''Variables'''. You can find list of this coding part [[Server_Scripting|here]].
 +
 +
 +
 +
----
 +
===Quick look at Pascal language===
 +
 +
In quick glance, Pascal is quite useful and easy to manage compared to eg. C and C++ languages.
 +
Pascal chooses words (e.g. begin-end, if-or) instead of symbols ({-}) used in C/C++.
 +
 +
Another big plus of Pascal is its speed. Pascal compiler is lightning-fast and well-suited for teaching programming, you can do more in small time frame.
 +
Also there is less overhead and fewer ways for a new users to crash program. So as a first program language, Pascal its probably best choose.
 +
Even when world is filled with C++ and Java languages, Pascal, in his simplicity, is still one of the best programing language: Powerful and easy to handle.
 +
----
 
===Online Pascal Tutorials===
 
===Online Pascal Tutorials===
* Learn Pascal tutorial [http://www.taoyue.com/tutorials/pascal/]
+
:If you are interested in writing script for [[Soldat]] you should check few sites before you start messing with any '''Functions''' and '''Procedures''' :]
* Turbo Pascal programming [http://www.algonet.se/%7Ekhaan/tutor/]
+
 
* Learn Pascal Programming [http://www.learn-programming.za.net/learn_pascal_programming.html]
+
 
 +
* [http://www.taoyue.com/tutorials/pascal/ Pascal tutorial in taoye.com]
 +
* [http://www.algonet.se/%7Ekhaan/tutor/ Turbo Pascal programming ]
 +
 
 +
Note: Some tutorials may have references to functions that do not exist in the scripting core.
 +
 
 +
 
 +
----
 +
===Soldat Scripting Tutorials===
 +
 
 +
:Our [[Soldat Community]] have prepared few easy tutorials for beginners, that should prepare you to write your first scripts for [[Soldat]].
 +
:But don't worry. If you encounter any problem you can ask for help in our [[Forum]] in [http://forums.soldat.pl/index.php?board=40.0 Scripting Discussions and Help] section.
 +
 
 +
 
 +
*link for tutorial 1
 +
*link for tutorial 2
 +
*link for tutorial 3
 +
 
 +
Work in progress...
 +
 
  
'''Note:''' Some tutorials may have references to functions that do not exist in the scripting core.
+
----

Revision as of 12:46, 4 April 2014



Story of Soldat Script Core

The Soldat Server Scripting Core was programmed by EnEsCe to help other users creating scripts for their server. It use the Pascal coding language with Events, Functions and Variables. You can find list of this coding part here.



Quick look at Pascal language

In quick glance, Pascal is quite useful and easy to manage compared to eg. C and C++ languages. Pascal chooses words (e.g. begin-end, if-or) instead of symbols ({-}) used in C/C++.

Another big plus of Pascal is its speed. Pascal compiler is lightning-fast and well-suited for teaching programming, you can do more in small time frame. Also there is less overhead and fewer ways for a new users to crash program. So as a first program language, Pascal its probably best choose. Even when world is filled with C++ and Java languages, Pascal, in his simplicity, is still one of the best programing language: Powerful and easy to handle.


Online Pascal Tutorials

If you are interested in writing script for Soldat you should check few sites before you start messing with any Functions and Procedures :]


Note: Some tutorials may have references to functions that do not exist in the scripting core.



Soldat Scripting Tutorials

Our Soldat Community have prepared few easy tutorials for beginners, that should prepare you to write your first scripts for Soldat.
But don't worry. If you encounter any problem you can ask for help in our Forum in Scripting Discussions and Help section.


  • link for tutorial 1
  • link for tutorial 2
  • link for tutorial 3
Work in progress...