Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: corl45 on December 01, 2007, 11:13:36 am
-
ok, i was thinking of learning how to make scripts here.... so i opened one in notepad and started scanning though it. soon after i noticed that is was in pascal.... i learned an off type of pascal, dose anyone know where i can get a tutorial. dose this have any special functions for soldat? or do you have to make then all you self? and is there a compiler our there... it would be kinda hard to write a script in notepad. some of the functions im used to.. are
because, when i was scripting the lessened version, you would start a procedure and then that would do nothing until you called upon it in the "main loop" and i have no idea how these proceudres work..
writeln('text');
readln('text');
findcolortolerance(x,y,color,x1,y1,x2,y2,tolerance);
if there is another thread like this.. or i link i missed... im sorry for being a n00b
-
To answer a few of your questions:
-Creating a script isn't like creating a program.. there are built in events (procedures or functions) that get called (if they exist) for each and every script
-For adding scripts to a server, you don't need to compile it and then add it, the server compiles it for you, so you need the actual code: under the scripts folder, there are sub folders (each script gets its own sub-folder), and inside the sub-folder, there is "Includes.txt"; inside this includes file is a list of all files to combine, and then compile
-Soldat-related functions, events, and variables can be found at http://www.enesce.com/help
-To learn pascal, use google, experience in other languages, and looking at examples
I personally use notepad for making all my scripts, but you can use whatever text editor you wish to use :)
-
ohh, srry i didn' t think i got my point out the right way.. ok, i know the procedures and functions are built in.. i just needed to know if there was a list of them and how to use them... and i already know pascal, i learned a little lessened version tho so i know how to program most of this. and when i said complier, i meant, is there a specail program that i can write the scripts in that has more or extra functions for convenience. srry
-
http://www.enesce.com/help has lists all the events, functions, and variables built in, and there are sometimes examples
and not that i know of, but I never really looked
-
ok, thanx