DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
btsysscript.hpp File Reference

Go to the source code of this file.

Classes

struct  BT_OBJ_HANDLE
 

Functions

void BtSystemScriptEventInfoInit ()
 
BT_OBJ_HANDLE * GetObjHDL (int index)
 
void BtSystemScriptLoad (int floor)
 
void BtSystemScriptInit ()
 
void BtSystemScriptAfter ()
 
int BtSystemScriptRun (int event, CDataAlloc2< 1 > *arena)
 
void BtSetMapJumpFloor (int floor)
 
int _GET_FLOOR_LEVEL (RS_STACKDATA *stack, int argument_count)
 
int _SET_FLOOR_LEVEL (RS_STACKDATA *stack, int argument_count)
 
int _GET_OLD_FLOOR_LEVEL (RS_STACKDATA *stack, int argument_count)
 
int _GET_ACTION_MODE (RS_STACKDATA *stack, int argument_count)
 
int _ITEM_USE_WINDOW (RS_STACKDATA *stack, int argument_count)
 
int _CHECK_EVENT_FLG (RS_STACKDATA *stack, int argument_count)
 
int _SET_EVENT_FLG (RS_STACKDATA *stack, int argument_count)
 
int _GET_OBJHDL (RS_STACKDATA *stack, int argument_count)
 
int _SET_OBJHDL_POS (RS_STACKDATA *stack, int argument_count)
 
int _SET_OBJHDL_ROT (RS_STACKDATA *stack, int argument_count)
 
int _SET_OBJHDL_DRAW_FLAG (RS_STACKDATA *stack, int argument_count)
 
int _GET_OBJHDL_POS (RS_STACKDATA *stack, int argument_count)
 
int _GET_OBJHDL_ROT (RS_STACKDATA *stack, int argument_count)
 
int _SET_URA_DUNGEON (RS_STACKDATA *stack, int argument_count)
 
int _GET_EVENT_POS (RS_STACKDATA *stack, int argument_count)
 
int _GET_EVENT_ROT (RS_STACKDATA *stack, int argument_count)
 
int _OPEN_ENTRANCE_WINDOW (RS_STACKDATA *stack, int argument_count)
 
int _OPEN_ESCAPE_WINDOW (RS_STACKDATA *stack, int argument_count)
 
int _GO_DUNGEON (RS_STACKDATA *stack, int argument_count)
 
int _SET_DUNGEON_MAP (RS_STACKDATA *stack, int argument_count)
 
int _LOAD_DUNGEON_MAP2 (RS_STACKDATA *stack, int argument_count)
 
int _LOAD_MONSTOR (RS_STACKDATA *stack, int argument_count)
 
int _SET_RANDOM_MAP (RS_STACKDATA *stack, int argument_count)
 
int _SET_EVENT_SW (RS_STACKDATA *stack, int argument_count)
 
int _SET_MONSTOR_ID (RS_STACKDATA *stack, int argument_count)
 
int _CHK_ATRA_HAVE (RS_STACKDATA *stack, int argument_count)
 
int _SET_ATRA (RS_STACKDATA *stack, int argument_count)
 
int _SET_IBOX (RS_STACKDATA *stack, int argument_count)
 
int _GET_NOW_USER_ID (RS_STACKDATA *stack, int argument_count)
 
int _RUN_SCRIPT_NO (RS_STACKDATA *stack, int argument_count)
 
int _CLEAN_MONSTOR_SCRIPT_NO (RS_STACKDATA *stack, int argument_count)
 
int _GET_NPC_OBJHDL (RS_STACKDATA *stack, int argument_count)
 
int _SET_MOTION_OBJHDL (RS_STACKDATA *stack, int argument_count)
 
int _SET_NPC_ON_OFF (RS_STACKDATA *stack, int argument_count)
 
int _GET_GATEKEY_NO (RS_STACKDATA *stack, int argument_count)
 
int _USER_WEAPON_DRAW (RS_STACKDATA *stack, int argument_count)
 
int _SET_MAIN_CHR2 (RS_STACKDATA *stack, int argument_count)
 
int _RESET_MAIN_CHR (RS_STACKDATA *stack, int argument_count)
 
int _SET_LIMMIT_ZONE (RS_STACKDATA *stack, int argument_count)
 
int _SET_DEAD_FLAG (RS_STACKDATA *stack, int argument_count)
 
int _ALL_DRAW_FLAG (RS_STACKDATA *stack, int argument_count)
 
int _SET_FLOOR_TITLE (RS_STACKDATA *stack, int argument_count)
 
