Difference between revisions of "Category:All commands"

From EDukeWiki
Jump to navigation Jump to search
(→‎Array Operations: Added setarray, setarraysequence, getarraysequence)
 
(10 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
<!-- These deal with matters outside the game world. -->
 
<!-- These deal with matters outside the game world. -->
 
*[[dynamicremap]]
 
*[[dynamicremap]]
 +
*[[dynamicsoundremap]]
 
*[[setcfgname]]
 
*[[setcfgname]]
 
*[[setdefname]]
 
*[[setdefname]]
Line 20: Line 21:
 
*[[definegamefuncname]]
 
*[[definegamefuncname]]
 
*[[definegametype]]
 
*[[definegametype]]
 +
*[[definevolumename]]
 +
*[[definevolumeflags]]
 
*[[definelevelname]]
 
*[[definelevelname]]
 
*[[defineskillname]]
 
*[[defineskillname]]
*[[definevolumename]]
+
*[[undefinevolume]]
 +
*[[undefinelevel]]
 +
*[[undefineskill]]
 
===If===
 
===If===
 
*[[ifrespawn]]
 
*[[ifrespawn]]
Line 42: Line 47:
 
===Procedural===
 
===Procedural===
 
*[[onevent]]
 
*[[onevent]]
 +
*[[appendevent]]
 
*[[endevent]]
 
*[[endevent]]
 +
 
===Subroutines===
 
===Subroutines===
 
*[[state]]
 
*[[state]]
 +
*[[defstate]]
 
*[[ends]]
 
*[[ends]]
 +
 
==Flow Control==
 
==Flow Control==
 
===If Components===
 
===If Components===
Line 59: Line 68:
 
*[[return]]
 
*[[return]]
 
===Jump===
 
===Jump===
 +
:''Note: Jumping commands are deprecated and will not be supported by Lunatic. Use [[#Loops|loops]] instead.''
 
*[[getcurraddress]]
 
*[[getcurraddress]]
 
*[[jump]]
 
*[[jump]]
 +
 
===Loops===
 
===Loops===
 
*[[whilevarn]]
 
*[[whilevarn]]
 
*[[whilevarvarn]]
 
*[[whilevarvarn]]
 +
:''It is also possible to loop by calling a state from within itself.''
 +
 
==Game Variables==
 
==Game Variables==
 
*[[gamevar]]
 
*[[gamevar]]
Line 118: Line 131:
 
===Array Operations===
 
===Array Operations===
 
*[[getarraysize]]
 
*[[getarraysize]]
 +
*[[getarraysequence]]
 
*[[resizearray]]
 
*[[resizearray]]
 
*[[copy]]
 
*[[copy]]
 +
*[[setarray]]
 +
*[[setarraysequence]]
 +
 
===Data Saving===
 
===Data Saving===
 
*[[readgamevar]]
 
*[[readgamevar]]
Line 149: Line 166:
 
*[[setwall]]
 
*[[setwall]]
 
==Actors==
 
==Actors==
===Settings===
+
===Structures===
====Commands====
+
*[[cactor]] <!-- picnum -->
*[[cactor]]
+
*[[action]] <!-- htg_t 4 (2, 3) -->
*[[action]]
+
*[[ai]] <!-- htg_t 5 (1?) -->
*[[ai]]
+
*[[move]] <!-- htg_t 1 -->
*[[move]]
+
*[[count]] <!-- htg_t 0 -->
*[[count]]
+
*[[resetactioncount]] <!-- htg_t 2 -->
*[[resetactioncount]]
+
*[[resetcount]] <!-- htg_t 0 -->
*[[resetcount]]
+
*[[cstat]] <!-- cstat -->
*[[cstat]]
+
*[[cstator]] <!-- cstat -->
*[[cstator]]
+
*[[clipdist]] <!-- clipdist -->
*[[clipdist]]
+
*[[sizeat]] <!-- [xy]repeat -->
*[[sizeat]]
+
*[[sizeto]] <!-- [xy]repeat -->
*[[sizeto]]
+
*[[strength]] <!-- extra -->
*[[strength]]
+
*[[addstrength]] <!-- extra -->
*[[addstrength]]
+
*[[spritepal]] <!-- pal -->
*[[spritepal]]
+
*[[getlastpal]] <!-- httempang -->
*[[getlastpal]]
+
*[[sleeptime]] <!-- httimetosleep -->
*[[sleeptime]]
+
*[[spriteflags]] <!-- htflags -->
*[[spriteflags]]
+
*[[angoff]] <!-- angoff -->
*[[angoff]]
+
*[[angoffvar]] <!-- angoff -->
*[[angoffvar]]
+
*[[changespritesect]] <!-- sectnum -->
*[[fall]]
+
*[[changespritestat]] <!-- statnum -->
*[[insertspriteq]]
+
*[[setsprite]] <!-- [xyz] -->
*[[killit]]
 
 
====If====
 
====If====
 
*[[ifactor]]
 
*[[ifactor]]
Line 188: Line 204:
 
*[[ifdead]]
 
*[[ifdead]]
 
*[[ifactornotstayput]]
 
*[[ifactornotstayput]]
===Manipulation===
+
===Commands===
*[[changespritesect]]
+
*[[fall]]
*[[changespritestat]]
+
*[[insertspriteq]]
 +
*[[killit]]
 
*[[movesprite]]
 
*[[movesprite]]
 
*[[ssp]]
 
*[[ssp]]
 
*[[clipmove]]
 
*[[clipmove]]
 
*[[clipmovenoslide]]
 
*[[clipmovenoslide]]
*[[setsprite]]
 
 
===Measurements===
 
===Measurements===
 
*[[dist]]
 
*[[dist]]
Line 270: Line 286:
 
*[[lockplayer]]
 
*[[lockplayer]]
 
*[[resetplayer]]
 
*[[resetplayer]]
 +
*[[resetplayerflags]]
 
===If===
 
===If===
 
*[[ifgotweaponce]]
 
*[[ifgotweaponce]]
Line 277: Line 294:
 
*[[ifphealthl]]
 
*[[ifphealthl]]
 
*[[ifpinventory]]
 
*[[ifpinventory]]
 +
*[[ifplayersl]]
 
==Sectors==
 
==Sectors==
 
===Operating===
 
===Operating===
Line 285: Line 303:
 
*[[operatesectors]]
 
*[[operatesectors]]
 
*[[activatebysector]]
 
*[[activatebysector]]
 +
*[[activate]]
 
===Manipulation===
 
===Manipulation===
 
*[[dragpoint]]
 
*[[dragpoint]]
Line 334: Line 353:
 
*[[globalsound]]
 
*[[globalsound]]
 
*[[globalsoundvar]]
 
*[[globalsoundvar]]
 +
*[[screensound]]
 
*[[stopsound]]
 
*[[stopsound]]
 
*[[stopsoundvar]]
 
*[[stopsoundvar]]
Line 346: Line 366:
 
*[[starttrack]]
 
*[[starttrack]]
 
*[[starttrackvar]]
 
*[[starttrackvar]]
 +
*[[getmusicposition]]
 +
*[[setmusicposition]]
 
==Quotes==
 
==Quotes==
 
*[[definequote]]
 
*[[definequote]]
Line 352: Line 374:
 
*[[userquote]]
 
*[[userquote]]
 
*[[qsprintf]]
 
*[[qsprintf]]
 +
*[[qstrcpy]]
 
*[[qstrcat]]
 
*[[qstrcat]]
*[[qstrcpy]]
+
*[[qstrncat]]
 
*[[qstrlen]]
 
*[[qstrlen]]
*[[qstrncat]]
 
 
*[[qsubstr]]
 
*[[qsubstr]]
 +
*[[qstrdim]]
 
*[[qgetsysstr]]
 
*[[qgetsysstr]]
 
*[[getpname]]
 
*[[getpname]]
 
*[[getkeyname]]
 
*[[getkeyname]]
 +
==Cutscenes==
 +
*[[startcutscene]]
 +
*[[ifcutscene]]
 
==Screen==
 
==Screen==
 
===Screen Manipulation===
 
===Screen Manipulation===
Line 375: Line 401:
 
*[[rotatesprite]]
 
*[[rotatesprite]]
 
*[[rotatesprite16]]
 
*[[rotatesprite16]]
 +
*[[rotatespritea]]
 +
*[[screentext]]
 
*[[gametext]]
 
*[[gametext]]
 
*[[gametextz]]
 
*[[gametextz]]
Line 394: Line 422:
 
*[[inittimer]]
 
*[[inittimer]]
 
*[[endofgame]]
 
*[[endofgame]]
 +
*[[endoflevel]]
 
*[[cmenu]]
 
*[[cmenu]]
 
==Game Saving==
 
==Game Saving==
Line 412: Line 441:
 
*[[eventloadactor]]
 
*[[eventloadactor]]
 
*[[time]]
 
*[[time]]
 +
*[[shadeto]]
 
===Screen Drawing===
 
===Screen Drawing===
 
*[[myos]]
 
*[[myos]]

Latest revision as of 06:49, 11 February 2020

EDuke32 Scripting

Preprocessor

Meta-Settings

If

Global Settings

Block Delimiting

Object-Oriented

Procedural

Subroutines

Flow Control

If Components

Switch

Termination

Jump

Note: Jumping commands are deprecated and will not be supported by Lunatic. Use loops instead.

Loops

It is also possible to loop by calling a state from within itself.

Game Variables

Gamevar Operators

Gamevar Conditions

Math Operations

Array Operations

Data Saving

Structure Access

Actors

Structures

If

Commands

Measurements

Surroundings

Commands

If

Mapping Features

Player Interaction

Spawning

Materials

Projectiles

Player

Commands

If

Sectors

Operating

Manipulation

Analysis

Discovery

Searching

Sorting

Audio

Sounds

Music

Quotes

Cutscenes

Screen

Screen Manipulation

Player Actions

Screen Drawing

Math

Time Access

Game-Changing

Game Saving

Hub Maps

Debug

Deprecated

Screen Drawing

Single-Use Structure Access

Subcategories

This category has the following 14 subcategories, out of 14 total.

D

E

G

I

P

S