Category:All commands: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
*[[includedefault]] | *[[includedefault]] | ||
*[[define]] | *[[define]] | ||
*// single-line | *// single-line comment | ||
*/* block comment */ | */* block comment */ | ||
*whitespace characters: <code>( ) ; ,</code> | *whitespace characters: <code>( ) ; ,</code> | ||
==Meta-Settings== | ==Meta-Settings== | ||
<!-- These deal with matters outside the game world. --> | |||
*[[dynamicremap]] | *[[dynamicremap]] | ||
*[[setcfgname]] | *[[setcfgname]] | ||
Line 28: | Line 29: | ||
*[[ifserver]] | *[[ifserver]] | ||
==Global Settings== | ==Global Settings== | ||
<!-- These deal with matters inside the game world. --> | |||
*[[gamestartup]] | *[[gamestartup]] | ||
*[[spritenopal]] | *[[spritenopal]] | ||
Line 45: | Line 47: | ||
*[[ends]] | *[[ends]] | ||
==Flow Control== | ==Flow Control== | ||
===If Components=== | |||
*[[nullop]] | *[[nullop]] | ||
*[[else]] | *[[else]] | ||
===Switch=== | |||
*[[switch]] | *[[switch]] | ||
*[[endswitch]] | *[[endswitch]] | ||
*[[case]] | *[[case]] | ||
*[[default]] | *[[default]] | ||
===Termination=== | |||
*[[break]] | *[[break]] | ||
*[[return]] | *[[return]] | ||
===Jump=== | |||
*[[getcurraddress]] | *[[getcurraddress]] | ||
*[[jump]] | *[[jump]] | ||
Line 60: | Line 66: | ||
==Game Variables== | ==Game Variables== | ||
*[[gamevar]] | *[[gamevar]] | ||
*[[gamearray]] | |||
===Gamevar Operators=== | ===Gamevar Operators=== | ||
*[[setvar]] | *[[setvar]] | ||
*[[setvarvar]] | *[[setvarvar]] | ||
*[[setarray]] | |||
*[[addvar]] | *[[addvar]] | ||
*[[addvarvar]] | *[[addvarvar]] | ||
Line 108: | Line 116: | ||
*[[getangle]] | *[[getangle]] | ||
*[[getincangle]] | *[[getincangle]] | ||
=== | ===Array Operations=== | ||
*[[getarraysize]] | *[[getarraysize]] | ||
*[[resizearray]] | *[[resizearray]] | ||
*[[copy]] | *[[copy]] | ||
===Data Saving=== | |||
*[[readgamevar]] | |||
*[[savegamevar]] | |||
*[[readarrayfromfile]] | |||
*[[writearraytofile]] | |||
==Structure Access== | ==Structure Access== | ||
*[[getactor]] | *[[getactor]] | ||
Line 208: | Line 219: | ||
*[[ifinspace]] | *[[ifinspace]] | ||
*[[ifinouterspace]] | *[[ifinouterspace]] | ||
*[[ifrnd]] <!-- This is here because it really only has a use in actor code. --> | |||
===Mapping Features=== | ===Mapping Features=== | ||
*[[mikesnd]] | *[[mikesnd]] | ||
Line 250: | Line 262: | ||
*[[addphealth]] | *[[addphealth]] | ||
*[[tossweapon]] | *[[tossweapon]] | ||
*[[gmaxammo]] | *[[gmaxammo]] | ||
*[[smaxammo]] | *[[smaxammo]] | ||
Line 257: | Line 267: | ||
*[[checkavailweapon]] | *[[checkavailweapon]] | ||
*[[addkills]] | *[[addkills]] | ||
*[[getangletotarget]] | |||
*[[lockplayer]] | |||
*[[resetplayer]] | |||
===If=== | ===If=== | ||
*[[ifgotweaponce]] | *[[ifgotweaponce]] | ||
Line 284: | Line 297: | ||
*[[checkactivatormotion]] | *[[checkactivatormotion]] | ||
*[[rotatepoint]] | *[[rotatepoint]] | ||
*[[lineintersect]] | |||
*[[rayintersect]] | |||
*[[sectorofwall]] | |||
==Discovery== | ==Discovery== | ||
===Searching=== | ===Searching=== | ||
Line 326: | Line 342: | ||
*[[ifnosounds]] | *[[ifnosounds]] | ||
*[[setactorsoundpitch]] | *[[setactorsoundpitch]] | ||
===Music=== | ===Music=== | ||
*[[music]] | *[[music]] | ||
Line 348: | Line 363: | ||
===Screen Manipulation=== | ===Screen Manipulation=== | ||
*[[palfrom]] | *[[palfrom]] | ||
*[[guniqhudid]] | *[[guniqhudid]] | ||
*[[setgamepalette]] | *[[setgamepalette]] | ||
*[[setaspect]] | *[[setaspect]] | ||
===Player Actions=== | ===Player Actions=== | ||
*[[wackplayer]] | |||
*[[quake]] | |||
*[[pkick]] | *[[pkick]] | ||
*[[pstomp]] | *[[pstomp]] | ||
Line 366: | Line 381: | ||
*[[digitalnumberz]] | *[[digitalnumberz]] | ||
*[[showview]] | *[[showview]] | ||
*[[showviewunbiased]] | |||
===Math=== | ===Math=== | ||
*[[displayrand]] | *[[displayrand]] | ||
Line 378: | Line 394: | ||
*[[inittimer]] | *[[inittimer]] | ||
*[[endofgame]] | *[[endofgame]] | ||
== | *[[cmenu]] | ||
==Game Saving== | |||
*[[save]] | *[[save]] | ||
*[[savenn]] | *[[savenn]] | ||
===Hub Maps=== | ===Hub Maps=== | ||
*[[loadmapstate]] | *[[loadmapstate]] | ||
Line 394: | Line 407: | ||
*[[addlogvar]] | *[[addlogvar]] | ||
*[[echo]] | *[[echo]] | ||
==Deprecated== | ==Deprecated== | ||
*[[betaname]] | *[[betaname]] |
Revision as of 16:59, 9 January 2013
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
- setcfgname
- setdefname
- setgamename
- precache
- scriptsize
- cheatkeys
- definecheat
- definegamefuncname
- definegametype
- definelevelname
- defineskillname
- definevolumename
If
Global Settings
Block Delimiting
Object-Oriented
Procedural
Subroutines
Flow Control
If Components
Switch
Termination
Jump
Loops
Game Variables
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
Array Operations
Data Saving
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
Settings
Commands
- cactor
- action
- ai
- move
- count
- resetactioncount
- resetcount
- cstat
- cstator
- clipdist
- sizeat
- sizeto
- strength
- addstrength
- spritepal
- getlastpal
- sleeptime
- spriteflags
- angoff
- angoffvar
- fall
- insertspriteq
- killit
If
- ifactor
- ifaction
- ifactioncount
- ifai
- ifcount
- ifmove
- ifspawnedby
- ifspritepal
- ifstrength
- ifhitweapon
- ifwasweapon
- ifdead
- ifactornotstayput
Manipulation
Measurements
Surroundings
Commands
If
- ifawayfromwall
- ifbulletnear
- ifceilingdistl
- iffloordistl
- ifgapzl
- ifsquished
- ifnotmoving
- ifinwater
- ifonwater
- ifoutside
- ifinspace
- ifinouterspace
- ifrnd
Mapping Features
Player Interaction
Spawning
Materials
Projectiles
Player
Commands
- addammo
- addinventory
- addweapon
- addweaponvar
- addphealth
- tossweapon
- gmaxammo
- smaxammo
- checkavailinven
- checkavailweapon
- addkills
- getangletotarget
- lockplayer
- resetplayer
If
Sectors
Operating
Manipulation
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
Audio
Sounds
- definesound
- sound
- soundvar
- soundonce
- soundoncevar
- globalsound
- globalsoundvar
- stopsound
- stopsoundvar
- stopactorsound
- stopallsounds
- ifsound
- ifactorsound
- ifnosounds
- setactorsoundpitch
Music
Quotes
- definequote
- redefinequote
- quote
- userquote
- qsprintf
- qstrcat
- qstrcpy
- qstrlen
- qstrncat
- qsubstr
- qgetsysstr
- getpname
- getkeyname
Screen
Screen Manipulation
Player Actions
Screen Drawing
- rotatesprite
- rotatesprite16
- gametext
- gametextz
- minitext
- digitalnumber
- digitalnumberz
- showview
- showviewunbiased
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
- Duke3D 1.3/1.5 commands (110 P)
E
- EDuke commands (77 P)
- EDuke32 specific commands (254 P)
G
I
- If conditions (90 P)
P
S
- Screen drawing commands (22 P)
- Sound manipulation (24 P)
- String manipulation (18 P)