int _GET_RUBY_ELEMENT (RS_STACKDATA *stack, int argument_count)
 
int _SET_RUBY_ELEMENT (RS_STACKDATA *stack, int argument_count)
 
int _SET_FLOOR_TITLE_OFF (RS_STACKDATA *stack, int argument_count)
 
int _SET_RES_LIMMIT_ZONE (RS_STACKDATA *stack, int argument_count)
 
int _CLEAR_DEAMON_SHAFT (RS_STACKDATA *stack, int argument_count)
 
int _INIT_BEE (RS_STACKDATA *stack, int argument_count)
 
int _END_BEE (RS_STACKDATA *stack, int argument_count)
 
int _EASTKING_COMPLETE (RS_STACKDATA *stack, int argument_count)
 
int _GET_ITEM_TRAPID (RS_STACKDATA *stack, int argument_count)
 
int _RESET_ITEM_TRAP (RS_STACKDATA *stack, int argument_count)
 
int _BOM_SET (RS_STACKDATA *stack, int argument_count)
 
int _SET_STATUS_ERR (RS_STACKDATA *stack, int argument_count)
 
int _CHECK_MARDAN (RS_STACKDATA *stack, int argument_count)
 
int _NO_RESET_CHARA_NO (RS_STACKDATA *stack, int argument_count)
 
int _CHECK_CHR_HELP (RS_STACKDATA *stack, int argument_count)
 
int _HOLD_ITEM_EVENT (RS_STACKDATA *stack, int argument_count)
 
int _STOP_BATTLE_BGM (RS_STACKDATA *stack, int argument_count)
 
int _NO_STATUS_RECOVER (RS_STACKDATA *stack, int argument_count)
 
int _SET_QUEST_DUNGEON (RS_STACKDATA *stack, int argument_count)
 
int _GET_MAP_CODE (RS_STACKDATA *stack, int argument_count)
 
int _SET_ACTIVE_ITEM_ICON (RS_STACKDATA *stack, int argument_count)
 
int _GET_ITEM_UNIT_NO (RS_STACKDATA *stack, int argument_count)
 
int _SET_IBOX_ANGLE (RS_STACKDATA *stack, int argument_count)
 
int _SET_IBOX_FINISH (RS_STACKDATA *stack, int argument_count)
 
int _GET_PIERO_ITEM (RS_STACKDATA *stack, int argument_count)
 
void AddSystemEventScript ()
 

Variables

BT_OBJ_HANDLE BtObjHdl [32]
 
int BtMapJumpFloor
 
char BtLoadMapFileName [32]
 
s32 BtLoadMapType
 

Detailed Description

Declares the opcodes a dungeon floor's system script can call.

The opcodes read their arguments off the script's argument stack and report whether the script may carry on. They reach the floor through NowDngMap and the party through UserStatus, and address the map's frames and characters through the thirty-two object handles GetObjHDL hands out.

Definition in file btsysscript.hpp.

Function Documentation

◆ BtSystemScriptEventInfoInit()

void BtSystemScriptEventInfoInit ( )

Clears the battle event state and points the event at the player's party.

Mangled name:
BtSystemScriptEventInfoInit__Fv
Address:
0x1BB060
Size:
0x198

Definition at line 46 of file btsysscript.cpp.

◆ GetObjHDL()

BT_OBJ_HANDLE * GetObjHDL ( int  index)

Gives one of the thirty-two object handles, or nothing where the index is out of range.

Mangled name:
GetObjHDL__Fi
Address:
0x1BB200
Size:
0x60

Definition at line 86 of file btsysscript.cpp.

◆ BtSystemScriptLoad()

void BtSystemScriptLoad ( int  floor)

Reads one floor's system script off the disc and installs its opcode table.

Mangled name:
BtSystemScriptLoad__Fi
Address:
0x1BB260
Size:
0xAC

Definition at line 95 of file btsysscript.cpp.

◆ BtSystemScriptInit()

void BtSystemScriptInit ( )

Puts the battle event camera in place of the player's and clears the object handles.

Mangled name:
BtSystemScriptInit__Fv
Address:
0x1BB310
Size:
0x2C4

Definition at line 131 of file btsysscript.cpp.

◆ BtSystemScriptAfter()

void BtSystemScriptAfter ( )

Hands control back to the player's camera and clears what the event set.

Mangled name:
BtSystemScriptAfter__Fv
Address:
0x1BB5E0
Size:
0x304

Definition at line 203 of file btsysscript.cpp.

◆ BtSystemScriptRun()

