Introduction to Arma Scripting: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 44: Line 44:
== Developing a Script ==
== Developing a Script ==


how to develop a script?
script in this case: code in external files (scripts/functions). how to develop a script?


* Requirements
* Requirements
Line 55: Line 55:
=== Requirements ===
=== Requirements ===


script in this case: code in external files (scripts/functions). what shall the script do?
what shall the script do?


=== Concept ===
=== Concept ===

Revision as of 18:32, 20 December 2006

Template:Stub

introduction

When Do I Need Scripting?

difference mission editor - scripts, examples

Scripting Code

what is it? where to put it? what are commands (doing)?

Layout

layout of code

  • seperation by semicolons

conventions of code files

  • one command per line in scripts and functions
  • {} grouping code
  • spaces or tabs to indent code

Comments

what are comments, where to use

  • line comments
  • block comments

Code Execution

how can I execute code? (external files vs. mission editor)

Mission Editor

how to execute code in the editor, listing of mission editor fields to start scripts

External Files

how to execute code in external files, scripts & functions

Developing a Script

script in this case: code in external files (scripts/functions). how to develop a script?

  • Requirements
  • Concept
  • Implementation
  • Test

usually in your head, for complex scripts on paper and drafts

Requirements

what shall the script do?

Concept

How shall the script do it?

Implementation

Writing the code

Test

Testing the code

What's next?

learning about scripts

Scripts >>