Poke_Transporter_GB/include/script_array.h
Remnants of Forgotten Disney 5d5fe71100 Connection Dialogue
2023-11-11 18:19:25 -06:00

65 lines
2.0 KiB
C

#ifndef SCRIPT_ARRAY_H
#define SCRIPT_ARRAY_H
#include "script_obj.h"
#include "pokemon_party.h"
// Dialouge
#define DIA_INDEX_OPEN 0
#define DIA_INDEX_E4 1
#define DIA_INDEX_MG 2
#define DIA_INDEX_START 3
#define DIA_INDEX_ERROR_1 4
#define DIA_INDEX_CONN_GOOD 5
#define DIA_INDEX_LINK_GOOD 6
#define DIA_INDEX_TRANS_GOOD 7
#define DIA_INDEX_NEW_DEX 8
#define DIA_INDEX_NO_NEW_DEX 9
#define DIA_INDEX_SEND_FRIEND 10
#define DIA_INDEX_THANK 11
#define DIA_INDEX_GET_MON 12
#define DIA_ERROR_TIME_ONE 13
#define DIA_ERROR_TIME_TWO 14
#define DIA_ERROR_DISCONNECT 15
#define DIA_ERROR_COM_ENDED 16
#define DIA_ERROR_COLOSSEUM 17
#define DIA_SIZE 18
#define DIA_END DIA_SIZE
// Commands
#define SCRIPT_START DIA_END + 0
#define CMD_START_LINK DIA_END + 1
#define CMD_IMPORT_POKEMON DIA_END + 2
#define CMD_BACK_TO_MENU DIA_END + 3
#define CMD_SHOW_PROF DIA_END + 4
#define CMD_HIDE_PROF DIA_END + 5
#define CMD_SIZE 6
#define CMDS_END DIA_END + CMD_SIZE
// Conditionals
#define COND_ERROR_TIMEOUT_ONE CMDS_END + 0 // Didn't talk to the Cable Club attendant fast enough or cable not connected
#define COND_ERROR_DISCONNECT CMDS_END + 1 // If you unplug the cable after starting SPI
#define COND_ERROR_COM_ENDED CMDS_END + 2 // If you don't save the game
#define COND_ERROR_TIMEOUT_TWO CMDS_END + 3 // ???
#define COND_ERROR_COLOSSEUM CMDS_END + 4 // If the player selects the battle colosseum (shouldn't be possible)
#define COND_BEAT_E4 CMDS_END + 5
#define COND_MG_ENABLED CMDS_END + 6
#define COND_TUTORIAL_COMPLETE CMDS_END + 7
#define COND_SIZE 8
#define COND_END CMDS_END + COND_SIZE
// Ends
#define SCRIPT_SIZE COND_END
extern script_obj script[];
void populate_script();
void populate_dialogue();
void add_script_party_var(Pokemon_Party var);
bool run_conditional(int index);
#endif