int BtSystemScriptRun ( int  event,
CDataAlloc2< 1 > *  arena 
)

Starts one system event script running out of an arena, giving back what EdEventInit reports.

Mangled name:
BtSystemScriptRun__FiP14CDataAlloc2_1_
Address:
0x1BB8F0
Size:
0x24

Definition at line 257 of file btsysscript.cpp.

◆ BtSetMapJumpFloor()

void BtSetMapJumpFloor ( int  floor)

Selects the floor used by the next battle-map jump.

Mangled name:
BtSetMapJumpFloor__Fi
Address:
0x1BB920
Size:
0xC

Definition at line 261 of file btsysscript.cpp.

◆ _GET_FLOOR_LEVEL()

int _GET_FLOOR_LEVEL ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the floor the party stands on.

Mangled name:
_GET_FLOOR_LEVEL__FP12RS_STACKDATAi
Address:
0x1BBA00
Size:
0x2C

Definition at line 337 of file btsysscript.cpp.

◆ _SET_FLOOR_LEVEL()

int _SET_FLOOR_LEVEL ( RS_STACKDATA *  stack,
int  argument_count 
)

Moves the party to a floor.

Mangled name:
_SET_FLOOR_LEVEL__FP12RS_STACKDATAi
Address:
0x1BBA30
Size:
0x34

Definition at line 342 of file btsysscript.cpp.

◆ _GET_OLD_FLOOR_LEVEL()

int _GET_OLD_FLOOR_LEVEL ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the floor the party came from.

Mangled name:
_GET_OLD_FLOOR_LEVEL__FP12RS_STACKDATAi
Address:
0x1BBA70
Size:
0x2C

Definition at line 347 of file btsysscript.cpp.

◆ _GET_ACTION_MODE()

int _GET_ACTION_MODE ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the mode the battle loop is running in.

Mangled name:
_GET_ACTION_MODE__FP12RS_STACKDATAi
Address:
0x1BBAA0
Size:
0x2C

Definition at line 352 of file btsysscript.cpp.

◆ _ITEM_USE_WINDOW()

int _ITEM_USE_WINDOW ( RS_STACKDATA *  stack,
int  argument_count 
)

Opens the window that asks the player to choose one of a list of items.

Mangled name:
_ITEM_USE_WINDOW__FP12RS_STACKDATAi
Address:
0x1BBAD0
Size:
0xEC

Definition at line 357 of file btsysscript.cpp.

◆ _CHECK_EVENT_FLG()

int _CHECK_EVENT_FLG ( RS_STACKDATA *  stack,
int  argument_count 
)

Reads one of the dungeon's event flags.

Mangled name:
_CHECK_EVENT_FLG__FP12RS_STACKDATAi
Address:
0x1BBBC0
Size:
0x50

Definition at line 381 of file btsysscript.cpp.

◆ _SET_EVENT_FLG()

int _SET_EVENT_FLG ( RS_STACKDATA *  stack,
int  argument_count 
)

Writes one of the dungeon's fifty event flags.

Mangled name:
_SET_EVENT_FLG__FP12RS_STACKDATAi
Address:
0x1BBC10
Size:
0x70

Definition at line 388 of file btsysscript.cpp.

◆ _GET_OBJHDL()

int _GET_OBJHDL ( RS_STACKDATA *  stack,
int  argument_count 
)

Binds an object handle to a named frame of the map, or of one of its parts.

Mangled name:
_GET_OBJHDL__FP12RS_STACKDATAi
Address:
0x1BBC80
Size:
0x130

Definition at line 400 of file btsysscript.cpp.

◆ _SET_OBJHDL_POS()

int _SET_OBJHDL_POS ( RS_STACKDATA *  stack,
int  argument_count 
)

Puts the object a handle names at a world position.

Mangled name:
_SET_OBJHDL_POS__FP12RS_STACKDATAi
Address:
0x1BBDB0
Size:
0xF8

Definition at line 434 of file btsysscript.cpp.

◆ _SET_OBJHDL_ROT()

int _SET_OBJHDL_ROT ( RS_STACKDATA *  stack,
int  argument_count 
)

Turns the object a handle names to three wrapped angles.

Mangled name:
_SET_OBJHDL_ROT__FP12RS_STACKDATAi
Address:
0x1BBEB0
Size:
0x180

Definition at line 452 of file btsysscript.cpp.

◆ _SET_OBJHDL_DRAW_FLAG()

int _SET_OBJHDL_DRAW_FLAG ( RS_STACKDATA *  stack,
int  argument_count 
)

