genericdata#

Represents a generic script. Load with Game->LoadGenericData().

Variables#

bool

Running

int

DataSize

bool[]

ExitState

bool[]

ReloadState

bool[]

EventListen

untyped[]

Data

untyped[]

InitD

Functions#

bool

RunFrozen()

Enumerations#

enum GenericScriptStateIndex: πŸ”— Source

Used with genericdata::ExitState and genericdata::ReloadState.

GenericScriptStateIndex GENSCR_ST_RELOAD = 0

When reloading from save select screen

GenericScriptStateIndex GENSCR_ST_CONTINUE = 1

When F6->Continue

GenericScriptStateIndex GENSCR_ST_CHANGE_SCREEN = 2

When screen changes

GenericScriptStateIndex GENSCR_ST_CHANGE_DMAP = 3

When dmap changes

GenericScriptStateIndex GENSCR_ST_CHANGE_LEVEL = 4

When level changes

GenericScriptStateIndex GENSCR_NUMST = 5


Variable descriptions#

bool Running πŸ”— Source

True if the script is currently running passively. Set to false to stop it.


int DataSize πŸ”— Source

The size of the script’s Data (see below). Writing this resizes the array, where any area above the previous maximum is cleared to 0.


bool[] ExitState πŸ”— Source

index GenericScriptStateIndex (GENSCR_ST_)

Arrays of exit and reload conditions. All states default to false.


bool[] ReloadState πŸ”— Source

index GenericScriptStateIndex (GENSCR_ST_)

Arrays of exit and reload conditions. All states default to false.


bool[] EventListen πŸ”— Source

index GenericScriptEvent (GENSCR_EVENT_)

Array of event listener conditions. When WaitEvent() is called, the script will wait until any event which has a value of β€˜true’ in this array occurs.


untyped[] Data πŸ”— Source

A misc data array, resizable by writing to DataSize (see above). All indexes are saved with the save file, including any resizing.


untyped[] InitD πŸ”— Source

The 8 InitD[] parameters for the generic script. Shared by passive and frozen run modes.


Function descriptions#

bool RunFrozen() πŸ”— Source

Attempt to run the generic script in frozen mode.