Simple Slot Changer

NOT A STANDALONE SCRIPT MUST PUT INSIDE ANOTHER, ONLY ADDS THE ABILITY TO SWITCH BETWEEN MODS THAT ALSO HAVE THIS SCRIPT. Set button commands to switch between programmed slots in the Titan One seamlessly during play. (1-9) copy and paste the int, init, and everything between the two green slot changer lines in main to any/all of your slots before program. Currently I have the code set up for PS4 but just change PS4_LEFT and PS4_RIGHT to whatever buttons you like on your controller.
Version1.03
AuthorNitemareMarauder
Publish DateTue, 19 Dec 2017 - 11:04
Last UpdateMon, 8 Jan 2018 - 07:38
Downloads192
RATE


2

2

Release Notes: Made it more obvious what to do.
Code: Select all
int _currentSlot; //COPY THIS TO THE TOP OF YOUR SCRIPT.
 
init {
    _currentSlot = get_slot(); //COPY THIS AND PLACE IN YOUR INIT IF YOU DONT HAVE ONE COPY THIS WHOLE BLOCK AND PASTE ABOVE MAIN.
}
 
main {
/*********COPY TO YOUR MAIN BLOCK********************************/
    if(event_press(PS4_LEFT)&& check_slot(_currentSlot-1))      //
        load_slot(_currentSlot-1);                              //
                                                                //
    if(event_press(PS4_RIGHT)&& check_slot(_currentSlot+1))     //
        load_slot(_currentSlot+1);                              //
/***********COPY TO YOUR MAIN BLOCK******************************/
}