combo script help
11 posts
• Page 1 of 2 • 1, 2
combo script help
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
If it can look like attached, just tell me what to replace GYROX with for 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
-
- visual block script
- Capture.PNG (32.09 KiB) Viewed 1063 times
-
stonevictor100 - Sergeant
- Posts: 7
- Joined: Wed Feb 24, 2016 4:13 pm
Re: combo script help
Is this a fighting game?
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: combo script help
- 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
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: combo script help
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).
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).
-
stonevictor100 - Sergeant
- Posts: 7
- Joined: Wed Feb 24, 2016 4:13 pm
Re: combo script help
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
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: combo script help
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: combo script help
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.
-
stonevictor100 - Sergeant
- Posts: 7
- Joined: Wed Feb 24, 2016 4:13 pm
Re: combo script help
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
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: combo script help
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)
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
- 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
-
Elvish - Captain
- Posts: 531
- Joined: Tue Jun 09, 2015 4:57 am
Re: combo script help
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!
thanks!
-
Lonewolf - Private First Class
- Posts: 3
- Joined: Sun Jun 10, 2018 3:20 am
11 posts
• Page 1 of 2 • 1, 2
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 114 guests