Fishing planet help me

GPC1 script programming for Titan One. Code examples, questions, requests.

Fishing planet help me

Postby Minedead868 » Fri Aug 02, 2019 3:42 pm

hello, I ask if anyone can create a script for a fishing game for me (it's at the competitive level) to do the following:
1- press R2 for 3 seconds, (this and for the bait pitch) wait for the bait to touch the water (+ - 3 seconds),
3- keep R2 pressed for 6 seconds and at the same time press L2 every half a second (to work the bait), and if vibrate press L2 for 1 second and keep R2 pressed to bring the fish, * The L2 is for hooking the fish and this happens the moment the controller vibrates! 4
- keep R2 pressed to bring the fish that was hooked for + - 4 or 5 seconds,
5- wait 3 seconds and press X to save the fish,
6- The whole process above must be repeated in an infinite cycle.
7- the times I give a geito to adjust I think that's the only thing I can do THANK YOU FOR ANY HELP!
User avatar
Minedead868
Private First Class
Private First Class
 
Posts: 3
Joined: Wed Feb 20, 2019 2:54 pm

Re: Fishing planet help me

Postby Mad » Sat Aug 03, 2019 7:49 am

I don't have a T1 or know of the game, I tried to follow as best i could some stuff probably needs to be changed.

Code: Select all
int toggle;
int run_l2;
 
main {
  if (event_press(PS4_UP)) toggle = !toggle // Dpad UP to toggle on/off
 
  if (toggle && !combo_running(Reel_In)) combo_run(Fish);
 
  if (run_l2) combo_run(Bait);
 
  if (get_rumble(RUMBLE_A) > 0 || get_rumble(RUMBLE_B) > 0) {
    combo_run(Reel_In);
  }
}
 
combo Fish {
  set_val(PS4_R2, 100); // Press R2
  wait(3000); // For 3 seconds
  set_val(PS4_R2, 0);
  run_l2 = 1;
  wait(10);
  set_val(PS4_R2, 100); // Press R2
  wait(4000); // For 6 seconds and L2 is pressed every 500ms
  set_val(PS4_R2, 100);
  wait(2000);
  run_l2 = 0; // Stop pressing L2
  wait(10);
 
}
 
combo Bait {
  set_val(PS4_L2, 100);
  wait(60);
  set_val(PS4_L2, 0);
  wait(440);
}
 
combo Reel_In {
  set_val(PS4_L2, 100); // Press L2
  wait(1000); // For one second
  set_val(PS4_R2, 100); // Press R2
  wait(4000); // For 5 seconds
  set_val(PS4_R2, 100);
  wait(1000);
  wait(3000); // Wait 3 seconds
  set_val(PS4_CROSS, 100); // Press cross
  wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Fishing planet help me

Postby minedead86 » Sat Aug 03, 2019 3:22 pm

I actually use cr.onu.smax, but in this forum are more attentive in this part of helping !!
and he doesn't recognize this command:
ERROR: A variable with the name 'Reel_In' was not found! This error occured on line 7 column 16
User avatar
minedead86
Private First Class
Private First Class
 
Posts: 2
Joined: Sun Mar 24, 2019 12:35 am

Re: Fishing planet help me

Postby Mad » Sat Aug 03, 2019 5:58 pm

Compiles with Gtuner, I cant help you with that sorry.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Fishing planet help me

Postby Scachi » Sat Aug 03, 2019 6:40 pm

Code: Select all
if (toggle && !Reel_In) combo_run(Fish);


The T1 needs to use "!combo_running(comboname)"

Code: Select all
if (toggle && !combo_running(Reel_In)) combo_run(Fish);
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Fishing planet help me

Postby Mad » Sat Aug 03, 2019 10:19 pm

Thanks Scachi, updated. :joia:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 48 guests