Script Request

GPC2 script programming for Titan Two. Code examples, questions, requests.

Script Request

Postby dw365y » Fri Jun 28, 2019 6:26 am

Could someone write a script for Xbox one for me please? It would be to do the following on a loop that is both started and stopped by pressing the left thumbstick.

right trigger, x, left trigger, right trigger, y, left trigger, right trigger, b, left d pad, right trigger, b, right trigger, b, right trigger, b, right trigger, b, right trigger, b, right trigger, y, left d pad, right trigger, x, left trigger, right trigger, y, left trigger, right trigger, LB, left d pad, right trigger, b, right trigger, b, right trigger, b, right trigger, b, right trigger, b, right trigger, y, left d pad

There should be approximately 1 second between each button press for timing purposes.
User avatar
dw365y
Private First Class
Private First Class
 
Posts: 3
Joined: Fri Jun 28, 2019 3:42 am

Re: Script Request

Postby Mad » Fri Jun 28, 2019 7:37 am

Have you thought about creating a macro for this? https://www.consoletuner.com/wiki/index ... #recording
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: Script Request

Postby dw365y » Fri Jun 28, 2019 6:40 pm

I thought about it, but wasn’t sure how. This helps a lot! Thank you for the link.
User avatar
dw365y
Private First Class
Private First Class
 
Posts: 3
Joined: Fri Jun 28, 2019 3:42 am

Re: Script Request

Postby dw365y » Sun Jun 30, 2019 4:29 am

I have the macro recorded and now I’m having trouble to write the script to start and stop the macro. I would like it to start when I right stick click on Xbox and to stop when I click it again. I’ve tried following some run macro and stop macro gpc scripts, but still keep coming up with 0 warnings and 1 error. Any help is appreciated.
User avatar
dw365y
Private First Class
Private First Class
 
Posts: 3
Joined: Fri Jun 28, 2019 3:42 am

Re: Script Request

Postby Mad » Sun Jun 30, 2019 5:48 am

Code: Select all
bool toggle;
 
main {
  if(event_active(BUTTON_6)) toggle = !toggle;
 
  if(toggle) {
      macro_run("Example.gmk");
  } else macro_stop();   
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 132 guests