Please help me create this simple script (code inside) thx

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

Please help me create this simple script (code inside) thx

Postby kiet510 » Thu Jun 25, 2020 12:57 am

Code: Select all
//Posted by kiet510, a member of the device Community - https://device.com/forums
 
//Posted : Wednesday 24th of June, 2020 18:48 CST6CDT 
 
main {
    if(get_val(PS4_R3))
        combo_run(maxcmb);
 
    if(get_val(PS4_L3))
        combo_run(DribbleLH);
}
combo maxcmb {
    set_val(XB1_RS, 100);
    wait(120);
    set_val(XB1_RS, 0);
    wait(330);
    set_val(XB1_RX, 31);
    set_val(XB1_RY, 44);
    wait(10);
    set_val(XB1_RX, 51);
    set_val(XB1_RY, 79);
    wait(10);
    set_val(XB1_RX, 52);
    set_val(XB1_RY, 82);
    wait(10);
    set_val(XB1_RX, 55);
    set_val(XB1_RY, 86);
    wait(20);
    set_val(XB1_RX, 55);
    set_val(XB1_RY, 89);
    wait(10);
    set_val(XB1_RX, 52);
    set_val(XB1_RY, 85);
    wait(10);
    set_val(XB1_RX, -24);
    set_val(XB1_RY, -37);
    wait(10);
    set_val(XB1_RX, -22);
    set_val(XB1_RY, -35);
    wait(10);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 26);
    wait(10);
    set_val(XB1_RY, 28);
    wait(10);
    set_val(XB1_RY, 0);
}
 
 
 
 
//
// 2020-06-20 06:35:50
// Combo generated by MAX Combo Plugin.
//----------------------------------------
combo DribbleLH {
    set_val(XB1_LS, 100);
    wait(110);
    set_val(XB1_LS, 0);
    wait(360);
    set_val(XB1_RX, -28);
    set_val(XB1_RY, 41);
    wait(10);
    set_val(XB1_RX, -59);
    set_val(XB1_RY, 89);
    wait(10);
    set_val(XB1_RX, -60);
    set_val(XB1_RY, 91);
    wait(10);
    set_val(XB1_RX, -60);
    set_val(XB1_RY, 100);
    wait(10);
    set_val(XB1_RX, -57);
    set_val(XB1_RY, 98);
    wait(10);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    wait(10);
    set_val(XB1_RY, -50);
    wait(10);
    set_val(XB1_RY, -27);
    wait(10);
    set_val(XB1_RY, 33);
    wait(20);
    set_val(XB1_RY, 0);
}


Please make this script for me..

Run this script, toggle off / on with R3.. I want both scripts to run automatically one after another.

Run combo maxcmb
Run combo DribbleLH
Run combo maxcmb
Run combo DribbleLH

Can we make it do that infinite until I press r3 again to turn it off? thanks so much..
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby kiet510 » Thu Jun 25, 2020 2:22 am

help plz.. anyone :D
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby Mad » Thu Jun 25, 2020 2:32 am

Code: Select all
int toggle;
 
main {
    if(event_press(PS4_R3)) {
        toggle = !toggle;
    }
 
    if(toggle) {
        combo_run(maxcmb);
    }
 
    if(get_val(PS4_L3)) {
        combo_run(DribbleLH);
    }
}
combo maxcmb {
    set_val(XB1_RS, 100);
    wait(120);
    set_val(XB1_RS, 0);
    wait(330);
    set_val(XB1_RX, 31);
    set_val(XB1_RY, 44);
    wait(10);
    set_val(XB1_RX, 51);
    set_val(XB1_RY, 79);
    wait(10);
    set_val(XB1_RX, 52);
    set_val(XB1_RY, 82);
    wait(10);
    set_val(XB1_RX, 55);
    set_val(XB1_RY, 86);
    wait(20);
    set_val(XB1_RX, 55);
    set_val(XB1_RY, 89);
    wait(10);
    set_val(XB1_RX, 52);
    set_val(XB1_RY, 85);
    wait(10);
    set_val(XB1_RX, -24);
    set_val(XB1_RY, -37);
    wait(10);
    set_val(XB1_RX, -22);
    set_val(XB1_RY, -35);
    wait(10);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 26);
    wait(10);
    set_val(XB1_RY, 28);
    wait(10);
    set_val(XB1_RY, 0);
    call(DribbleLH);
}
 
combo DribbleLH {
    set_val(XB1_LS, 100);
    wait(110);
    set_val(XB1_LS, 0);
    wait(360);
    set_val(XB1_RX, -28);
    set_val(XB1_RY, 41);
    wait(10);
    set_val(XB1_RX, -59);
    set_val(XB1_RY, 89);
    wait(10);
    set_val(XB1_RX, -60);
    set_val(XB1_RY, 91);
    wait(10);
    set_val(XB1_RX, -60);
    set_val(XB1_RY, 100);
    wait(10);
    set_val(XB1_RX, -57);
    set_val(XB1_RY, 98);
    wait(10);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    wait(10);
    set_val(XB1_RY, -50);
    wait(10);
    set_val(XB1_RY, -27);
    wait(10);
    set_val(XB1_RY, 33);
    wait(20);
    set_val(XB1_RY, 0);
}
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Colonel
Colonel
 
Posts: 1855
Joined: Wed May 22, 2019 5:39 am

Re: Please help me create this simple script (code inside) t

Postby kiet510 » Thu Jun 25, 2020 2:48 am

your the best ;)
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby kiet510 » Thu Jun 25, 2020 2:51 am

Hey mad i'm sorry its not exacting doing what I would like.. but from looking at this script does it show its doing something like this? , b/c this is what I need it to do.

Right Analog Stick > Spam diagonal down left & right, so like this.... ↙ ↘ ↙ ↘ ↙ ↘ ↙ ↘ ↙ ↘

sorry this isnt my script.. i feel like its kinda do that, but not exactly.. can you look into that script and just make it do that for me? diagonals
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby Mad » Thu Jun 25, 2020 7:01 am

Isnt that the same as the one you requested here? viewtopic.php?f=6&t=15633
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Colonel
Colonel
 
Posts: 1855
Joined: Wed May 22, 2019 5:39 am

Re: Please help me create this simple script (code inside) t

Postby kiet510 » Thu Jun 25, 2020 4:38 pm

Mad wrote:Isnt that the same as the one you requested here? viewtopic.php?f=6&t=15633


Hey mad, yeah I just replied there.. but it doesn't work for some reason..

Instructions starts at 2:46 (with controller cam)

https://www.youtube.com/watch?v=Av3MoxawRZw

if you dont mind can you just watch 10 seconds of that video to know how to combo this script. I would really appreciate it and ive been trying it all day and cannot get it down, even though it looks so simple..
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby kiet510 » Thu Jun 25, 2020 5:24 pm

nvm guys i got it, i just need to practice more. thanks
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Please help me create this simple script (code inside) t

Postby Mad » Thu Jun 25, 2020 5:57 pm

kiet510 wrote:nvm guys i got it, i just need to practice more. thanks

:joia: :joia:
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Colonel
Colonel
 
Posts: 1855
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: tijaax and 49 guests