A Beginner's Guide to Scripting: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Fidcal (talk | contribs)
Fidcal (talk | contribs)
Line 16: Line 16:
We shall be building a short script including all of the above so starting with a blank sheet you will at the end have a working script and understand how you can use it in your maps. In addition there is a keyword reference index so you can quickly review or find new controls and commands to include and to extend your scripting ability.
We shall be building a short script including all of the above so starting with a blank sheet you will at the end have a working script and understand how you can use it in your maps. In addition there is a keyword reference index so you can quickly review or find new controls and commands to include and to extend your scripting ability.


 
{{tutorial-scripting}}
{{scripting}} {{editing}} {{tutorials}}

Revision as of 07:30, 22 December 2008

written by Fidcal


WORK IN PROGRESS....


Introduction

This is a simplified guide for beginners to dark mod scripting. It makes only two assumptions:

  • You have done some mapping so no what is meant by 'entity', spawnarg, trigger, target, etc.
  • You have some interest in programming and so have at least dabbled in another language and understand what variables (x=99), conditions (IF, THEN), loops (WHILE, LOOP, FOR NEXT, etc), and subroutines, procedures or functions are (GOSUB, PROC, CALL) and so on. These are common to all programming languages and only the syntax and terms used need be learned to start scripting.

It is likely to omit advanced material so do not think it fully comprehensive.

We shall be building a short script including all of the above so starting with a blank sheet you will at the end have a working script and understand how you can use it in your maps. In addition there is a keyword reference index so you can quickly review or find new controls and commands to include and to extend your scripting ability.