GPC SCRIPT LIBRARY

ERROR
You can't vote if you're not logged-in.

UNIVERSAL SWITCH BETWEEN TWO SLOTS part ONE

// Embed this script in your first 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 TWO )
Version 1.2
Author Excalibur
Published Date 2014-04-22 23:39:35
Latest Date 2017-01-10 18:49:17
Downloads 165
VOTE NOW

3

0
Contact Author
Scripts by Author
RELEASE NOTES
fixed compiler error
Code:Select all
/*
_______________  ____________     _____  .____    ._____________ ____ _____________ 
\_   _____/\   \/  /\_   ___ \   /  _  \ |    |   |   \______   \    |   \______   \
 |    __)_  \     / /    \  \/  /  /_\  \|    |   |   ||    |  _/    |   /|       _/
 |        \ /     \ \     \____/    |    \    |___|   ||    |   \    |  / |    |   \
/_______  //___/\  \ \______  /\____|__  /_______ \___||______  /______/  |____|_  /
        \/       \_/        \/         \/        \/           \/                 \/ 
*/

///////////////////////////////////////////////////////////////////////////////////////////////////
///  UNIVERSAL SWITCH BETWEEN TWO SLOTS  //////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// ****************
// *** PART ONE ***  
// ****************  
// !!!!!!!      YOU MUST DOWNLOAD and PART TWO   !!!!!!!!!!!!!!!!!!!!!!!!!!!
//
//  Embed this script in your FIRST script (PROFILE 1). 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 PVAR_SLOT;
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);

// this is for debuging 
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_1,get_slot());
    wait(20);
   if(pv2>0 && pv2<10)
    load_slot(pv2);
}

Pin It on Pinterest

Share This