Category:All commands - EDukeWiki

Help

# Category:All commands

From EDukeWiki
EDuke32 Scripting

Scripting · Full command list (alphabetized · categorized) · Event list · Structure members

## Preprocessor

- include
- includedefault
- define
- // single-line comment
- /* block comment */
- whitespace characters: `( ) ; ,`

## Meta-Settings

- dynamicremap
- dynamicsoundremap
- setcfgname
- setdefname
- setgamename
- precache
- scriptsize
- cheatkeys
- definecheat
- definegamefuncname
- definegametype
- definevolumename
- definevolumeflags
- definelevelname
- defineskillname
- undefinevolume
- undefinelevel
- undefineskill

### If

- ifrespawn
- ifmultiplayer
- ifclient
- ifserver

## Global Settings

- gamestartup
- spritenopal
- spritenoshade
- spritenvg
- spriteshadow

## Block Delimiting

### Object-Oriented

- actor
- useractor
- enda

### Procedural

- onevent
- appendevent
- endevent

### Subroutines

- state
- defstate
- ends

## Flow Control

### If Components

- nullop
- else

### Switch

- switch
- endswitch
- case
- default

### Termination

- break
- return

### Jump

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

- getcurraddress
- jump

### Loops

- whilevarn
- whilevarvarn

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

## Game Variables

- gamevar
- gamearray

### Gamevar Operators

- setvar
- setvarvar
- setarray
- addvar
- addvarvar
- subvar
- subvarvar
- mulvar
- mulvarvar
- divvar
- divvarvar
- modvar
- modvarvar
- andvar
- andvarvar
- orvar
- orvarvar
- xorvar
- xorvarvar
- randvar
- randvarvar

### Gamevar Conditions

- ifvare
- ifvarn
- ifvarg
- ifvarl
- ifvarand
- ifvaror
- ifvarxor
- ifvareither
- ifvarvare
- ifvarvarn
- ifvarvarg
- ifvarvarl
- ifvarvarand
- ifvarvaror
- ifvarvarxor
- ifvarvareither

### Math Operations

- sqrt
- calchypotenuse
- sin
- cos
- shiftvarl
- shiftvarr
- mulscale
- getangle
- getincangle

### Array Operations

- getarraysize
- resizearray
- copy

### Data Saving

- readgamevar
- savegamevar
- readarrayfromfile
- writearraytofile

## Structure Access

- getactor
- getactorvar
- getinput
- getplayer
- getplayervar
- getprojectile
- getsector
- getthisprojectile
- gettspr
- getuserdef
- getwall
- setactor
- setactorvar
- setinput
- setplayer
- setplayervar
- setprojectile
- setsector
- setthisprojectile
- settspr
- setuserdef
- setwall

## Actors

### Structures

- cactor
- action
- ai
- move
- count
- resetactioncount
- resetcount
- cstat
- cstator
- clipdist
- sizeat
- sizeto
- strength
- addstrength
- spritepal
- getlastpal
- sleeptime
- spriteflags
- angoff
- angoffvar
- changespritesect
- changespritestat
- setsprite

#### If

- ifactor
- ifaction
- ifactioncount
- ifai
- ifcount
- ifmove
- ifspawnedby
- ifspritepal
- ifstrength
- ifhitweapon
- ifwasweapon
- ifdead
- ifactornotstayput

### Commands

- fall
- insertspriteq
- killit
- movesprite
- ssp
- clipmove
- clipmovenoslide

### Measurements

- dist
- ldist
- cansee
- canseespr

### Surroundings

#### Commands

- hitradius
- hitradiusvar
- flash

#### If

- ifawayfromwall
- ifbulletnear
- ifceilingdistl
- iffloordistl
- ifgapzl
- ifsquished
- ifnotmoving
- ifinwater
- ifonwater
- ifoutside
- ifinspace
- ifinouterspace
- ifrnd

### Mapping Features

- mikesnd
- respawnhitag

### Player Interaction

- ifangdiffl
- ifcansee
- ifcanseetarget
- ifcanshoottarget
- ifhitspace
- getangletotarget

### Spawning

- spawn
- espawn
- espawnvar
- qspawn
- qspawnvar
- eqspawn
- eqspawnvar

### Materials

- debris
- guts
- lotsofglass
- mail
- money
- paper

## Projectiles

