PDA

View Full Version : A Little Help Please



Mr Fwak
21st May 17, 03:04
im pretty new to this stuff but want to get into it.
i have a pretty simple combo working on the one side, the only difficulty im having is getting it to work on both sides, it either works on the one or the other.
could anyone point out any information to point in the right direction please, i've been at it for a few hours and searched the forums and haven't fount anything of use.

main { if (get_val(XB1_RX) > 70) {combo_run(Test);}


}
combo Test {


set_val(XB1_Y, 100);
wait(110);
wait(100);
set_val(XB1_Y, 100);
wait(150);
wait(20);
set_val(XB1_LEFT, 100);
set_val(XB1_X, 100);
set_val (XB1_B, 100);
wait (20);
wait (970);
set_val(XB1_UP , 100);
set_val(XB1_RIGHT , 100);
wait (100);
wait (100);
set_val(XB1_Y, 100);
wait (100);
wait (100);
set_val(XB1_DOWN, 100);
wait (50);
set_val(XB1_RIGHT, 100);
set_val(XB1_A, 100);
wait (780);
set_val(XB1_LEFT, 100);
set_val(XB1_Y, 100);
wait (100);
wait (40);
set_val(XB1_A, 100);
wait (100);
wait (500);
set_val(XB1_X, 100);
set_val(XB1_A, 100);
wait (2000);

}

Mr Fwak
21st May 17, 12:17
This is what it looks like when i try to get it to work on both sides.
Anyone now where im going wrong here? :(





int Right;
int Left;



main {

if (get_val(XB1_RX) > 70) {combo_run(Test);}
if(event_press( XB1_RT )){Right=15;Left=16;combo_run(Test);}
if(event_press( XB1_RT )){Right=16;Left=15;combo_run(Test);}


}


combo Test {

set_val(XB1_Y, 100);
wait(110);
wait(100);
set_val(XB1_Y, 100);
wait(150);
wait(20);
set_val(Left, 100);
set_val(XB1_X, 100);
set_val (XB1_B, 100);
wait (20);
wait (970);
set_val(XB1_UP , 100);
set_val(Right , 100);
wait (100);
wait (100);
set_val(XB1_Y, 100);
wait (100);
wait (100);
set_val(XB1_DOWN, 100);
wait (50);
set_val(Right, 100);
set_val(XB1_A, 100);
wait (780);
set_val(Left, 100);
set_val(XB1_Y, 100);
wait (100);
wait (40);
set_val(XB1_A, 100);
wait (100);
wait (500);
set_val(XB1_X, 100);
set_val(XB1_A, 100);
wait (2000);

}

Excalibur
22nd May 17, 10:06
im pretty new to this stuff but want to get into it.
i have a pretty simple combo working on the one side, the only difficulty im having is getting it to work on both sides, it either works on the one or the other.
could anyone point out any information to point in the right direction please, i've been at it for a few hours and searched the forums and haven't fount anything of use.

main { if (get_val(XB1_RX) > 70) {combo_run(Test);}


}
combo Test {


set_val(XB1_Y, 100);
wait(110);
wait(100);
set_val(XB1_Y, 100);
wait(150);
wait(20);
set_val(XB1_LEFT, 100);
set_val(XB1_X, 100);
set_val (XB1_B, 100);
wait (20);
wait (970);
set_val(XB1_UP , 100);
set_val(XB1_RIGHT , 100);
wait (100);
wait (100);
set_val(XB1_Y, 100);
wait (100);
wait (100);
set_val(XB1_DOWN, 100);
wait (50);
set_val(XB1_RIGHT, 100);
set_val(XB1_A, 100);
wait (780);
set_val(XB1_LEFT, 100);
set_val(XB1_Y, 100);
wait (100);
wait (40);
set_val(XB1_A, 100);
wait (100);
wait (500);
set_val(XB1_X, 100);
set_val(XB1_A, 100);
wait (2000);

}




Look on this video ( you need to download the latest version of Script Manipulator).


https://www.youtube.com/watch?v=xOMuRpDSYXk&feature=youtu.be

Mr Fwak
22nd May 17, 13:42
Look on this video ( you need to download the latest version of Script Manipulator).


https://www.youtube.com/watch?v=xOMuRpDSYXk&feature=youtu.be

Thanks for the help, Much Love!

jblz07
22nd May 17, 15:02
if(get_val(11) < -20 || get_val(15)){
FORWARD = 15; BACK = 16;
}else if(get_val(11) >20 || get_val(16)){
FORWARD = 16; BACK = 15;
}

just add that.

Mr Fwak
22nd May 17, 15:53
if(get_val(11) < -20 || get_val(15)){
FORWARD = 15; BACK = 16;
}else if(get_val(11) >20 || get_val(16)){
FORWARD = 16; BACK = 15;
}

just add that.
Ye, Excal helped me out with it, thanks anyways mate!