Open main menu

UESPWiki β

Daggerfall Mod:DFRemake/DFEGetFirstRegionDungeon

< Mod / Daggerfall: Daggerfall Mod: DFRemake(Redirected from Daggerfall:DFRemake/DFEGetFirstRegionDungeon)

integer DFEGetFirstRegionDungeon ( DWORD MemblockPtr, DWORD RegionIndex )Edit

InputsEdit

  • MemblockPtr: Pointer to the memblock (from GET MEMBLOCK POINTER) to receive the dungeon data. The memblock should be allocated with at least 256 bytes.
  • RegionIndex: The region index to start iterating dungeons in.

OutputsEdit

Returns 0 if there are no dungeon in the given region (or on any error). Returns 1 on success.

DescriptionEdit

Use this function to start iterating through all dungeons in a given region. See DFEGetNextRegionDungeon for a description of the memblock data format used.

ExampleEdit

  Local Result as integer
  make memblock 1, 256
  Result = DFEGetFirstRegionDungeon(get memblock ptr(1), 19)

See AlsoEdit