Skip to content

Command headers for game scripts

idealpersona edited this page Jun 1, 2018 · 15 revisions

The command headers can't be simply copied from anywhere in the DLL source code. Instead it needs to be determined from the implementation of that command in BurikoScriptFile.cs. This takes time so we don't have the headers for all commands. Here are the ones we have. unused means that the argument does not do anything.

Mod commands

ModADVModeSettingLoad(
    string name,
    int posx,
    int posy,
    int sizex,
    int sizey,
    int mleft,
    int mtop,
    int mright,
    int mbottom,
    int font,
    int cspace,
    int lspace,
    int fsize
)

ModCallScriptSection(
    string scriptname,
    string blockname
)

ModDrawCharacter(
    int layer, 
    int character, 
    string texture,
    string defaultSprite, // "0" / "1" / "2", used when LipSync is disabled
    int x,
    int y,
    int z,
    bool move,
    int oldx,
    int oldy,
    int oldz,
    int unused,
    int unused,
    int unused,
    int type,
    int priority,
    int wait,
    bool isblocking
)

ModDrawCharacterWithFiltering(
    int layer,
    int character,
    string texture,
    string defaultSprite, // "0" / "1" / "2", used when LipSync is disabled
    string mask,
    int unused,
    int x,
    int y,
    bool move,
    int oldx,
    int oldy,
    int oldz,
    int z,
    int originx,
    int priority,
    int wait,
    bool isblocking
)

ModNVLADVModeSettingLoad(
    string name,
    int posx,
    int posy,
    int sizex,
    int sizey,
    int mleft,
    int mtop,
    int mright,
    int mbottom,
    int font,
    int cspace,
    int lspace,
    int fsize
)

ModNVLModeSettingLoad(
    string name,
    int posx,
    int posy,
    int sizex,
    int sizey,
    int mleft,
    int mtop,
    int mright,
    int mbottom,
    int font,
    int cspace,
    int lspace,
    int fsize
)

ModPlayVoiceLS(
    int channel,
    int character,
    string filename, //.ogg
    int volume,
    bool lipSync
)

ModPlayMovie(
    string movieName // Where exists StreamingAssets/Movies/<movieName>.ogv or .mp4
)

Engine Commands

DrawBustshot(
    int layer,
    string texture,
    int x,
    int y,
    int z,
    bool move,
    int oldx,
    int oldy,
    int oldz,
    int unused,
    int unused,
    int unused,
    int type,
    int priority,
    int wait,
    bool isblocking
)

// Params of this function seem incorrect and might have changed in later chapters.
// z separated from x, y? originx without originy?
DrawBustshotWithFiltering(
    int layer,
    string texture,
    string mask,
    int unused,
    int x,
    int y,
    bool move,
    int oldx,
    int oldy,
    int oldz,
    int z,
    int originx,
    int priority,
    float wait,
    bool isblocking
)

MoveBustshot(
    int layer,
    string texture,
    int x,
    int y,
    int z,
    int unused,
    int wait,
    bool isblocking
)

DrawSprite(
    int layer,
    string texture,
    string mask,
    int x,
    int y,
    int z,
    int originx,
    int originy,
    int angle,
    bool unused,
    bool unused,
    int style,
    int alpha,
    int priority,
    int wait,
    bool isblocking
)

MoveSprite(
    int layer,
    int x,
    int y,
    int z,
    int angle,
    int alpha,
    int easetype,
    int unused,
    int wait,
    bool isblocking
)
Clone this wiki locally