-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
action-code-script.scroll
36 lines (31 loc) · 1.61 KB
/
action-code-script.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import ../code/conceptPage.scroll
id action-code-script
name Action Code Script
appeared 2004
tags pl
centralPackageRepositoryCount 0
originCommunity id Software
lineCommentToken //
printToken print
hasLineComments true
// A comment
hasComments true
// A comment
hasPrintDebugging true
hasSemanticIndentation false
wikipedia https://en.wikipedia.org/wiki/Action_Code_Script
example
1 // Similar to C's stdio.h, ACS has its own library of basic functions
2 #include "zcommon.acs"
3
4 script 1 ENTER
5 {
6 print(s:"Hello World!");
7 }
related c quakec
summary Action Code Script (ACS) is a scripting language used in video games such as HeXen and some modern Doom source ports, such as ZDoom. It is syntactically similar to C, but less flexible. As its name implies, most of the core logic for script functionality comes in the form of "scripts", which are traditionally identified with a numerical value. Later revisions of the ACS compiler added support for "named" scripts (which utilize a String in lieu of the numerical identifier), and simple functions. Similar to traditional code, ACS is compiled using ACC (an homage to C's gcc utility) for use in Doom, Hexen, etc... Scripts can be executed in a variety of methods, such as being attached to in-game actors, execution through level triggers around each map, or invocation from other scripts or functions. As the entire scripting language is built as a hack on top of the Doom id Tech's engine, there is no formal support for any Object-oriented programming principles.
created 2004
backlinksCount 10
pageId 421959
revisionCount 35
dailyPageViews 7