combo script help

GPC1 script programming for Titan One. Code examples, questions, requests.

combo script help

Postby stonevictor100 » Thu Feb 25, 2016 10:15 pm

Hi, can anyone know what needs fixing on the combo tap_2 on the below script. I am trying to create a diagonal down/right

Code: Select all


main {
    if(get_val(PS4_CIRCLE)) {
        combo_run(Tap_1);
        combo_run(Tap_2);
        combo_run(Tap_3);
        combo_run(Tap_4);
    }

}

combo Tap_1 {
    ;
    wait(20);
    set_val(PS4_DOWN, 100);
    wait(90);
    set_val(PS4_DOWN, 100);
}

combo Tap_2 {
    set_val(PS4_RIGHT, 0);
    set_val(PS4_DOWN, 0)
    wait(20);
    set_val(PS4_RIGHT, 100);
    set_val(PS4_DOWN, 100)
    wait(90);
    set_val(PS4_RIGHT, 100);
    set_val(PS4_DOWN, 100)
}

combo Tap_3 {
    set_val(PS4_RIGHT, 0);
    wait(20);
    set_val(PS4_RIGHT, 100);
    wait(90);
    set_val(PS4_RIGHT, 100);
}

combo Tap_4 {
    set_val(PS4_R2, 0);
    wait(20);
    set_val(PS4_R2, 100);
    wait(90);
    set_val(PS4_R2, 100);
}



If it can look like attached, just tell me what to replace GYROX with for down+right
Attachments
Capture.PNG
visual block script
Capture.PNG (32.09 KiB) Viewed 1063 times
User avatar
stonevictor100
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Feb 24, 2016 4:13 pm

Re: combo script help

Postby bonefisher » Thu Feb 25, 2016 11:42 pm

Is this a fighting game?
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: combo script help

Postby bonefisher » Thu Feb 25, 2016 11:54 pm

Code: Select all

main {
    if(get_val(PS4_CIRCLE)) {
        combo_run(Tap_1);
        combo_run(Tap_2);
        combo_run(Tap_3);
        combo_run(Tap_4);
    }

}

combo Tap_1 {

    wait(20);
    set_val(PS4_DOWN, 100);
    wait(90);
    set_val(PS4_DOWN, 100);
}

combo Tap_2 {
    set_val(PS4_RIGHT, 0);
    set_val(PS4_DOWN, 0)
    wait(20);
    set_val(PS4_RIGHT, 100);
    set_val(PS4_DOWN, 100)
    wait(90);
    set_val(PS4_RIGHT, 0);
    set_val(PS4_DOWN, 0)
}

combo Tap_3 {
    set_val(PS4_RIGHT, 0);
    wait(20);
    set_val(PS4_RIGHT, 100);
    wait(90);
    set_val(PS4_RIGHT, 100);
}

combo Tap_4 {
    set_val(PS4_R2, 0);
    wait(20);
    set_val(PS4_R2, 100);
    wait(90);
    set_val(PS4_R2, 100);
}


Try this!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: combo script help

Postby stonevictor100 » Fri Feb 26, 2016 11:42 pm

Thanks for trying, script you gave actually does another move but better than the one I already had because for some reason it has I run forward start into dragon punch.
This is for street fighter and the reason i'm trying to get the script for diagonal forward/down right is trying to pull off the hadouken fireball move.
starting to think this is not possible with visual scripting blocks as input only include up, down, left and right. (no diagonals).
User avatar
stonevictor100
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Feb 24, 2016 4:13 pm

Re: combo script help

Postby bonefisher » Sat Feb 27, 2016 12:17 am

stonevictor100 wrote:Thanks for trying, script you gave actually does another move but better than the one I already had because for some reason it has I run forward start into dragon punch.
This is for street fighter and the reason i'm trying to get the script for diagonal forward/down right is trying to pull off the hadouken fireball move.
starting to think this is not possible with visual scripting blocks as input only include up, down, left and right. (no diagonals).

If you can do this move regular on your own, run combo magick and get the combo. I'll help you put it together.
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: combo script help

Postby J2Kbr » Sun Feb 28, 2016 9:30 pm

bonefisher wrote:If you can do this move regular on your own, run combo magick and get the combo. I'll help you put it together.

+1

The Visual Scripting Interface does not have means to create custom combos.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: combo script help

