mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-23 17:25:14 -05:00
Working build!
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
int last_error;
|
||||
Pokemon_Party party_data;
|
||||
|
||||
script_obj script[13] =
|
||||
script_obj script[16] =
|
||||
{
|
||||
script_obj("", 2, CHECK_GAME, 1), // 0
|
||||
script_obj("Game not detected. Please turn off your system and upload the program again.", 2), // 1
|
||||
@@ -19,7 +19,10 @@ script_obj script[13] =
|
||||
script_obj("Error: Timed out (1).", 3), // 9
|
||||
script_obj("", 12, ERROR_TIMEOUT_TWO, 11), // 10
|
||||
script_obj("Error: Timed out (2)", 3), // 11
|
||||
script_obj("Connection successful! Transfering in Pokemon now", 5), // 12
|
||||
script_obj("", 14, ERROR_COLOSSEUM, 13), // 12
|
||||
script_obj("Error: Went into Colosseum", 3), // 13
|
||||
script_obj("Connection successful! Transfering in Pokemon now", 15), // 14
|
||||
script_obj("", 14, IMPORT_POKEMON), // 15
|
||||
};
|
||||
|
||||
void add_script_party_var(Pokemon_Party var)
|
||||
@@ -58,6 +61,14 @@ bool run_conditional(int index)
|
||||
case ERROR_TIMEOUT_TWO:
|
||||
return party_data.get_last_error() != ERROR_TIMEOUT_TWO;
|
||||
|
||||
case ERROR_COLOSSEUM:
|
||||
return party_data.get_last_error() != ERROR_COLOSSEUM;
|
||||
|
||||
case IMPORT_POKEMON:
|
||||
party_data.load_pokemon();
|
||||
party_data.inject_pokemon();
|
||||
return true;
|
||||
|
||||
default:
|
||||
tte_set_pos(0, 0);
|
||||
tte_write("ERROR! No conditional found.");
|
||||
|
||||
Reference in New Issue
Block a user