Sets whether the object a handle names is drawn.

Mangled name:
_SET_OBJHDL_DRAW_FLAG__FP12RS_STACKDATAi
Address:
0x1BC030
Size:
0xC4

Definition at line 479 of file btsysscript.cpp.

◆ _GET_OBJHDL_POS()

int _GET_OBJHDL_POS ( RS_STACKDATA *  stack,
int  argument_count 
)

Reads the world position of the object a handle names.

Mangled name:
_GET_OBJHDL_POS__FP12RS_STACKDATAi
Address:
0x1BC100
Size:
0xEC

Definition at line 520 of file btsysscript.cpp.

◆ _GET_OBJHDL_ROT()

int _GET_OBJHDL_ROT ( RS_STACKDATA *  stack,
int  argument_count 
)

Reads the heading of the object a handle names.

Mangled name:
_GET_OBJHDL_ROT__FP12RS_STACKDATAi
Address:
0x1BC1F0
Size:
0x10C

Definition at line 547 of file btsysscript.cpp.

◆ _SET_URA_DUNGEON()

int _SET_URA_DUNGEON ( RS_STACKDATA *  stack,
int  argument_count 
)

Requests a transition to the back dungeon.

Mangled name:
_SET_URA_DUNGEON__FP12RS_STACKDATAi
Address:
0x1BC300
Size:
0x18

Definition at line 578 of file btsysscript.cpp.

◆ _GET_EVENT_POS()

int _GET_EVENT_POS ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the world position the event was started at.

Mangled name:
_GET_EVENT_POS__FP12RS_STACKDATAi
Address:
0x1BC320
Size:
0x5C

Definition at line 583 of file btsysscript.cpp.

◆ _GET_EVENT_ROT()

int _GET_EVENT_ROT ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the heading the event was started with.

Mangled name:
_GET_EVENT_ROT__FP12RS_STACKDATAi
Address:
0x1BC380
Size:
0x5C

Definition at line 590 of file btsysscript.cpp.

◆ _OPEN_ENTRANCE_WINDOW()

int _OPEN_ENTRANCE_WINDOW ( RS_STACKDATA *  stack,
int  argument_count 
)

Opens the dungeon entrance window and retains its result slot.

Mangled name:
_OPEN_ENTRANCE_WINDOW__FP12RS_STACKDATAi
Address:
0x1BC3E0
Size:
0x3C

Definition at line 597 of file btsysscript.cpp.

◆ _OPEN_ESCAPE_WINDOW()

int _OPEN_ESCAPE_WINDOW ( RS_STACKDATA *  stack,
int  argument_count 
)

Opens the dungeon escape window and retains its result slot.

Mangled name:
_OPEN_ESCAPE_WINDOW__FP12RS_STACKDATAi
Address:
0x1BC420
Size:
0x58

Definition at line 607 of file btsysscript.cpp.

◆ _GO_DUNGEON()

int _GO_DUNGEON ( RS_STACKDATA *  stack,
int  argument_count 
)

Requests entry into the selected dungeon floor.

Mangled name:
_GO_DUNGEON__FP12RS_STACKDATAi
Address:
0x1BC480
Size:
0x18

Definition at line 618 of file btsysscript.cpp.

◆ _SET_DUNGEON_MAP()

int _SET_DUNGEON_MAP ( RS_STACKDATA *  stack,
int  argument_count 
)

Names the map file and type the next floor loads from.

Mangled name:
_SET_DUNGEON_MAP__FP12RS_STACKDATAi
Address:
0x1BC4A0
Size:
0x64

Definition at line 623 of file btsysscript.cpp.

◆ _LOAD_DUNGEON_MAP2()

int _LOAD_DUNGEON_MAP2 ( RS_STACKDATA *  stack,
int  argument_count 
)

Loads the map the previous opcode named.

Mangled name:
_LOAD_DUNGEON_MAP2__FP12RS_STACKDATAi
Address:
0x1BC510
Size:
0x40

Definition at line 631 of file btsysscript.cpp.

◆ _LOAD_MONSTOR()

int _LOAD_MONSTOR ( RS_STACKDATA *  stack,
int  argument_count 
)

Reloads and arranges the monsters on the current floor.

Mangled name:
_LOAD_MONSTOR__FP12RS_STACKDATAi
Address:
0x1BC550
Size:
0x30

Definition at line 638 of file btsysscript.cpp.

◆ _SET_RANDOM_MAP()

int _SET_RANDOM_MAP ( RS_STACKDATA *  stack,
int  argument_count 
)

