GPC SCRIPT LIBRARY

UNIVERSAL SWITCH BETWEEN TWO SLOTS part TWO

// Embed this script in your second script. Compile it. // Place it in different slots of CronusMax device ( from Number 1 to 9 ). // For example, you have two profiles - profile1 and profile2 // Let sey you put profile1 on slot 4 and profile2 on slot 7 // 1. Change load slot with button of the CronusMax device to slot 7 // and now execute CHANGE_SLOT ( press XB1_MENU ). // 2. You are ready - change slot with button of CronusMax to slot 2 ( this is your profile1 ) // 3. Now you can play and when you want to switch profiles - just press XB1_MENU // This will automatically switch between the two profiles. // If in the future you need to change the slots, just repeat from step 1 // Even when you turn off the power of CronusMax, // he will remember the values and you are ready to play every time. N.B. You'll also need the other part ( part ONE ).
Version 1.2
Author Excalibur
Published Date 2014-04-22 23:35:39
Latest Date 2017-01-10 18:48:28
Downloads 187
VOTE NOW

5

0
Contact Author
Scripts by Author
RELEASE NOTES
fixed compiler error
Code:Select all
/*
_______________  ____________     _____  .____    ._____________ ____ _____________ 
\_   _____/\   \/  /\_   ___ \   /  _  \ |    |   |   \______   \    |   \______   \
 |    __)_  \     / /    \  \/  /  /_\  \|    |   |   ||    |  _/    |   /|       _/
 |        \ /     \ \     \____/    |    \    |___|   ||    |   \    |  / |    |   \
/_______  //___/\  \ \______  /\____|__  /_______ \___||______  /______/  |____|_  /
        \/       \_/        \/         \/        \/           \/                 \/ 
*/
///////////////////////////////////////////////////////////////////////////////////////////////////
///  UNIVERSAL SWITCH BETWEEN TWO SLOTS  //////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// ****************
// *** PART TWO ***  
// **************** 
//  Embed this script in your SECOND script (PROFILE 2). Compile it.
//  Place it in different slots of CronusMax device ( from Nomber 1 to 9 ).
//  For example, you have two profiles - profile1 and profile2
//  Let sey you put profile1 on slot 4 and profile2 on slot 7
//  1. Change load slot with button of the CronusMax device to slot 7 
//  and now execute CHANGE_SLOT ( press XB1_MENU ).
//  2. You are ready - change slot with button of CronusMax to slot 2 ( this is your profile1 )
//  3. Now you can play and when you want to switch profiles - just press XB1_MENU
//  This will automatically switch between the two profiles.
//  If in the future you need to change the slots, just repeat from step 1 
//  Even when you turn off the power of CronusMax, 
//  he will remember the values and you are ready to play every time. 
//////////////////////////////////////////////////////////////////////////////////////////////////

int pv1;
int pv2;
init { 
      pv1 = get_pvar(PVAR_1,1,10,1);
      pv2 = get_pvar(PVAR_2,1,10,1);
     }

main {

// This statament load slot (change profiles )
   if(event_press(XB1_MENU)) combo_run(CHANGE_SLOT);

set_val(TRACE_1,get_pvar(PVAR_1,1,10,1));
set_val(TRACE_2,get_pvar(PVAR_2,1,10,1));
set_val(TRACE_3,get_slot());


}

combo CHANGE_SLOT {
    if(get_slot() > 0 && get_slot() < 10)  set_pvar(PVAR_2,get_slot());
    wait(20);
    if(pv1>0 && pv1<10)
    load_slot(pv1);
}

Pin It on Pinterest

Share This