DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
BT_EVENT_INFO Struct Reference

#include <gameloop.hpp>

Public Attributes

sceVu0FVECTOR position
 
sceVu0FVECTOR direction
 
s32 init_flag_20
 
s32 action_mode
 
s32 init_flag_28
 
s32 script_no
 
s32 running_script_no
 
s32 ext_memory
 
s32 event_marker
 
s32 item_select_list [16]
 
s32 item_select_filtered
 
s32 item_select_result
 
RS_STACKDATA * entrance_result
 
RS_STACKDATA * escape_result
 
s32 floor_title_off
 
s32 fade_on_start
 
s32 bee_npc
 
s32 request
 
s32 chained_script_no
 
s32 clear_script_no
 
s32 clear_script_ext_memory
 
s32 script_main_chr
 
s32 treasure_box
 
s32 no_reset_chara
 
s32 chara_help
 
s32 no_status_recover
 
s32 unk_BC
 

Detailed Description

Stores the state shared by dungeon event scripts and the dungeon loop.

Definition at line 136 of file gameloop.hpp.

Member Data Documentation

◆ position

sceVu0FVECTOR BT_EVENT_INFO::position

Where the event run by the script plays.

Definition at line 137 of file gameloop.hpp.

◆ direction

sceVu0FVECTOR BT_EVENT_INFO::direction

Which way that event faces.

Definition at line 138 of file gameloop.hpp.

◆ init_flag_20

s32 BT_EVENT_INFO::init_flag_20

Set to 1 when the event state is initialised and never read.

Definition at line 139 of file gameloop.hpp.

◆ action_mode

s32 BT_EVENT_INFO::action_mode

How the player started the event: 0 automatically, 1 with the action button, 2 with the hold button.

Definition at line 140 of file gameloop.hpp.

◆ init_flag_28

s32 BT_EVENT_INFO::init_flag_28

Set to 1 when the event state is initialised and never read.

Definition at line 141 of file gameloop.hpp.

◆ script_no

s32 BT_EVENT_INFO::script_no

System script the dungeon loop runs next, or -1 when none is queued.

Definition at line 142 of file gameloop.hpp.

◆ running_script_no

s32 BT_EVENT_INFO::running_script_no

System script currently running, or -1 when none is.

Definition at line 143 of file gameloop.hpp.

◆ ext_memory

s32 BT_EVENT_INFO::ext_memory

Whether the queued script runs out of the monster model arena instead of the script work buffer.

Definition at line 144 of file gameloop.hpp.

◆ event_marker

s32 BT_EVENT_INFO::event_marker

Whether the event marker is drawn over the player this frame.

Definition at line 145 of file gameloop.hpp.

◆ item_select_list

s32 BT_EVENT_INFO::item_select_list[16]

Items the script's item window offers, ended by -1.

Definition at line 146 of file gameloop.hpp.

◆ item_select_filtered

s32 BT_EVENT_INFO::item_select_filtered

Whether the script's item window is limited to item_select_list.

Definition at line 147 of file gameloop.hpp.

◆ item_select_result

s32 BT_EVENT_INFO::item_select_result

Address of the script stack entry the chosen item is written back to, or 0.

Definition at line 148 of file gameloop.hpp.

◆ entrance_result

RS_STACKDATA* BT_EVENT_INFO::entrance_result

Where the floor the player chose is written back.

Definition at line 149 of file gameloop.hpp.

◆ escape_result

RS_STACKDATA* BT_EVENT_INFO::escape_result

Where the escape answer is written back.

Definition at line 150 of file gameloop.hpp.

◆ floor_title_off

s32 BT_EVENT_INFO::floor_title_off

Suppresses the floor title when the floor starts.

Definition at line 151 of file gameloop.hpp.

◆ fade_on_start

s32 BT_EVENT_INFO::fade_on_start

Whether the next system script resets the editor fade when it starts.

Definition at line 152 of file gameloop.hpp.

◆ bee_npc

s32 BT_EVENT_INFO::bee_npc

NPC unit the bee follows, or -1 when there is no bee.

Definition at line 153 of file gameloop.hpp.

◆ request

s32 BT_EVENT_INFO::request

Dungeon transition requested by the event script.

See also
BtEventRequest.

Definition at line 154 of file gameloop.hpp.

◆ chained_script_no

s32 BT_EVENT_INFO::chained_script_no

Script _RUN_SCRIPT_NO asks to run after the current one ends.

Definition at line 155 of file gameloop.hpp.

◆ clear_script_no

s32 BT_EVENT_INFO::clear_script_no

Script to run once every monster on the floor is defeated, or -1.

Definition at line 156 of file gameloop.hpp.

◆ clear_script_ext_memory

s32 BT_EVENT_INFO::clear_script_ext_memory

ext_memory setting for clear_script_no.

Definition at line 157 of file gameloop.hpp.

◆ script_main_chr

s32 BT_EVENT_INFO::script_main_chr

Character _SET_MAIN_CHR2 last asked for, or -1 when none is set.

Definition at line 158 of file gameloop.hpp.

◆ treasure_box

s32 BT_EVENT_INFO::treasure_box

Treasure box the item-box event scripts act on.

Definition at line 159 of file gameloop.hpp.

◆ no_reset_chara

s32 BT_EVENT_INFO::no_reset_chara

Keeps the script's chosen character when the script ends.

Definition at line 160 of file gameloop.hpp.

◆ chara_help

s32 BT_EVENT_INFO::chara_help

Whether the event was started by the character it asks for.

Definition at line 161 of file gameloop.hpp.

◆ no_status_recover

s32 BT_EVENT_INFO::no_status_recover

Prevents restoring party status when entering the floor.

Definition at line 162 of file gameloop.hpp.

◆ unk_BC

s32 BT_EVENT_INFO::unk_BC

Definition at line 163 of file gameloop.hpp.