- defineprojectile
- shoot
- shootvar
- eshoot
- eshootvar
- zshoot
- zshootvar
- ezshoot
- ezshootvar

## Player

### Commands

- addammo
- addinventory
- addweapon
- addweaponvar
- addphealth
- tossweapon
- gmaxammo
- smaxammo
- checkavailinven
- checkavailweapon
- addkills
- lockplayer
- resetplayer
- resetplayerflags

### If

- ifgotweaponce
- ifp
- ifpdistg
- ifpdistl
- ifphealthl
- ifpinventory
- ifplayersl

## Sectors

### Operating

- operate
- operateactivators
- operatemasterswitches
- operaterespawns
- operatesectors
- activatebysector
- activate

### Manipulation

- dragpoint
- sectsetinterpolation
- sectclearinterpolation

### Analysis

- getceilzofslope
- getflorzofslope
- getzrange
- updatesector
- updatesectorz
- checkactivatormotion
- rotatepoint
- lineintersect
- rayintersect
- sectorofwall

## Discovery

### Searching

- findnearactor
- findnearactor3d
- findnearactor3dvar
- findnearactorvar
- findnearactorz
- findnearactorzvar
- findnearsprite
- findnearsprite3d
- findnearsprite3dvar
- findnearspritevar
- findnearspritez
- findnearspritezvar
- findotherplayer
- findplayer
- neartag
- hitscan

### Sorting

- headspritesect
- headspritestat
- nextspritesect
- nextspritestat
- prevspritesect
- prevspritestat

## Audio

### Sounds

- definesound
- sound
- soundvar
- soundonce
- soundoncevar
- globalsound
- globalsoundvar
- screensound
- stopsound
- stopsoundvar
- stopactorsound
- stopallsounds
- ifsound
- ifactorsound
- ifnosounds
- setactorsoundpitch

### Music

- music
- starttrack
- starttrackvar
- getmusicposition
- setmusicposition

## Quotes

- definequote
- redefinequote
- quote
- userquote
- qsprintf
- qstrcpy
- qstrcat
- qstrncat
- qstrlen
- qsubstr
- qstrdim
- qgetsysstr
- getpname
- getkeyname

## Cutscenes

- startcutscene
- ifcutscene

## Screen

### Screen Manipulation

- palfrom
- guniqhudid
- setgamepalette
- setaspect

### Player Actions

- wackplayer
- quake
- pkick
- pstomp
- tip

### Screen Drawing

- rotatesprite
- rotatesprite16
- rotatespritea
- screentext
- gametext
- gametextz
- minitext
- digitalnumber
- digitalnumberz
- showview
- showviewunbiased

### Math

- displayrand
- displayrandvar
- displayrandvarvar

## Time Access

- getticks
- gettimedate

## Game-Changing

- activatecheat
- startlevel
- inittimer
- endofgame
- endoflevel
- cmenu

## Game Saving

- save
- savenn

### Hub Maps

- loadmapstate
- savemapstate
- clearmapstate

## Debug

- debug
- addlog
- addlogvar
- echo

## Deprecated

- betaname
- enhanced
- eventloadactor
- time
- shadeto

### Screen Drawing

- myos
- myosx
- myospal
- myospalx

### Single-Use Structure Access

- getactorangle
- getplayerangle
- gettextureceiling
- gettexturefloor
- sectgethitag
- sectgetlotag
- spgethitag
- spgetlotag
- setactorangle
- setplayerangle

## Subcategories

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

### D

- ► Duke3D 1.3/1.5 commands‎ (111 P)

### E

- ► EDuke commands‎ (76 P)
- ► EDuke32 specific commands‎ (171 P)
- ► Event manipulation‎ (1 C, 7 P)

### G

- ► Game manipulation‎ (4 C, 16 P)
- ► Gamevar manipulation‎ (3 C, 78 P)

### I

- ► If conditions‎ (61 P)

### P

- ► Player manipulation‎ (5 C, 34 P)
- ► Projectile manipulation‎ (1 C, 14 P)

### S

- ► Screen drawing commands‎ (20 P)
- ► Sector manipulation‎ (2 C, 23 P)
- ► Sound manipulation‎ (20 P)
- ► Sprite manipulation‎ (1 C, 120 P)
- ► String manipulation‎ (15 P)

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Category:All_commands&oldid=12251"
Category:

- Scripting documentation