Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Category:Gamevar manipulation

From EDukeWiki

A gamevar is a game variable that can be used to store numerical data which can then be referenced between actors.

The syntax for defining a gamevar is 'gamevar <varname> <value> <flags>'

A gamevar's flags determine how it is referenced by the game. A gamevar with flags of 0 is known as a global variable. A global variable exists once in the code, and any time a global variable is set, the new value is seen by all actors. A gamevar with flags of 1 is a per-player variable. Per-player variables exist once per player in the game, with each player having their own copy of the variable. A gamevar with flags of 2 is a per-actor variable. A per-actor variable exists as many times in the code as there are sprites in the map. Each sprite has its own copy of a per-actor variable in memory.

NameNumberDescriptionPage where such variables should be listed
GAMEVAR_FLAG_GLOBAL0global variable; this is the default
GAMEVAR_FLAG_PERPLAYER1per-player variable
GAMEVAR_FLAG_PERACTOR2per-actor variable
GAMEVAR_FLAG_USER_MASK3bitmask controling what flags can be set from con
GAMEVAR_FLAG_DEFAULT256allow override
GAMEVAR_FLAG_SECRET512don't dump...
GAMEVAR_FLAG_NODEFAULT1024don't add to 'default' array.
GAMEVAR_FLAG_SYSTEM2048cannot change mode flags...(only default value)
GAMEVAR_FLAG_READONLY4096values are read-only (no setvar allowed)
GAMEVAR_FLAG_PLONG8192plValue is a pointer to a longConstantly updated gamevars

Articles in category "Gamevar manipulation"

There are 45 articles in this category.

A

C

D

F

G

I

M

P

R

S

S cont.

U

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../g/a/m/Category%7EGamevar_manipulation_e639.html"

This page has been accessed 561 times. This page was last modified 21:54, 29 September 2005 by Richard Gobeille. Content is available under SourceForge.


[Main Page]
Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports