script help
19 posts
• Page 2 of 2 • 1, 2
Re: script help
Is there something similar to combo magick for the T2?
-
ViciousXlV - First Sergeant
- Posts: 52
- Joined: Mon Mar 11, 2019 9:16 am
Re: script help
The macro recorder is in Gtuner>Device monitor.
https://www.consoletuner.com/wiki/index ... _interface
https://www.consoletuner.com/wiki/index ... _interface
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: script help
you cant do it without a micro sd correct?
-
ViciousXlV - First Sergeant
- Posts: 52
- Joined: Mon Mar 11, 2019 9:16 am
Re: script help
ViciousXlV wrote:you cant do it without a micro sd correct?
First line from the link:
A Micro SD card is mandatory to use the Titan Two's Macro features
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: script help
- Code: Select all
#pragma METAINFO("FightGames", 1, 0, "bonefisher")
#include <display.gph>
int Forward;
int Back;
int BUTTON;
uint32 IND[] = {
_B_, // 0
_S_, // 1
_H_, // 2
_3_ // 3
};
init {
Forward = BUTTON_13;
Back = BUTTON_12;
}
main
{
// - STANCE TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define STANCE_RIGHT 0
#define STANCE_LEFT 1
static uint8 stance;
if(event_active(BUTTON_13) || event_active(STICK_2_X) && get_actual(STICK_2_X) >= 20.0) {
stance = STANCE_RIGHT;
goto STANCE_LIGHTBAR;
} else if(event_active(BUTTON_12) || event_active(STICK_2_X) && get_actual(STICK_2_X) <= -20.0) {
stance = STANCE_LEFT;
goto STANCE_LIGHTBAR;
if(stance || !stance) {
switch(stance) {
case STANCE_RIGHT: stance = STANCE_LEFT; break;
case STANCE_LEFT: stance = STANCE_RIGHT; break;
}
}
STANCE_LIGHTBAR:
led_reset();
switch(stance) {
case STANCE_RIGHT: Forward = BUTTON_13; Back = BUTTON_12;led_set(LED_4, -1.0, 0);led_set(LED_3, -1.0, 0); break;
case STANCE_LEFT: Forward = BUTTON_12; Back = BUTTON_13;led_set(LED_4, -1.0, 0); break;
}
}
// - MOVES TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define MOVES_0 0
#define MOVES_1 1
#define MOVES_2 2
static uint8 moves;
if(get_actual(BUTTON_8)){
set_val(BUTTON_2, 0.0);
if(event_active(BUTTON_2)) {
if(moves == MOVES_0){
moves = MOVES_1;
goto MOVES_LIGHTBAR;
} else if(moves == MOVES_1) {
moves = MOVES_2;
goto MOVES_LIGHTBAR;
} else if(moves == MOVES_2) {
moves = MOVES_0;
goto MOVES_LIGHTBAR;
}
if(moves || !moves) {
switch(moves) {
case MOVES_0: moves = MOVES_1; break;
case MOVES_1: moves = MOVES_2; break;
case MOVES_2: moves = MOVES_0; break;
}
}
MOVES_LIGHTBAR:
led_reset();
switch(moves) {
case MOVES_0: display (0); break;
case MOVES_1: display (1); break;
case MOVES_2: display (2); break;
}
}
}
// - BUTTON TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define BUTTON_X BUTTON_17
#define BUTTON_Y BUTTON_14
#define BUTTON_A BUTTON_16
#define BUTTON_B BUTTON_15
static uint8 button_cycle;
if(event_active(BUTTON_17)) {
button_cycle = BUTTON_X;
BUTTON = BUTTON_X;
goto BUTTON_LIGHTBAR;
} else if(event_active(BUTTON_14)) {
button_cycle = BUTTON_Y;
BUTTON = BUTTON_Y;
goto BUTTON_LIGHTBAR;
} else if(event_active(BUTTON_16)) {
button_cycle = BUTTON_A;
BUTTON = BUTTON_A;
goto BUTTON_LIGHTBAR;
} else if(event_active(BUTTON_15)) {
button_cycle = BUTTON_B;
BUTTON = BUTTON_B;
goto BUTTON_LIGHTBAR;
if(button_cycle || !button_cycle) {
switch(button_cycle) {
case BUTTON_X: button_cycle = BUTTON_Y; break;
case BUTTON_Y: button_cycle = BUTTON_A; break;
case BUTTON_A: button_cycle = BUTTON_B; break;
case BUTTON_B: button_cycle = BUTTON_X; break;
}
}
BUTTON_LIGHTBAR:
led_reset();
switch(button_cycle) {
case BUTTON_X: led_set(LED_1, -1.0, 0); break;
case BUTTON_Y: led_set(LED_2, -1.0, 0);led_set(LED_3, -1.0, 0); break;
case BUTTON_A: led_set(LED_3, -1.0, 0); break;
case BUTTON_B: led_set(LED_2, -1.0, 0); break;
}
}
if(moves == MOVES_0)
{
if(get_actual(STICK_1_Y) < -60.0)
{
combo_run(F22_BF3_F22_BF1);
}
else combo_stop(F22_BF3_F22_BF1);
if(get_actual(STICK_1_Y) > 60.0)
{
combo_run(B12_BF3_111_BF3);
}
else combo_stop(B12_BF3_111_BF3);
if(get_actual(STICK_1_X) < -60.0)
{
combo_run(DBA);
}
else combo_stop(DBA);
if(get_actual(STICK_1_X) > 60.0)
{
combo_run(B12_BF3_23_23_23_DB2AMP);
}
else combo_stop(B12_BF3_23_23_23_DB2AMP);
}
if(moves == MOVES_1)
{
if(get_actual(STICK_1_Y) < -60.0)
{
combo_run(B141);
}
else combo_stop(B141);
if(get_actual(STICK_1_Y) > 60.0)
{
combo_run(BF1_RB_B4);
}
else combo_stop(BF1_RB_B4);
if(get_actual(STICK_1_X) < -60.0)
{
combo_run(DB3_RB);
}
else combo_stop(DB3_RB);
if(get_actual(STICK_1_X) > 60.0)
{
combo_run(BF1_RB_B141);
}
else combo_stop(BF1_RB_B141);
}
if(moves == MOVES_2)
{
if(get_actual(STICK_1_Y) < -60.0)
{
combo_run(DB3_RB_4);
}
else combo_stop(DB3_RB_4);
if(get_actual(STICK_1_Y) > 60.0)
{
combo_run(DB3_RB_B34);
}
else combo_stop(DB3_RB_B34);
if(get_actual(STICK_1_X) < -60.0)
{
}
if(get_actual(STICK_1_X) > 60.0)
{
}
}
if(get_actual(BUTTON))combo_run(rapid);
}
combo rapid
{
set_val(BUTTON, 100);
wait(50);
set_val(BUTTON, 0);
wait(50);
}
combo F22_BF3_F22_BF1
{
set_val(Forward, 100.0);
set_val(BUTTON_14, 100.0);
wait(50);
wait(50);
set_val(BUTTON_14, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Forward, 100.0);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(1300);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
set_val(BUTTON_14, 100.0);
wait(50);
wait(50);
set_val(BUTTON_14, 100.0);
wait(50);
wait(50);
set_val(Forward, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(BUTTON_17, 100.0);
wait(50);
wait(15);
wait(5000);
}
combo B12_BF3_111_BF3
{
set_val(Back, 100.0);
set_val(BUTTON_17, 100.00);
wait(50);
wait(50);
set_val(BUTTON_14, 100.00);
wait(50);
wait(300);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Forward, 100.0);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(1200);
set_val(BUTTON_17, 100.00);
wait(50);
wait(50);
set_val(BUTTON_17, 100.00);
wait(50);
wait(50);
set_val(BUTTON_17, 100.00);
wait(50);
wait(700);
set_val(Forward, 100.0);
wait(50);
wait(50);
set_val(Back, 100.00);
wait(50);
wait(50);
set_val(BUTTON_16, 100.00);
wait(50);
wait(5000);
}
combo B12_BF3_23_23_23_DB2AMP
{
set_val(Back, 100.0);
set_val(BUTTON_17, 100.00);
wait(50);
wait(50);
set_val(BUTTON_14, 100.00);
wait(50);
wait(300);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Forward, 100.0);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(1200);
set_val(BUTTON_14, 100.00);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(600);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
wait(50);
wait(600);
set_val(BUTTON_14, 100.00);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(600);
set_val(Back, 100.0);
wait(50);
wait(50);
set_val(Back, 100.0);
wait(50);
wait(400);
set_val(BUTTON_14, 100.00);
wait(50);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(5000);
}
combo DBA
{
set_val(BUTTON_11, 100.0);
wait(50);
set_val(Back, 100.0);
wait(50);
set_val(BUTTON_16, 100.00);
wait(50);
wait(5000);
}
combo B141
{
set_val(Back, 100.0);
set_val(BUTTON_17, 100.0);
wait(50);
set_val(BUTTON_15, 100.00);
wait(50);
set_val(BUTTON_17, 100.0);
wait(50);
wait(5000);
}
combo BF1_RB_B4
{
set_val(Back, 100.0);
wait(50);
set_val(Forward, 100.0);
wait(50);
set_val(BUTTON_17, 100.0);
wait(50);
wait(600);
set_val(BUTTON_4, 100.00);
wait(50);
wait(1000);
set_val(Back, 100.0);
set_val(BUTTON_15, 100.0);
wait(50);
wait(5000);
}
combo DB3_RB
{
set_val(BUTTON_11, 100.0);
wait(50);
set_val(Back, 100.0);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(400);
set_val(BUTTON_4, 100.00);
wait(50);
wait(5000);
}
combo BF1_RB_B141
{
set_val(Back, 100.0);
wait(50);
set_val(Forward, 100.0);
wait(50);
set_val(BUTTON_17, 100.0);
wait(50);
wait(600);
set_val(BUTTON_4, 100.00);
wait(50);
wait(1000);
set_val(Back, 100.0);
set_val(BUTTON_17, 100.0);
wait(50);
set_val(BUTTON_15, 100.0);
wait(50);
set_val(BUTTON_17, 100.0);
wait(50);
wait(5000);
}
combo DB3_RB_4
{
set_val(BUTTON_11, 100.0);
wait(50);
set_val(Back, 100.0);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(400);
set_val(BUTTON_4, 100.00);
wait(50);
wait(800);
set_val(BUTTON_15, 100.00);
wait(50);
wait(5000);
}
combo DB3_RB_B34
{
set_val(BUTTON_11, 100.0);
wait(50);
set_val(Back, 100.0);
wait(50);
set_val(BUTTON_16, 100.0);
wait(50);
wait(400);
set_val(BUTTON_4, 100.00);
wait(50);
wait(800);
set_val(Back, 100.0);
set_val(BUTTON_16, 100.0);
wait(50);
set_val(BUTTON_15, 100.0);
wait(50);
wait(5000);
}
// Display Numbers
void display (uint8 indc)
{
uint8 VIE;
VIE = IND[indc];
display_overlay(VIE, 2000 );
}
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: script help
What is this?
Can someone help me create a script
The inputs Right right R1 Right R1 mapped to R3 (This is for being on the left side of the screen because this is a fighting game)
And for right side of the screen the same inputs but reversed so it’s Left Left R1 Left R1 and if this could be mapped to RX.
Can someone help me create a script
The inputs Right right R1 Right R1 mapped to R3 (This is for being on the left side of the screen because this is a fighting game)
And for right side of the screen the same inputs but reversed so it’s Left Left R1 Left R1 and if this could be mapped to RX.
-
ViciousXlV - First Sergeant
- Posts: 52
- Joined: Mon Mar 11, 2019 9:16 am
Re: Script help
ViciousXlV wrote:could be mapped to RX.
Are you sure you mean RX? What direction on RX, left or right? what percentage of stick movement do you want it to activate at?
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: script help
You can map it to R2 Instead that’s fine
-
ViciousXlV - First Sergeant
- Posts: 52
- Joined: Mon Mar 11, 2019 9:16 am
Re: script help
- Code: Select all
#include <ps4.gph>
main {
if (event_active(PS4_R3)) combo_run(left);
if (event_active(PS4_R2)) combo_run(right);
}
combo left {
set_val(PS4_RIGHT, 100);
wait(60);
set_val(PS4_RIGHT, 100);
wait(60);
set_val(PS4_R1, 100);
wait(60);
set_val(PS4_RIGHT, 100);
wait(60);
set_val(PS4_R1, 100);
wait(60);
}
combo right {
set_val(PS4_LEFT, 100);
wait(60);
set_val(PS4_LEFT, 100);
wait(60);
set_val(PS4_R1, 100);
wait(60);
set_val(PS4_LEFT, 100);
wait(60);
set_val(PS4_R1, 100);
wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
19 posts
• Page 2 of 2 • 1, 2
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 157 guests