Lays out the floor, randomly or freely according to the map's own setting.

Mangled name:
_SET_RANDOM_MAP__FP12RS_STACKDATAi
Address:
0x1BC580
Size:
0x50

Definition at line 644 of file btsysscript.cpp.

◆ _SET_EVENT_SW()

int _SET_EVENT_SW ( RS_STACKDATA *  stack,
int  argument_count 
)

Turns one of the floor's event switches on or off.

Mangled name:
_SET_EVENT_SW__FP12RS_STACKDATAi
Address:
0x1BC5D0
Size:
0x5C

Definition at line 654 of file btsysscript.cpp.

◆ _SET_MONSTOR_ID()

int _SET_MONSTOR_ID ( RS_STACKDATA *  stack,
int  argument_count 
)

Puts a monster on the floor, optionally clearing the ones already there first.

Mangled name:
_SET_MONSTOR_ID__FP12RS_STACKDATAi
Address:
0x1BC630
Size:
0x1BC

Definition at line 660 of file btsysscript.cpp.

◆ _CHK_ATRA_HAVE()

int _CHK_ATRA_HAVE ( RS_STACKDATA *  stack,
int  argument_count 
)

Reports how many of one kind of Atla the party is carrying.

Mangled name:
_CHK_ATRA_HAVE__FP12RS_STACKDATAi
Address:
0x1BC7F0
Size:
0x8C

Definition at line 701 of file btsysscript.cpp.

◆ _SET_ATRA()

int _SET_ATRA ( RS_STACKDATA *  stack,
int  argument_count 
)

Puts an Atla sphere on the floor at a world position.

Mangled name:
_SET_ATRA__FP12RS_STACKDATAi
Address:
0x1BC880
Size:
0x7C

Definition at line 710 of file btsysscript.cpp.

◆ _SET_IBOX()

int _SET_IBOX ( RS_STACKDATA *  stack,
int  argument_count 
)

Puts a treasure chest on the floor at a world position.

Mangled name:
_SET_IBOX__FP12RS_STACKDATAi
Address:
0x1BC900
Size:
0x84

Definition at line 721 of file btsysscript.cpp.

◆ _GET_NOW_USER_ID()

int _GET_NOW_USER_ID ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the character the player is controlling.

Mangled name:
_GET_NOW_USER_ID__FP12RS_STACKDATAi
Address:
0x1BC990
Size:
0x5C

Definition at line 732 of file btsysscript.cpp.

◆ _RUN_SCRIPT_NO()

int _RUN_SCRIPT_NO ( RS_STACKDATA *  stack,
int  argument_count 
)

Queues another system script to run when this one ends.

Mangled name:
_RUN_SCRIPT_NO__FP12RS_STACKDATAi
Address:
0x1BC9F0
Size:
0xC0

Definition at line 739 of file btsysscript.cpp.

◆ _CLEAN_MONSTOR_SCRIPT_NO()

int _CLEAN_MONSTOR_SCRIPT_NO ( RS_STACKDATA *  stack,
int  argument_count 
)

Queues the script that clears the floor's monsters.

Mangled name:
_CLEAN_MONSTOR_SCRIPT_NO__FP12RS_STACKDATAi
Address:
0x1BCAB0
Size:
0x78

Definition at line 758 of file btsysscript.cpp.

◆ _GET_NPC_OBJHDL()

int _GET_NPC_OBJHDL ( RS_STACKDATA *  stack,
int  argument_count 
)

Binds an object handle to one of the floor's four non-player characters.

Mangled name:
_GET_NPC_OBJHDL__FP12RS_STACKDATAi
Address:
0x1BCB30
Size:
0xCC

Definition at line 771 of file btsysscript.cpp.

◆ _SET_MOTION_OBJHDL()

int _SET_MOTION_OBJHDL ( RS_STACKDATA *  stack,
int  argument_count 
)

Starts a motion on one of the floor's non-player characters.

Mangled name:
_SET_MOTION_OBJHDL__FP12RS_STACKDATAi
Address:
0x1BCC00
Size:
0x138

Definition at line 794 of file btsysscript.cpp.

◆ _SET_NPC_ON_OFF()

int _SET_NPC_ON_OFF ( RS_STACKDATA *  stack,
int  argument_count 
)

Sets whether one of the floor's non-player characters takes part.

Mangled name:
_SET_NPC_ON_OFF__FP12RS_STACKDATAi
Address:
0x1BCD40
Size:
0x84

Definition at line 821 of file btsysscript.cpp.

◆ _GET_GATEKEY_NO()

int _GET_GATEKEY_NO ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the key the floor's gate wants.

Mangled name:
_GET_GATEKEY_NO__FP12RS_STACKDATAi
Address:
0x1BCDD0
Size:
0x2C

Definition at line 833 of file btsysscript.cpp.

◆ _USER_WEAPON_DRAW()

int _USER_WEAPON_DRAW ( RS_STACKDATA *  stack,
int  argument_count 
)

Sets whether the player's weapon is drawn.

Mangled name:
_USER_WEAPON_DRAW__FP12RS_STACKDATAi
Address:
0x1BCE00
Size:
0x40

Definition at line 838 of file btsysscript.cpp.

◆ _SET_MAIN_CHR2()

int _SET_MAIN_CHR2 ( RS_STACKDATA *  stack,
int  argument_count 
)

Puts one of the six party members in the player's hands, remembering who was there.

Mangled name:
_SET_MAIN_CHR2__FP12RS_STACKDATAi
Address:
0x1BCE40
Size:
0x9C

Definition at line 847 of file btsysscript.cpp.

◆ _RESET_MAIN_CHR()

int _RESET_MAIN_CHR ( RS_STACKDATA *  stack,
int  argument_count 
)

Selects again, with mode 0, the character _SET_MAIN_CHR2 last asked for, and clears the record.

Mangled name:
_RESET_MAIN_CHR__FP12RS_STACKDATAi
Address:
0x1BCEE0
Size:
0x50

Definition at line 864 of file btsysscript.cpp.

◆ _SET_LIMMIT_ZONE()

int _SET_LIMMIT_ZONE ( RS_STACKDATA *  stack,
int  argument_count 
)

Fences the party into a zone and loads the sound that warns them of it.

Mangled name:
_SET_LIMMIT_ZONE__FP12RS_STACKDATAi
Address:
0x1BCF30
Size:
0x40

Definition at line 875 of file btsysscript.cpp.

◆ _SET_DEAD_FLAG()

int _SET_DEAD_FLAG ( RS_STACKDATA *  stack,
int  argument_count 
)

Marks the party dead.

Mangled name:
_SET_DEAD_FLAG__FP12RS_STACKDATAi
Address:
0x1BCF70
Size:
0x28

Definition at line 881 of file btsysscript.cpp.

◆ _ALL_DRAW_FLAG()

int _ALL_DRAW_FLAG ( RS_STACKDATA *  stack,
int  argument_count 
)

Sets whether the floor draws at all.

Mangled name:
_ALL_DRAW_FLAG__FP12RS_STACKDATAi
Address:
0x1BCFA0
Size:
0x34

Definition at line 886 of file btsysscript.cpp.

◆ _SET_FLOOR_TITLE()

int _SET_FLOOR_TITLE ( RS_STACKDATA *  stack,
int  argument_count 
)

Opens the current floor's title display.

Mangled name:
_SET_FLOOR_TITLE__FP12RS_STACKDATAi
Address:
0x1BCFE0
Size:
0x24

Definition at line 894 of file btsysscript.cpp.

◆ _GET_RUBY_ELEMENT()

int _GET_RUBY_ELEMENT ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the element the floor's sealed door wants.

Mangled name:
_GET_RUBY_ELEMENT__FP12RS_STACKDATAi
Address:
0x1BD010
Size:
0x28

Definition at line 899 of file btsysscript.cpp.

◆ _SET_RUBY_ELEMENT()

int _SET_RUBY_ELEMENT ( RS_STACKDATA *  stack,
int  argument_count 
)

Reads an element off the stack and discards it.

Mangled name:
_SET_RUBY_ELEMENT__FP12RS_STACKDATAi
Address:
0x1BD040
Size:
0x24

Definition at line 904 of file btsysscript.cpp.

◆ _SET_FLOOR_TITLE_OFF()

int _SET_FLOOR_TITLE_OFF ( RS_STACKDATA *  stack,
int  argument_count 
)

Suppresses the plate that names the floor.

Mangled name:
_SET_FLOOR_TITLE_OFF__FP12RS_STACKDATAi
Address:
0x1BD070
Size:
0x14

Definition at line 909 of file btsysscript.cpp.

◆ _SET_RES_LIMMIT_ZONE()

int _SET_RES_LIMMIT_ZONE ( RS_STACKDATA *  stack,
int  argument_count 
)

Restores the zone the party was fenced into and its warning sound.

Mangled name:
_SET_RES_LIMMIT_ZONE__FP12RS_STACKDATAi
Address:
0x1BD090
Size:
0x50

