Introduction to Arma Scripting: Difference between revisions
m (added SQDev) |
Lou Montana (talk | contribs) m (Add Multiplayer Scripting link) |
||
Line 2: | Line 2: | ||
{{Informative|This page is WIP. Feel free to contribute!}} | {{Informative|This page is WIP. Feel free to contribute!}} | ||
==Introduction== | == Introduction == | ||
This page should give beginners an overview of how to begin with scripting and where to find most of the information they need in the beginning. Some information might not be complete and can be found on other wiki pages. | This page should give beginners an overview of how to begin with scripting and where to find most of the information they need in the beginning. Some information might not be complete and can be found on other wiki pages. | ||
Line 8: | Line 9: | ||
The '''solution''' to this is to take advantage of the game-engines ability to call on an even more advanced feature known as [[Scripting|scripting]]. [[Armed Assault|Armed Assault's]] '''scripting language''' gives you more direct control of core game commands. With any combination of these [[:Category:ArmA: Scripting Commands|scripting commands]] you can then create custom processes that meet the specific needs of your mission or addon. | The '''solution''' to this is to take advantage of the game-engines ability to call on an even more advanced feature known as [[Scripting|scripting]]. [[Armed Assault|Armed Assault's]] '''scripting language''' gives you more direct control of core game commands. With any combination of these [[:Category:ArmA: Scripting Commands|scripting commands]] you can then create custom processes that meet the specific needs of your mission or addon. | ||
== Terms == | == Terms == | ||
Before getting started, you should understand the meaning of these terms. | Before getting started, you should understand the meaning of these terms. | ||
Line 42: | Line 45: | ||
'''Operators''': | '''Operators''': | ||
See [[Operators]] | See [[Operators]] | ||
<!-- | <!-- | ||
= The things to ask yourself beforehand = | = The things to ask yourself beforehand = | ||
Line 59: | Line 60: | ||
*Should any question above be answered with ‘’’Yes’’’, then you should rethink your approach. | *Should any question above be answered with ‘’’Yes’’’, then you should rethink your approach. | ||
--> | --> | ||
== Recommended programms == | == Recommended programms == | ||
The following programms are recommended when working with sqf, sqs, cpp or many other file types. Most of them offer syntax highlighting and other useful features. Check them out and select the one you like the most. | The following programms are recommended when working with sqf, sqs, cpp or many other file types. Most of them offer syntax highlighting and other useful features. Check them out and select the one you like the most. | ||
Line 72: | Line 76: | ||
Scripts are an essential part of making missions. They allow you to create amazing cutscenes, create effects and customize almost every aspect of your mission. Some diverse examples of what could be scripted are: a simulation of artillery fire, a poisonous gas cloud, or a money system for purchasing equipment. | Scripts are an essential part of making missions. They allow you to create amazing cutscenes, create effects and customize almost every aspect of your mission. Some diverse examples of what could be scripted are: a simulation of artillery fire, a poisonous gas cloud, or a money system for purchasing equipment. | ||
<!-- | --><!-- | ||
===Let's start=== | ===Let's start=== | ||
Line 170: | Line 174: | ||
Writing the code | Writing the code | ||
--> | --> | ||
== Debugging == | == Debugging == | ||
*[[Debugging Techniques]] | |||
* [[Debugging Techniques]] | |||
== Optimisation == | == Optimisation == | ||
*[[Code Optimisation]] | |||
* [[Code Optimisation]] | |||
== Useful Links == | == Useful Links == | ||
These links offer a great deal of information about [[Scripting]]: | |||
* [[Control Structures]] | * [[Control Structures]] | ||
* [[Multiplayer Scripting]] | |||
* [[Exception handling]] | * [[Exception handling]] | ||
* [[Script (File)]] | * [[Script (File)]] | ||
Line 186: | Line 197: | ||
Additionally, the following are more resources for more general learning: | Additionally, the following are more resources for more general learning: | ||
* [[6thSense.eu:EG]] | * [[6thSense.eu:EG]] | ||
* [http://www.armaholic.com/page.php?id=20465 Fockers Arma 3 Scripting Guide] | * [http://www.armaholic.com/page.php?id=20465 Fockers Arma 3 Scripting Guide] |
Revision as of 01:39, 29 January 2019
Introduction
This page should give beginners an overview of how to begin with scripting and where to find most of the information they need in the beginning. Some information might not be complete and can be found on other wiki pages.
During mission editing and addon editing you may come across situations where actions or features you would like to have in your mission or addon cannot be accomplished using the basic (or even the more advanced) capabilities of the mission editor or within config files (in the case of addons). Some examples of this might be really cinematic cutscenes in missions or special animations for an addon.
The solution to this is to take advantage of the game-engines ability to call on an even more advanced feature known as scripting. Armed Assault's scripting language gives you more direct control of core game commands. With any combination of these scripting commands you can then create custom processes that meet the specific needs of your mission or addon.
Terms
Before getting started, you should understand the meaning of these terms.
Data Types: See Data Types
Algorithm: In mathematics and computer science, an algorithm is an explicit specification of how to solve a class of problems. Algorithms can perform calculation, data processing and automated reasoning tasks.
Interpreter: Reads your code from a script file and translates it into instructions for you to achieve your desired outcome/effect in the game.
Control Structures: See Control Structures
Syntax: See SQF syntax See SQS syntax
Script: When speaking about a script, we usually mean a .sqs or .sqf file.
Game Engine: The core program of the game which reads and executes your scripting commands at run time.
Function: See Function
Variables: See Variables
Operators: See Operators
Recommended programms
The following programms are recommended when working with sqf, sqs, cpp or many other file types. Most of them offer syntax highlighting and other useful features. Check them out and select the one you like the most.
Debugging
Optimisation
Useful Links
These links offer a great deal of information about Scripting:
- Control Structures
- Multiplayer Scripting
- Exception handling
- Script (File)
- Function
- SQS to SQF conversion
Additionally, the following are more resources for more general learning: