GPC Library

D'Vorah Swarm Queen combo

D'Vorah Swarm Queen combo start RS on right
Version 1
Author flyfoxtwo
Publish Date 2017-04-20 15:16:01
Update Date 2017-04-20 15:16:01
Downloads 26
RATE


0

0

Release Notes: D'Vorah Swarm Queen combo 1.0
Code:Select all
// Script was generated with < Script Manipulator > ver. 12.1 Date :04/20/17 Time: 16:43:41
//------------------------------------------------------------------------
                                                                        
define BTN1                                    =  17; // TRIANGLE, Y 
define BTN2                                    =  18; // CIRCLE, B  
define BTN3                                    =  19; // CROSS, A 
define BTN4                                    =  20; // SQUARE, X 
define BTN5                                    =   3; // R1, RB    
define BTN6                                    =   4; // R2, RT    
define BTN7                                    =   6; // L1, LB    
define BTN8                                    =   7; // L2, LT    
define TOUCH                                   =  27; // TOUCH PAD   
define UP                                      =  13; // DPAD UP   
define DOWN                                    =  14; // DPAD DOWN 
define LEFT                                    =  15; // DPAD LEFT  
define RIGHT                                   =  16; // DPAD RIGHT  
define MOVE_X                                  =  11; // LEFT ANALOG X 
define MOVE_Y                                  =  12; // LEFT ANALOG Y 
//-----------------------------------------------------
define BACK             = 128; // BACK FLAG    
define FORWARD          = 129; // FORWARD FLAG 
                                        
                                        
// End Flags. 254 and 255 should never be used in the 
// data segment for other purposes.                  
//-----------------------------------------------------
define EOC              = 254; // End of Combo      
define EOD              = 255; // End of Data Segment 
//-----------------------------------------------------
                                        
                                        
define SuperComboAssistant                     =  0;
data(
SuperComboAssistant,
1,BTN1,
4,
0,4,
1,FORWARD,
4,
0,4,
3,DOWN,
BTN2,
BTN6,
4,
0,4,
1,BACK,
4,
0,4,
2,DOWN,
BTN2,
4,
0,4,
2,FORWARD,
BTN1,
4,
0,4,
2,DOWN,
BTN6,
4,
0,4,
EOD );
int i = -1, b, v;
int back = LEFT, forward = RIGHT;
int button_1, button_2, button_3, button_4, button_5;  
int value_1, value_2, value_3, value_4, value_5;  
int wait_time;                               
int switch;                               
int delay_t;                               
int RUMBLE_TYPE=RUMBLE_A;                 
int cancel;                 
int EndOfCombo;             
int CanStart;               
                                             
main {                                       
                                             
                                             
                                             
    // Determine Back and Forward            
    if(get_val(RIGHT) || get_val(MOVE_X) >= 30) { 
        back = LEFT; forward = RIGHT;             
    } else if(get_val(LEFT) || get_val(MOVE_X) <= -30) {
        back = RIGHT; forward = LEFT;           
    }//----------------------------------------------
                                             
                                             
                                                
    // If there is a combo to be executed       
    if(i >= 0 && delay_t<=0) {                                
        // Execute the combo step-by-step       
        if(!combo_running(execute_step)) {      
            if(get_step_values()) {              
                if(wait_time == 0) {               
                    combo_run(execute_step_no_wait);
                } else {                         
                    combo_run(execute_step);     
                }                                
            } else { // the combo finished       
                i = -1;                          
            }                                    
        }                                         
                                                  
                                                  
    // CANCEL combos condition-----------------------------------------
      if ( (abs(get_val (9)) <= 20 && abs(get_val (10)) <= 20) && (abs(get_val (11)) <= 20 && abs(get_val (12)) <= 20) ) {
      i = -1;                                                     
      combo_stop(execute_step);                                   
      }                                                           
                                                                        
        // RS X and Y are in rest - cancel the combo             
        if ( (abs(get_val(9)) <= 20 && abs(get_val(10)) <= 20) && (abs(get_val (11)) <= 20 && abs(get_val (12)) <= 20) && (!get_val(5) && !get_val(8))) { 
            i = -1;                        
            combo_stop(execute_step);      
        } 
    //CANCEL ----------------------------------------------------------
                                                    
                                                    
        // Make sure the user inputs does not interfere in the combo 
        set_val(BTN1                                    , 0);                       
        set_val(BTN2                                    , 0);                       
        set_val(BTN3                                    , 0);                       
        set_val(BTN4                                    , 0);                       
        set_val(BTN5                                    , 0);                        
        set_val(BTN6                                    , 0);                        
        set_val(BTN7                                    , 0);                        
        set_val(BTN8                                    , 0);                        
        set_val(UP                                      , 0);                        
        set_val(DOWN                                    , 0);                        
        set_val(LEFT                                    , 0);                        
        set_val(RIGHT                                   , 0);                        
        set_val(MOVE_X                                  , 0);                        
        set_val(MOVE_Y                                  , 0);                        
                                                         
    // if no combo execute - look for combo activation  
    } else {                                       
    // EDIT THIS PART OF SCRIPT for combo run ---------------------------
//////////////////////////////////////////////////////////////////////////
// RS RIGHT                                   
        if (get_val (9) >= 60) {    //Combo 1 
        cancel=1; 
        i = get_combo_index(SuperComboAssistant); 
        }      // end editing here --------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////
    }// <combo activation> end 
}//<main> block end                                 
                                                    
// This combo will run a step with wait             
combo execute_step {                                
    set_buttons_values();                           
    wait(wait_time);                                
    set_buttons_values();                          
}                                                  
                                                   