Definition at line 914 of file btsysscript.cpp.

◆ _CLEAR_DEAMON_SHAFT()

int _CLEAR_DEAMON_SHAFT ( RS_STACKDATA *  stack,
int  argument_count 
)

Clears the recorded progress through the Demon Shaft.

Mangled name:
_CLEAR_DEAMON_SHAFT__FP12RS_STACKDATAi
Address:
0x1BD0E0
Size:
0x28

Definition at line 924 of file btsysscript.cpp.

◆ _INIT_BEE()

int _INIT_BEE ( RS_STACKDATA *  stack,
int  argument_count 
)

Starts the swarm of bees on one of the party's characters.

Mangled name:
_INIT_BEE__FP12RS_STACKDATAi
Address:
0x1BD110
Size:
0x64

Definition at line 929 of file btsysscript.cpp.

◆ _END_BEE()

int _END_BEE ( RS_STACKDATA *  stack,
int  argument_count 
)

Ends the swarm of bees.

Mangled name:
_END_BEE__FP12RS_STACKDATAi
Address:
0x1BD180
Size:
0x18

Definition at line 935 of file btsysscript.cpp.

◆ _EASTKING_COMPLETE()

int _EASTKING_COMPLETE ( RS_STACKDATA *  stack,
int  argument_count 
)

Reports whether the Eastern king's puzzle has been completed.

Mangled name:
_EASTKING_COMPLETE__FP12RS_STACKDATAi
Address:
0x1BD1A0
Size:
0x40

Definition at line 940 of file btsysscript.cpp.

◆ _GET_ITEM_TRAPID()

int _GET_ITEM_TRAPID ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the trap on the chest the party is opening.

Mangled name:
_GET_ITEM_TRAPID__FP12RS_STACKDATAi
Address:
0x1BD1E0
Size:
0x44

Definition at line 945 of file btsysscript.cpp.

◆ _RESET_ITEM_TRAP()

int _RESET_ITEM_TRAP ( RS_STACKDATA *  stack,
int  argument_count 
)

Clears the trap on the chest the party is opening.

Mangled name:
_RESET_ITEM_TRAP__FP12RS_STACKDATAi
Address:
0x1BD230
Size:
0x34

Definition at line 951 of file btsysscript.cpp.

◆ _BOM_SET()

int _BOM_SET ( RS_STACKDATA *  stack,
int  argument_count 
)

Sets off an explosion above the party and pushes it away from them.

Mangled name:
_BOM_SET__FP12RS_STACKDATAi
Address:
0x1BD270
Size:
0x100

Definition at line 958 of file btsysscript.cpp.

◆ _SET_STATUS_ERR()

int _SET_STATUS_ERR ( RS_STACKDATA *  stack,
int  argument_count 
)

Inflicts a status ailment on the party and raises the collision that shows it.

Mangled name:
_SET_STATUS_ERR__FP12RS_STACKDATAi
Address:
0x1BD370
Size:
0x90

Definition at line 978 of file btsysscript.cpp.

◆ _CHECK_MARDAN()

int _CHECK_MARDAN ( RS_STACKDATA *  stack,
int  argument_count 
)

Reports the state of the Mardan Garayan fishing quest.

Mangled name:
_CHECK_MARDAN__FP12RS_STACKDATAi
Address:
0x1BD400
Size:
0x34

Definition at line 988 of file btsysscript.cpp.

◆ _NO_RESET_CHARA_NO()

int _NO_RESET_CHARA_NO ( RS_STACKDATA *  stack,
int  argument_count 
)

Keeps the controlled character across the end of the event.

Mangled name:
_NO_RESET_CHARA_NO__FP12RS_STACKDATAi
Address:
0x1BD440
Size:
0x14

Definition at line 993 of file btsysscript.cpp.

◆ _CHECK_CHR_HELP()

int _CHECK_CHR_HELP ( RS_STACKDATA *  stack,
int  argument_count 
)

Reports whether a party member is waiting to be rescued.

Mangled name:
_CHECK_CHR_HELP__FP12RS_STACKDATAi
Address:
0x1BD460
Size:
0x2C

Definition at line 998 of file btsysscript.cpp.

◆ _HOLD_ITEM_EVENT()

int _HOLD_ITEM_EVENT ( RS_STACKDATA *  stack,
int  argument_count 
)

Holds the item event of a number back in both event managers.

Mangled name:
_HOLD_ITEM_EVENT__FP12RS_STACKDATAi
Address:
0x1BD490
Size:
0x58

