Author Topic: How do you add scripts to your server?  (Read 822 times)

0 Members and 1 Guest are viewing this topic.

Offline CaptainHighpants

  • Major(1)
  • Posts: 38
How do you add scripts to your server?
« on: September 10, 2007, 04:47:52 pm »
How do you do it? Do you edit a file in your soldat dedicated server, or can you use a program? I would rather be able to do it with a program, if possible. Please help ;]

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: How do you add scripts to your server?
« Reply #1 on: September 10, 2007, 07:04:28 pm »
You edit the files in the scripts folder. If you have a script and want to add it, just make a subfolder in scripts and put the files there.
The files you edit are .pas, writen in pascal. If you want to make a new script, you can just create a .pas file with all the code and a file called Includes.txt, where you write the script file name.

For example:

scripts
|_default
|_your_script_folder
   |_script.pas
   |_Includes.txt

In that case you should write script.pas inside includes.txt.

In http://enesce.com/help/ you can find the documentation you need to write a soldat script. (All the events function, etc)
urraka