Skip to content

vars_access.h

set_global_byte

s8 set_global_byte(s32 index, s32 value) source

Set value of saved game byte @param index can be either a global byte reference (GB_*) or index @param value new value for the saved byte @returns previous value of the saved byte

get_global_byte

s32 get_global_byte(s32 index) source

Get value of saved game byte @param 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 @param index can be either a global byte reference (GB_*) or index to the lowest byte @param value new value for the saved short @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 @param 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 @param index can be either a global byte reference (GB_*) or index to the lowest byte @param value new value for the saved word @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 @param index can be either a global byte reference (GB_*) or index to the lowest byte @returns value of the saved word