// This combo will run a step without wait         
combo execute_step_no_wait {                       
    set_buttons_values();                          
}                                                  
                                                   
                                                   
combo RUMBLE_NOTIFICATION {                        
    set_rumble(RUMBLE_TYPE, 100);                     
    wait(300);             
    reset_rumble ();                             
}                                                  
                                                   
// Returns the starting index of a combo           
function get_combo_index(combo_id) {               
    i = 0;                                         
    while(TRUE) {//-----------------------         
        v = dbyte(i);                              
        if(v == combo_id) {                        
            return(i + 1);                         
        } else {//====================             
            while(v != EOC && v != EOD) {//#       
                i = i + 1;                         
                v = dbyte(i);                      
            }//#                                   
            if(v == EOD) break;                    
            else i = i + 1;                        
        }//=============================           
    }//-----------------------------------         
    return(-1);                                    
}                                                  
                                                   
// Set the buttons, values and wait time of a step 
function get_step_values() {                       
    b = dbyte(i); i = i + 1;                       
    if(b > 5) return(FALSE);                       
                                                   
    if(b >= 1) {                                    
        button_1 = convert_back_forward(dbyte(i)); i = i + 1;
        value_1 = 100;              
    } else { button_1 = -1; value_1 = 0; }          
                                                    
    if(b >= 2) {                                     
        button_2 = convert_back_forward(dbyte(i)); i = i + 1;
        value_2 = 100;               
    } else { button_2 = -1; value_2 = 0; }           
                                                     
    if(b >= 3) {                                     
        button_3 = convert_back_forward(dbyte(i)); i = i + 1; 
        value_3 = 100;               
    } else { button_3 = -1; value_3 = 0; }           
                                                     
    if(b >= 4) {                                     
        button_4 = convert_back_forward(dbyte(i)); i = i + 1; 
        value_4 = 100;               
    } else { button_4 = -1; value_4 = 0; }           
                                                     
    if(b >= 5) {                                     
        button_5 = convert_back_forward(dbyte(i)); i = i + 1;
        value_5 = 100;                
    } else { button_5 = -1; value_5 = 0; }           
                                                     
    wait_time = dbyte(i); i = i + 1;                 
    wait_time = (wait_time - 1) * 10;                
    if(wait_time < 0) wait_time = 0;                 
    else if(wait_time > 2530) wait_time = 2530;       
                                                     
    return(TRUE);                                    
}                                                    
                                                      
// If the step has FORWARD and BACK buttons, set the correct value.
function convert_back_forward(button) {              
    if(button == FORWARD) {                          
        return(forward);                             
    } else if(button == BACK) {                      
        return(back);                                
    }                                                
    return(button);                                  
}                                                     
                                                     
// Set the buttons and values, function used on the combos.
function set_buttons_values() {                      
    if(button_1 != -1) set_val(button_1, value_1);   
    if(button_2 != -1) set_val(button_2, value_2);   
    if(button_3 != -1) set_val(button_3, value_3);   
    if(button_4 != -1) set_val(button_4, value_4);   
    if(button_5 != -1) set_val(button_5, value_5);   
}                                                    
  • Rating

    10 / 10 here !

    If you own a ps3 and prefer an xbox controller, or even use a keyboard and mouse, this is a must to remap your keyboard to a controller. Go buy it now you won't be disappointed !

  • Rating

    Amazing device

    If you're like me and love your PS4 controller but want to use an Xbox One GET THIS you won't be sorry.

  • Rating

    Worth every penny

    The controller feels and performs as it does on the xbox right there on my ps3, awesome job guys, and worth every penny !!!

  • Rating

    Amazing Macro combos

    tested Super Street Fighter IV Arcade Edition. I was able to perform normal & FADC combos with some characters like Ryu and Ken with a single click. Amazing.

  • Rating

    As good as a XIM

    If you are a pc gamer, that needs a pc solution for console, get yourself a ControllerMAX you will not regret it.

  • Rating

    KB & Mouse RULES!

    All I can say playing 10 minutes with ControllerMAX properly configured it felt better then PC....YES I said it even better then PC, it's that smooth.

  • Rating

    Six-Axis 360!

    WOW! I can finally get that six-axis awesomeness on my Xbox 360. The best money I ever spent.

  • Rating

    Beats all rapidfire mods

    I've tried the Intensafire, Godfather even the new Wolf controller. The ControllerMAX beats them hands down and no wires or soldering too. 5 Stars!

  • Rating

    Just perfect!

    I can't believe how much this can do for the price tag - it blew me away. Best controller upgrade ever.

  • Rating

    Hugh Thanks!

    Without your help I couldn't be playing Xbox, thanks guys.

  • Rating

    Wow!

    I have to say after reading the forums for Destiny Mouse and Keyboard setup I was flying into getting it set up in 20 minutes. It works outstanding! I'm more then satisfied and its worth every penny!

  • Rating

    Achievement Unlocked!

    Idle boosting Complete 150 Multiplayer games, James Cameron's Avatar. My friend said it would be hard, I laughed then linked him.

  • Rating

    A++!

    Now this is a company you can count on and trust...keep up the great work guys!

  • Rating

    What Disability?

    I would like to thank you for making the CronusMax. I have this problem hitting L3 and R3, and today that problem was fixed. I love the remap feature on the Cronus max. You made my life easier.

  • Rating

    Awesome stuff guys!

    Playing Forza 5 with my original MS 360 wireless wheel makes the XB1 complete for me, thanks to the CronusMax. Thumbs up!