A Beginner's Guide to Scripting

From The DarkMod Wiki
Revision as of 07:24, 22 December 2008 by Fidcal (talk | contribs) (New page: ''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 map...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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.