mapdata#
Represents a single map screen.
Depending on how the mapdata
was loaded, it may represent:
- a temporary copy of the current screen (Game->LoadTempScreen())
- a temporary copy of a scrolling screen (Game->LoadScrollingScreen())
- the canonical copy of a screen (Game->LoadMapData())
Variables#
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int |
|
untyped[] |
|
bool[] |
|
int |
|
int[] |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
int |
|
int[] |
|
int |
|
int[] |
|
int[] |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
bool[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
bool[] |
|
bool[] |
|
const int[] |
|
const int |
|
const int |
|
bool[] |
|
bool[] |
|
int |
|
untyped[] |
|
int |
|
bool[] |
|
int |
|
int |
|
int |
|
const int |
|
untyped[] |
D deprecated |
int |
HasItem deprecated |
const int[] |
SFlags deprecated |
int |
WarpReturnC deprecated |
int |
EnemyFlags deprecated |
int |
SideWarpIndex deprecated |
int |
EntryX deprecated |
int |
EntryY deprecated |
const bool[] |
NumFFCs deprecated |
int |
LensLayer deprecated |
Functions#
bool |
isSolid(int x, int y) |
bool |
isSolidLayer(int x, int y, int layer) |
untyped |
GetFFCInitD(int ffc_index, int n) |
void |
SetFFCInitD(int ffc_index, int n, untyped value) |
bool |
GetExDoor(int dir, int index) |
void |
SetExDoor(int dir, int index, bool state) |
int |
GetFFCInitA(int ffc_index, int n) |
int |
SetFFCInitA(int ffc_index, int init_a, int value) |
Variable descriptions#
Returns true if the screen is βvalidβ. Screens that appear with the default blue background in ZQuest are βinvalidβ. Modifying a combo on a screen makes it become βvalidβ. If a layer is βinvalidβ, it will not be drawn.
The screen guy.
The screen string.
The screen room type. Use the RT_
constants for this value.
The item placed on the screen. -1 if no item placed.
int[] TileWarpType π Source
The Tile Warp type for Tile Warps A, B, C, and D; [0], [1], [2], and [3] respectively.
Valid values: WarpType (WT_
).
The screen script that runs on this screen.
The 8 script arguments for the script that runs on this screen.
bool[] TileWarpOverlay π Source
Set or get the overlay state for the warp ID corresponding to the index of this array.
The Door Set used for the NES dungeon doors on this screen.
The X-component for each of the four 2.50+ (blue) warp return squares.
The Y-component for each of the four 2.50+ (blue) warp return squares.
The X/Y position of the βStairsβ secret on the screen.
The X/Y position of the βStairsβ secret on the screen.
The X/Y position the screenβs item spawns at.
The X/Y position the screenβs item spawns at.
The palette set in the F4 menu in ZQuest for this screen. Has no effect during play, but can be read and written.
The 4 door states of the screen.
Valid indices: DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT
int[] TileWarpDMap π Source
The destination DMap for each of the four warp types.
int[] TileWarpScreen π Source
The destination screen for each of the four warp types.
The Maze Path βExit Directionβ.
The 10 enemies that appear on this screen.
The spawn pattern for the screen enemies.
Valid values: EnemyPattern (PATTERN_
).
int[] SideWarpType π Source
The Sidewarp type for Sidewarps A, B, C, and D; [0], [1], [2], and [3] respectively.
Valid values: WarpType (WT_
).
int[] SideWarpOverlay π Source
Set or get the overlay state for the warp ID corresponding to the index of this array.
The X-component for the pre-2.50 (green) arrival square.
The X-component for the pre-2.50 (green) arrival square.
The four directions you must go for the maze path.
Valid indices: DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT
int[] SideWarpScreen π Source
The destination screen for each of the four sidewarps.
Returns the sidewarp ID for a given screen edge, as SideWarpID``dir``
;
Returns SIDEWARP_NONE if there is no sidewarp in that direction.
Valid indices: DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT
Valid values: SideWarpIndex (SIDEWARP_
)
int[] TileWarpReturnSquare π Source
The return square used by the Tile Warp (A, B, C, D).
int[] SideWarpReturnSquare π Source
The return square used by the Side Warp (A, B, C, D).
int[] SideWarpDMap π Source
The destination DMap for each of the four sidewarps.
The screenβs undercombo, which will appear as a result of various combo interactions, such as pushing blocks, awakening armos, etc.
The CSet associated with the undercombo.
The screenβs βcatchallβ value. This is the roomtype-specific data, such as the βSpecial Itemβ in a βSpecial Itemβ room.
The value of damage combo sensitivity for the screen.
The No Reset
carryover flags.
The No Carry Over
carryover flags.
The map and screen for each layer. Index [0] of these arrays does nothing, and is invalid to access.
The map and screen for each layer. Index [0] of these arrays does nothing, and is invalid to access.
int[] LayerOpacity π Source
The opacity value (OP_OPAQUE
or OP_TRANS
) for each layer. Index [0]
does nothing, and is invalid to access.
bool[] LayerInvisible π Source
If true, the given layer is invisible and will not be drawn.
bool[] ScriptDraws π Source
If false, the given layer of script draws will be disabled on this screen.
int TimedWarpTimer π Source
The timer used by βTime Warp Ticsβ in Screen Data->T.Warp
The map and screen that screen states carry over to.
The map and screen that screen states carry over to.
The combo that will be placed for each secret type.
The cset that will be placed for each secret type.
The screen flags that will be placed for each secret type.
The Data (combo ID) variable for each of the ffcs on the screen.
See ffc::Data for more details.
The CSet variable for each of the ffcs on the screen.
See ffc::CSet for more details.
The Delay variable for each of the ffcs on the screen.
See ffc::Delay for more details.
The X variable for each of the ffcs on the screen.
See ffc::X for more details.
The Y variable for each of the ffcs on the screen.
See ffc::Y for more details.
The Vx variable for each of the ffcs on the screen.
See ffc::Vx for more details.
The Vy variable for each of the ffcs on the screen.
See ffc::Vy for more details.
The Ax variable for each of the ffcs on the screen.
See ffc::Ax for more details.
The Vy variable for each of the ffcs on the screen.
See ffc::Vy for more details.
The Flags variable for each of the ffcs on the screen.
See ffc::Flags[] for more details.
int[] FFCEffectWidth π Source
The EffectWidth variable for each of the ffcs on the screen.
See ffc::EffectWidth for more details.
int[] FFCEffectHeight π Source
The EffectHeight variable for each of the ffcs on the screen.
See ffc::EffectHeight for more details.
int[] FFCTileWidth π Source
The TileWidth variable for each of the ffcs on the screen.
See ffc::TileWidth for more details.
int[] FFCTileHeight π Source
The TileHeighr variable for each of the ffcs on the screen.
See ffc::TileHeight for more details.
The Link variable for each of the ffcs on the screen.
See ffc::Link for more details.
The Script variable for each of the ffcs on the screen.
See ffc::Script for more details.
The SFX for the ambient sound of the screen.
The SFX for the boss roar on this screen.
The SFX that will play when secrets are triggered on this screen.
The SFX that will play when an item is held up on this screen.
The βScreen MIDIβ to play for this screen.
Arrays containing flag data for each screen.
The Combo ID placed at each position on the screen.
The CSet of the combo placed at each position on the screen.
The mapflag placed at each position on the screen.
The inherent flag of the combo placed at each position on the screen.
The combo type of the combo placed at each position on the screen.
The solidity map of the combo placed at each position on the screen.
The effect map of the combo placed at each position on the screen.
The screen states used for this screen. Use the ST_
constants to access
this.
The 32 βExtra Statesβ used for this screen.
const int[] EFlags π Source
Arrays containing flag data for each screen.
Returns the map this mapdata points to.
Returns the screen this mapdata points to.
Arrays of the 7 layer show/hide values for the lens of truth.
Arrays of the 7 layer show/hide values for the lens of truth.
Read-write, the size of the Data[]
array.
Resizable array of data for scripts to use. All changes are saved to the save file.
Number of enemies remaining alive on this screen.
Returns true if the specified ffc is running a script?
May be used to pause/resume ffc script execution?
This needs to be cloned over to ffc->Running
The βAmbient Soundβ under S.Data2.
Rename this to AmbientSFX, or just SFX.
The screen palette.
const int CarryoverScreen π Source
Improperly implemented. Was meant to relate as Screen->D, except that
Screen->D is not bound to layermap.
Warning
Deprecated! mapdata->D[] has never worked!
If not zero, then the item for this screen will be shown.
When Link takes the item on a screen, this is set to 0.
Warning
Deprecated! Check β->Item > -1β instead!
const int[] SFlags π Source
Warning
Deprecated! Use Flags[] instead!
Stores the information on warp returns, butwise.
The bits are DDCCBBAADDCCBBAA
, where the left section is sidewarp
returns, and the right is tilewarp returns.
Warning
Deprecated! by SideWarpReturnSquare[4] and TileWarpReturnSquare[4]
A flagset for enemies on the screen (E.Flags).
Valid values (ORd) together, are:
TODO: write the values here
Warning
Deprecated!
The warp return IDs.
Warning
Deprecated! by SideWarpID[].
Warning
Deprecated! Use Hero->RespawnX instead!
Warning
Deprecated! Use Hero->RespawnY instead!
const bool[] NumFFCs π Source
Warning
Deprecated!
Warning
Deprecated!
Function descriptions#
bool isSolid(int x, int y) π Source
Returns true if the given x,y position on the screen is βsolidβ.
bool isSolidLayer(int x, int y, int layer) π Source
Returns true if the given x,y position on the screen is βsolidβ.
untyped GetFFCInitD(int ffc_index, int n) π Source
Returns the value of InitD``n`` for the ffc on the screen with an ID of ffc_index.
This needs to be converted to the type βuntypedβ to comply with the change of float ffc->InitD[] to untyped ffc->InitD[]
Note: Expressed as a function due to lack of 2D arrays in ZScript.
With 2D arrays, this would simply be FFCInitD[32][8].
void SetFFCInitD(int ffc_index, int n, untyped value) π Source
Sets the value of InitD``n`` for the ffc on the screen with an ID of ffc_index.
βint valueβ needs to be converted to the type βuntypedβ to comply with the change of float ffc->InitD[] to untyped ffc->InitD[]
Note: Expressed as a function due to lack of 2D arrays in ZScript.
With 2D arrays, this would simply be FFCInitD[32][8].
bool GetExDoor(int dir, int index) π Source
Returns a door state for the screen.
void SetExDoor(int dir, int index, bool state) π Source
Sets a door state for the screen.
int GetFFCInitA(int ffc_index, int n) π Source
Returns the value of InitA``n`` for the ffc on the screen with an ID of ffc_index.
Note: Expressed as a function due to lack of 2D arrays in ZScript.
With 2D arrays, this would simply be FFCInitA[32][2].
int SetFFCInitA(int ffc_index, int init_a, int value) π Source
Sets the value of InitA``n`` for the ffc on the screen with an ID of ffc_index.
Note: Expressed as a function due to lack of 2D arrays in ZScript.
With 2D arrays, this would simply be FFCInitA[32][2].