Skip to content

vars_access.h

set_global_byte

s8 set_global_byte(s32 index, s32 value) source

Set value of saved game byte. index can be either a global byte reference (GB_*) or index. Returns previous value of the saved byte.

get_global_byte

s32 get_global_byte(s32 index) source

Get value of saved game byte. index can be either a global byte reference (GB_*) or index. Returns value of the saved byte.

set_global_short

s16 set_global_short(s32 index, s32 value) source

Store a short in two consecutive saved game bytes. index can be either a global byte reference (GB_*) or index to the lowest byte. Returns previous value of the saved short.

get_global_short

s16 get_global_short(s32 index) source

Retrieve a short from two consecutive saved game bytes. index can be either a global byte reference (GB_*) or index to the lowest byte. Returns value of the saved short.

set_global_word

s32 set_global_word(s32 index, s32 value) source

Store a word in four consecutive saved game bytes. index can be either a global byte reference (GB_*) or index to the lowest byte. Returns previous value of the saved word.

get_global_word

s32 get_global_word(s32 index) source

Retrieve a word from four consecutive saved game bytes. index can be either a global byte reference (GB_*) or index to the lowest byte. Returns value of the saved word.

set_global_flag

s32 set_global_flag(s32 index) source

clear_global_flag

s32 clear_global_flag(s32 index) source

get_global_flag

s32 get_global_flag(s32 index) source

set_area_byte

s8 set_area_byte(s32 index, s32 value) source

get_area_byte

s32 get_area_byte(s32 index) source

set_area_flag

s32 set_area_flag(s32 index) source

clear_area_flag

s32 clear_area_flag(s32 index) source

get_area_flag

s32 get_area_flag(s32 index) source