PDA

View Full Version : TUTORIAL HOW TO MAKE FIGHTING GAMES SCRIPTS



Excalibur
27th June 17, 11:18
This tutorial will cover all the basic steps how to make your own figthing games script ( combos and starter ).

Under construction!

You can tell me what do you want to add or explain in more details.

How to start combo using Right or Left Analog Sticks :


When you move right stick to the Left - the value is changed from 0 to -100.

// move Right Stick Left
if( get_val(XB1_RX) < -70 ){
combo_run(your_combo );
}


https://s13.postimg.org/c5ffjxuzb/RX-_Axis-_Left-3.jpg

When you move right stick to the Right - the value is changed from 0 to +100.

// move Right Stick Right
if( get_val(XB1_RX) > 70 ){
combo_run(your_combo );
}

https://s10.postimg.org/zdjhdaj95/RX-_Axis-_Right-1.jpg

When you move right stick to the UP - the value is changed from 0 to -100.

// move Right Stick Up
if( get_val(XB1_RY) < -70 ){
combo_run(your_combo );
}

https://s24.postimg.org/8jvk1ny1x/RY-_Axis-_UP-1.jpg
When you move right stick to the Down - the value is changed from 0 to +100.

// move Right Stick Down
if( get_val(XB1_RY) > 70 ){
combo_run(your_combo );
}

https://s24.postimg.org/tq2ldle6d/RY-_Axis-_Down-1.jpg

Here is the all 4 directions of Right Analog Stick :

// Right Stick Left
if( get_val(XB1_RX) < -70 ){
combo_run(your_combo1 );
}
// Right Stick Right
if( get_val(XB1_RX) > 70 ){
combo_run(your_combo2 );
}
// Right Stick Up
if( get_val(XB1_RY) < -70 ){
combo_run(your_combo3 );
}
// Right Stick Down
if( get_val(XB1_RY) > 70 ){
combo_run(your_combo4 );
}

if( abs(get_val(XB1_RX)) < 20 && abs(get_val(XB1_RY)) < 20){
combo_stop(your_combo1 );
combo_stop(your_combo2 );
combo_stop(your_combo3 );
combo_stop(your_combo4 );
}


I use function "abs" which will return always the positive number so we do not have to check what is the sign of the value.
abs ( get_val( XB1_RX)) - will return alawys positive value .

nijak000
27th June 17, 11:39
It is possible to make a tutorial on the support time between each key press

Its corresponds to what " wait(10)"

exemple: combo test {
set_val(XB360_RIGHT, 100);
wait(80);
set_val(XB360_RIGHT, 0);
wait(10);
set_val(XB360_DOWN, 100);
wait(50);
set_val(XB360_DOWN, 100);
set_val(XB360_RIGHT, 100);
set_val(XB360_Y, 100);

Excalibur
27th June 17, 12:17
It is possible to make a tutorial on the support time between each key press

Its corresponds to what " wait(10)"

exemple: combo test {
set_val(XB360_RIGHT, 100);
wait(80);
set_val(XB360_RIGHT, 0);
wait(10);
set_val(XB360_DOWN, 100);
wait(50);
set_val(XB360_DOWN, 100);
set_val(XB360_RIGHT, 100);
set_val(XB360_Y, 100);


Yes, I think to start with that.

nijak000
27th June 17, 12:43
It would be nice that you show us in explanatory video on tekken 7 or another game, an example of combo that you create from A to Z with Script manipulator and cronus pro to launch it

ScorpionKiller
27th June 17, 12:45
Thanks so much Excal for doing this for the community its like baby for new people that want to learn scripting

Excalibur
27th June 17, 13:54
It would be nice that you show us in explanatory video on tekken 7 or another game, an example of combo that you create from A to Z with Script manipulator and cronus pro to launch it


Very good idea - will think on it. I will ask help from falconpunch ( because I don't have the game).

ScorpionKiller
27th June 17, 13:59
Or you have Injustice 2 or Mortal Kombat X

Excalibur
27th June 17, 17:47
Or you have Injustice 2 or Mortal Kombat X


I have only the Streat Fighter V for PC.

falconpunch323
27th June 17, 18:37
It is possible to make a tutorial on the support time between each key press

Its corresponds to what " wait(10)"

exemple: combo test {
set_val(XB360_RIGHT, 100);
wait(80);
set_val(XB360_RIGHT, 0);
wait(10);
set_val(XB360_DOWN, 100);
wait(50);
set_val(XB360_DOWN, 100);
set_val(XB360_RIGHT, 100);
set_val(XB360_Y, 100);

WOULD BE MORE LIKE THIS IN THIS FORMAT:

example: combo test {
set_val(XB360_RIGHT, 100);
wait(40);
wait(80);
set_val(XB360_RIGHT, 100);
wait(40);
wait(??);
set_val(XB360_DOWN, 100);
wait(50);
wait(??);
set_val(XB360_DOWN, 100);
set_val(XB360_RIGHT, 100);
set_val(XB360_Y, 100);[/QUOTE]
wait(2000);

?? because there is not a definite time that will go between button presses and both wait times will be different depending on what you are trying to do so you might have 2 sets of (20) or whatever depending on what you are doing
everything will not be like a wait(40); wait(80); your release holds and press times are all variables.

ScorpionKiller
28th June 17, 15:10
The timming in combos are the hardest iam trying to figure out my timmings in injustice 2

falconpunch323
28th June 17, 15:18
The timming in combos are the hardest iam trying to figure out my timmings in injustice 2

What you are going to have to do is imput the first 3 to 5 hits... compile and play test in practice see if the times are correct if so then start on the next part of the combo... at least that's what I do.. You can go ahead and write the whole combo out with default times and then adjust them from there too but I do not think that is the best way to do it... But that is a matter of preference.. As long as you get the times correct the build up does not matter.. the end result of a working combo really matters I suppose...(build up) not (structure) LOL structure matters. If that makes sense.

ScorpionKiller
28th June 17, 15:23
So it be like the first 3 hits of the combo then test it if there a wait time after the 3rd hit of combo add wait time iam gonna try that now

ScorpionKiller
17th August 17, 12:00
Falcon is there a wait time after each input cause i go in practice mode in injustice2 and when i do my combo the inputs are going really fast as i use the right stick to right

cleveakabig
28th September 17, 09:24
i get an error each time i try to use this script. im trying to set the start of my micro by using analog left and right

cheshiremoose
15th December 17, 01:54
A lot of scripts use the analog sticks but I really just want to use the shoulder buttons. How do I add a function that runs a combo on R1 and stops when I release R1?

Excalibur
15th December 17, 02:38
A lot of scripts use the analog sticks but I really just want to use the shoulder buttons. How do I add a function that runs a combo on R1 and stops when I release R1?

This is very simle - use "get_val(<btn>)

Ex:


if(get_val(PS4_R1)) combo_run( ComboName );
else combo_stop(ComboName );

cheshiremoose
27th December 17, 00:49
This is very simle - use "get_val(<btn>)

Ex:


if(get_val(PS4_R1)) combo_run( ComboName );
else combo_stop(ComboName );


Thanks for the reply, so how about R2 + analog stick direction to run a combo?

acidmango
29th January 18, 13:51
Thanks for this, super helpful.

janos2829
13th April 19, 15:21
köszönöm mindenkinek a kérdésemre adott sok választ és a nagy segítséget