Postby stonevictor100 » Mon Feb 29, 2016 10:04 pm

I understand visual scripting is not the best way to create custom combos, but am just trying to confirm that a diagonal joystick move is impossible.
User avatar
stonevictor100
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Feb 24, 2016 4:13 pm

Re: combo script help

Postby bonefisher » Mon Feb 29, 2016 10:48 pm

stonevictor100 wrote:I understand visual scripting is not the best way to create custom combos, but am just trying to confirm that a diagonal joystick move is impossible.

Not impossible but just a pain in the butt to do. In game settings is there a way to have real button presses instead of diagonal presses?
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: combo script help

Postby Elvish » Tue Mar 01, 2016 8:24 am

Please test this and tell me if it carries out the desired in game action. I have a feeling that pressing the activator will cause issues so I dissabled the input of CIRCLE being sent to the console. If this works the script will be able to include as many move sets as you would like (until the script size limit is reached)

Code: Select all
int Index = 0;
int MoveArray[20];
int DualMoveArray[20];
int OnValueArray[20];
int DualOnValueArray[20];
int Hold = 80;
int Delay = 80;
int Executing = FALSE;
int Resetting = FALSE;

init{
    Resetting = TRUE;
    resetCombo();
}

main {
    //Preform Haduken
    if(event_press(PS4_CIRCLE) && !Executing && !Resetting) {   
        //Down
        MoveArray[0] = PS4_DOWN;
       
        //Down/Right (Diagnal)
        MoveArray[1] = PS4_DOWN;
        DualMoveArray[1] = PS4_RIGHT;
       
        //Right
        MoveArray[2] = PS4_RIGHT;
       
        //R2
        MoveArray[3] = PS4_R2;
       
        Executing = TRUE;
    }
    if(get_val(PS4_CIRCLE)){
        set_val(PS4_CIRCLE, 0);
    }
/*   
   
//Preform Haduken
    if(event_press(PS4_TRIANGLE) && !Executing && !Resetting) {   
        //SQUARE
        MoveArray[0] = PS4_SQUARE;
       
        //Down/Right (Diagnal- Joystick)
        MoveArray[1] = PS4_LX;
        OnValueArray[1] = 75;
        DualMoveArray[1] = PS4_LY;
        DualOnValueArray[1] = 75;
       
        //CROSS
        MoveArray[2] = PS4_CROSS;
       
        //R1/down Dpad
        MoveArray[3] = PS4_R1;
        DualMoveArray[3] = PS4_DOWN;
       
        Executing = TRUE;
    }   
*/   
   
    /////////////////////////////////
    //Do not modify below this line//
    /////////////////////////////////
    if(Executing){
        if(MoveArray[Index] < 0){
            Executing = FALSE;
            Resetting = TRUE;
            resetCombo();
        }
        else{
            combo_run(DoMove);
        }
    }
}

combo DoMove{
    set_val(MoveArray[Index], OnValueArray[Index]);
    if(DualMoveArray[Index] > 0){
        set_val(DualMoveArray[Index], DualOnValueArray[Index]);
    }
    wait(Hold);
    set_val(MoveArray[Index], 0);
    if(DualMoveArray[Index] > 0){
        set_val(DualMoveArray[Index], 0);
    }
    wait(Delay);
   
    Index = Index + 1;
}

combo DelayInput{
    wait(1000);
    Index = Index + 1;
}

function resetCombo(){
    Index = 0;
    while(Index < 20){
        MoveArray[Index] = -1;
        DualMoveArray[Index] = -1;
        OnValueArray[Index] = 100;
        DualOnValueArray[Index] = 100;
        Index = Index + 1;
    }
    Index = 0;
    Resetting = FALSE;
}


You may need to tweak lines 6 and 7. int Hold is how long the button will be pressed down, while int Delay is how long you wait inbetween button presses
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: combo script help

Postby Lonewolf » Sun Jun 10, 2018 3:57 am

Hi, with the above script its possible to perform the following combo ( → ↘ ↓ ↙ ← → X ) pressing R1 or L1 ? its for complete a trophy in a game.
thanks!
User avatar
Lonewolf
Private First Class
Private First Class
 
Posts: 3
Joined: Sun Jun 10, 2018 3:20 am

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 114 guests