3API_CALLABLE(N(DarkRoomUpdate)) {
8 script->functionTemp[0] = 255;
9 script->functionTemp[1] = FALSE;
16 if (!script->functionTemp[1]) {
17 script->functionTemp[1] = TRUE;
20 script->functionTemp[0] -= 8;
21 if (script->functionTemp[0] < 90) {
22 script->functionTemp[0] = 90;
26 if (script->functionTemp[1]) {
27 script->functionTemp[1] = FALSE;
28 if (script->functionTemp[0] < 255) {
32 script->functionTemp[0] += 8;
33 if (script->functionTemp[0] >= 255) {
34 script->functionTemp[0] = 255;
37 script->functionTemp[0] = 255;
48 Call(N(DarkRoomUpdate))
@ SOUND_WATT_REPEL_DARKNESS
@ SOUND_WATT_RESUME_DARKNESS
void set_screen_overlay_params_back(u8, f32)
void set_screen_overlay_alpha(s32, f32)
void set_screen_overlay_center_worldpos(s32 idx, s32 posIdx, s32 x, s32 y, s32 z)
void sfx_play_sound(s32 soundID)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.
PartnerStatus gPartnerStatus
PlayerStatus gPlayerStatus