Block:mem

From PGE Wiki
Jump to navigation Jump to search

This function allows you to read and manipulate the memory values of blocks in SMBX.

Arguments

Field Type Description
address int (hex) The offset of the block's memory to access. See SMBX Block Offsets to find what is stored in each offset.
fieldtype int The field type of the address. The FIELD_#### constants may be used here. See LunaLua constants
value object The value to set for that offset. Optional. Ignore to only test the value of the offset. Note that some fields are read-only and cannot be changed by the user.