Members of the player structure/test: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 25: Line 25:
*[[shield_amount]]
*[[shield_amount]]
*[[steroids_amount]]
*[[steroids_amount]]
*[[max_shield_amount]]
Cheat Codes
Cheat Codes
*[[cheat_phase]]
*[[cheat_phase]]
Line 100: Line 101:
*[[zoom]]
*[[zoom]]
Score
Score
*[[actors_killed]]
*[[max_actors_killed]]
*[[max_actors_killed]]
*[[max_player_health]]
*[[max_secret_rooms]]
*[[max_secret_rooms]]
*[[max_shield_amount]]
*[[player_par]]
*[[player_par]]
*[[secret_rooms]]
*[[secret_rooms]]
Line 129: Line 129:
*[[access_spritenum]]
*[[access_spritenum]]
*[[access_wallnum]]
*[[access_wallnum]]
*[[actors_killed]]
*[[actorsqu]]
*[[actorsqu]]
*[[airleft]]
*[[airleft]]
Line 145: Line 144:
*[[last_extra]]
*[[last_extra]]
*[[loogcnt]]
*[[loogcnt]]
*[[max_player_health]]
*[[numloogs]]
*[[numloogs]]
*[[on_crane]]
*[[on_crane]]
Line 169: Line 169:
[2] Unavailable members. There is no access to them via CON.
[2] Unavailable members. There is no access to them via CON.


[[Category:Structure access]]
[[Category:Player manipulation]]
[[Category:Player manipulation]]
[[Category:Structure member documentation]]
__NOTOC__

Latest revision as of 19:07, 3 April 2015

The various members of the player structure affect various aspects of the player, and manipulating their values is a very important aspect of scripting in EDuke32. Values can be retrieved from the game's internal player structures and stored in a gamevar with the getplayer command, and the setplayer command allows you to set any of the player structure member's value to that of a gamevar.

Here is the list of members of the player structure:

Ammo

Inventory

Cheat Codes

Config

Weapons

Coordinates

Movements speed

View

Score

Quote

Multiplayer

Deprecated

Misc

[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.