Definition at line 1003 of file btsysscript.cpp.

◆ _STOP_BATTLE_BGM()

int _STOP_BATTLE_BGM ( RS_STACKDATA *  stack,
int  argument_count 
)

Stops the current battle music.

Mangled name:
_STOP_BATTLE_BGM__FP12RS_STACKDATAi
Address:
0x1BD4F0
Size:
0x24

Definition at line 1010 of file btsysscript.cpp.

◆ _NO_STATUS_RECOVER()

int _NO_STATUS_RECOVER ( RS_STACKDATA *  stack,
int  argument_count 
)

Keeps status ailments across the end of the event.

Mangled name:
_NO_STATUS_RECOVER__FP12RS_STACKDATAi
Address:
0x1BD520
Size:
0x14

Definition at line 1015 of file btsysscript.cpp.

◆ _SET_QUEST_DUNGEON()

int _SET_QUEST_DUNGEON ( RS_STACKDATA *  stack,
int  argument_count 
)

Records the party's progress through a quest dungeon.

Mangled name:
_SET_QUEST_DUNGEON__FP12RS_STACKDATAi
Address:
0x1BD540
Size:
0x5C

Definition at line 1020 of file btsysscript.cpp.

◆ _GET_MAP_CODE()

int _GET_MAP_CODE ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the dungeon the party is in, counted from one.

Mangled name:
_GET_MAP_CODE__FP12RS_STACKDATAi
Address:
0x1BD5A0
Size:
0x30

Definition at line 1026 of file btsysscript.cpp.

◆ _SET_ACTIVE_ITEM_ICON()

int _SET_ACTIVE_ITEM_ICON ( RS_STACKDATA *  stack,
int  argument_count 
)

Loads the icons used by the active item slots.

Mangled name:
_SET_ACTIVE_ITEM_ICON__FP12RS_STACKDATAi
Address:
0x1BD5D0
Size:
0x24

Definition at line 1031 of file btsysscript.cpp.

◆ _GET_ITEM_UNIT_NO()

int _GET_ITEM_UNIT_NO ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the party member a weapon item belongs to, or -1 for an item that is not a weapon.

Mangled name:
_GET_ITEM_UNIT_NO__FP12RS_STACKDATAi
Address:
0x1BD600
Size:
0xE4

Definition at line 1036 of file btsysscript.cpp.

◆ _SET_IBOX_ANGLE()

int _SET_IBOX_ANGLE ( RS_STACKDATA *  stack,
int  argument_count 
)

Turns the chest the party is opening.

Mangled name:
_SET_IBOX_ANGLE__FP12RS_STACKDATAi
Address:
0x1BD6F0
Size:
0x44

Definition at line 1071 of file btsysscript.cpp.

◆ _SET_IBOX_FINISH()

int _SET_IBOX_FINISH ( RS_STACKDATA *  stack,
int  argument_count 
)

Closes the chest the party is opening and drops it out of sight.

Mangled name:
_SET_IBOX_FINISH__FP12RS_STACKDATAi
Address:
0x1BD740
Size:
0x50

Definition at line 1076 of file btsysscript.cpp.

◆ _GET_PIERO_ITEM()

int _GET_PIERO_ITEM ( RS_STACKDATA *  stack,
int  argument_count 
)

Gives the two items the clown trades on this floor.

Mangled name:
_GET_PIERO_ITEM__FP12RS_STACKDATAi
Address:
0x1BD790
Size:
0x64

Definition at line 1082 of file btsysscript.cpp.

◆ AddSystemEventScript()

void AddSystemEventScript ( )

Fills the opcode table from the extension list, refusing a list that names one twice.

Mangled name:
AddSystemEventScript__Fv
Address:
0x1BD800
Size:
0xFC

Definition at line 1169 of file btsysscript.cpp.

Variable Documentation

◆ BtObjHdl

BT_OBJ_HANDLE BtObjHdl[32]
extern

Table of object handles the battle script system can bind.

Definition at line 41 of file btsysscript.cpp.

◆ BtMapJumpFloor

int BtMapJumpFloor
extern

Floor requested for the next battle-map jump.

Definition at line 43 of file btsysscript.cpp.

◆ BtLoadMapFileName

char BtLoadMapFileName[32]
extern

Name of the map file the next battle-map jump loads.

Definition at line 42 of file btsysscript.cpp.

◆ BtLoadMapType

s32 BtLoadMapType
extern

Layout of the map the next battle-map jump loads.

Definition at line 44 of file btsysscript.cpp.