Map script

Map script is C# code executed during gameplay. The code derives from SFD.GameScriptInterface, which lets player's use classes on it in their own code.

Requirements
To script in Superfighter Deluxe, you need a fair knowledge over C#. You also need to read the ScriptApi, where you can find all the methods and classes defined by SFD.GameScriptInterface.

Beginning
Open the script window in the right upper corner of the map editor. You can write your code into this window.



Compiling
To compile, press F5. Then a new window opens and tells if the code compiled correctly or not.



Form
Usually teh code contains methods and classes. These needs to be in form  

All the methods needs to be public, so the game can use them. The same goes with classes.

Write Hello World! to Game Console
Simply put the section of code in the Script Editor, have a Trigger call the function and it should write to the game console (pressing "~" while in the editor). In the console the message "Hello world!" should appear.

Bot jumping example
Have an areatrigger with method "BotJump", and only active with players. Give the trigger a CustomId of some integer nuber, like 2.