/****************************************************************************************************************************** Gears 5 Idle XP with Re-up Created by Lambent Lail This script is an idle method of boosting overall experience towards re-ups in Gears 5. It does NOT earn character experience. Requirements: - You must have vibration for your controller turned on - Have the map "The Descent" unlocked, or any other map that can be ran on Master difficulty that does NOT have an iron-man modifier - Always initiate the script from the Escape lobby - If you use this script to re-up for you as well (see below), you must have Inconceivable unlocked on the map "The Hive", because this is the default selection when entering the Escape menu, and therefore will be the map selected after coming back from a re-up (only use this if you plan on re-upping while away from your Xbox) Start script: Press LS Stop script: Press RS Re-upping: This script can also perform the steps to Re-up, but only if you are in a squad by yourself. You must enter in your own values for the variables below, labelled a, b, c, and d, for this part of the script to work, OR you can simply enter in the number of runs you need directly into the y variable. Please note, this part of the script should only be used if you have calculated that you will Re-up while away from your Xbox. Otherwise, I recommend manually Re-upping. IMPORTANT: The values for a, b, c, and d are static, meaning if you stop the script before you actually Re-up, you will have to update them with the newest values before starting the script again. Please message me on Xbox Live or TrueAchievements (preferred) with any improvements or bugs. Change log JAN 13 2020 -Initial code published APR 27 2020 -Added combo_stop functions to all x values to stop all other combos that could be running except for the one that needs to be running -Reduce some wait times between button presses, making the script slightly faster and off-setting the other increased time adjustments made in this update -Encountered an issue where "Options" was being selected instead of "Restart Act" and adjusted wait times in the restart combo accordingly, and also added it for "Return to Lobby" as well; commented the appropriate sections -Reduced the wait time for the screen to fade to black from 2 seconds to 1.75 seconds -Title update 4 added Public or Private options to the initial Escape menu choices; updated the Re-up combo to always choose Private game -Reduce wait time at start of Re-up combo from 1 minute to 45 seconds to 45 seconds -Commented out the additional A button press confirming to "Bring squad with you"; recommend to run the script solo for optimal efficiency -Removed all the extra B presses to leave out of the Re-up rewards screen to make the script PC-friendly (I think.. no way of testing this myself) ******************************************************************************************************************************/ //Input values for a, b, c, and d to calculate the number of matches needed for next re-up define a = 999; //Current level (valid values are 1 - 100) define b = 999; //Current experience in level define c = 999; //Experience required per level define d = 1600; //Experience gained per match (if doing it solo, set to 1600) //Variables needed for the script int y; int x = 0; int j = 0; main { y = ((((100 - a) * c) - b) / d) + 1; //Calculated matches required to re-up based on input from above. You can also simply //enter a number here in place of the equation, i.e. y = 54; //Buttons to X values if(get_val(XB1_RS)) {x = 0;} if(get_val(XB1_LS)) {x = 1;} //X values to combos if(x==0) { combo_stop(begin); combo_stop(buttons); combo_stop(restart); combo_stop(reup); } if(x==1) { combo_run(begin); } if(x==2 && j!=y) { combo_stop(begin); combo_stop(restart); combo_stop(reup); combo_run(buttons); } if(x==2 && j==y) { combo_stop(begin); combo_stop(buttons); combo_stop(restart); combo_run(reup); } if(x==3) { combo_stop(begin); combo_stop(buttons); combo_stop(reup); combo_run(restart); } } combo begin { j = 0; wait(1); x = 2; } combo buttons { //Begin countdown and bust out of pod set_val(XB1_X, 100); wait(25); set_val(XB1_X, 0); wait(25); //Pull up Tour of Duty on Escape menu to prevent B button from closing out of the match set_val(XB1_LT, 100); wait(75); set_val(XB1_LT, 0); //Shoot gun to rumble the controller and initiate combo switch set_val(XB1_RT, 100); if ( get_rumble(RUMBLE_A) > 0 || get_rumble(RUMBLE_B) > 0 || get_rumble(RUMBLE_RT) > 0 || get_rumble(RUMBLE_LT) > 0 ) {x = 3;} wait(25); set_val(XB1_RT, 0); //Close the results screen set_val(XB1_B, 100); wait(25); set_val(XB1_B, 0); } combo restart { //Let go of RT from previous combo wait(25); set_val(XB1_RT, 0); //Small pause to enure that "Restart Act" is an option in the menu wait(950); //Pause, restart act set_val(XB1_MENU, 100); wait(25); set_val(XB1_MENU, 0); wait(250); //Be sure to allow enough time for the pause menu to fully option, otherwise "Restart Act" might not be selected set_val(XB1_LY, 100); wait(25); set_val(XB1_LY, 0); wait(25); set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); //Wait for fade to black wait(1750); //Pause, return to lobby set_val(XB1_MENU, 100); wait(25); set_val(XB1_MENU, 0); wait(250); //Be sure to allow enough time for the pause menu to fully option, otherwise "Return to Lobby" might not be selected set_val(XB1_LY, 100); wait(25); set_val(XB1_LY, 0); wait(25); set_val(XB1_LY, 100); wait(25); set_val(XB1_LY, 0); wait(25); set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(25); set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(1); //Count the match as complete j = j + 1; wait(1); //Start over x = 2; } combo reup { //Wait a while to ensure the results screen is loaded all the way before starting wait(30000); wait(15000); //Leave results screen set_val(XB1_B, 100); wait(25); set_val(XB1_B, 0); wait(25); //Try to leave Escape set_val(XB1_B, 100); wait(25); set_val(XB1_B, 0); wait(25); //Confirm leaving set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(25); //Bring squad - If in a party alone, this may go into a different menu item on the main menu, which is okay // set_val(XB1_A, 100); wait(50); set_val(XB1_A, 0); wait(500); //If no squad is available, make sure to return to main menu // set_val(XB1_B, 100); wait(50); set_val(XB1_B, 0); wait(50); // set_val(XB1_B, 100); wait(50); set_val(XB1_B, 0); wait(50); // set_val(XB1_B, 100); wait(50); set_val(XB1_B, 0); wait(50); //Re-up and wait 3 seconds set_val(XB1_X, 100); wait(3000); set_val(XB1_A, 0); wait(2000); //Close out of rewards set_val(XB1_B, 100); wait(25); set_val(XB1_B, 0); wait(25); //Enter Escape from the main menu set_val(XB1_DOWN, 100); wait(25); set_val(XB1_DOWN, 0); wait(25); set_val(XB1_DOWN, 100); wait(25); set_val(XB1_DOWN, 0); wait(25); set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(500); //Select Custom Escape (minimum of 3 RIGHTs, extra presses coded just in case) set_val(XB1_RIGHT, 100); wait(50); set_val(XB1_RIGHT, 0); wait(25); set_val(XB1_RIGHT, 100); wait(50); set_val(XB1_RIGHT, 0); wait(25); set_val(XB1_RIGHT, 100); wait(50); set_val(XB1_RIGHT, 0); wait(25); set_val(XB1_RIGHT, 100); wait(50); set_val(XB1_RIGHT, 0); wait(25); set_val(XB1_RIGHT, 100); wait(50); set_val(XB1_RIGHT, 0); wait(25); //Choose custom, select Host Game, wait for everything to load set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(100); set_val(XB1_RIGHT, 100); wait(25); set_val(XB1_RIGHT, 0); wait(25); set_val(XB1_A, 100); wait(25); set_val(XB1_A, 0); wait(1000); //Reset re-up variable j = 0; wait(1); //Start over x = 2; }