Script Errors

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

Script Errors

Postby filoogaroo » Tue Oct 23, 2018 1:55 am

Hi Team

I have errors in GTuner - can anyone help me please :

Code: Select all
#include <titanone.gph>
 
// Script was generated with < FIFA Series Skills Generator > ver. 6.15 Date :10-22-18 Time: 21:55:42
//------------------------------------------------------------------------
/**********************************************************************************************
//-----------------------------------------------------------------------
 
///\ 7. Turn and Spin 4*-5*/
/\14.Ball Roll Rock & Roll//\20.Ronaldo heel chop//\32. Ronaldo Bolasie Turn//\
///\ default Skill : 0. None.

 
//       DESCRIPTIONS - INSTRUCTION                     
//  Switch Skills                                       
//                                                       
// hold button : PS4_L1   and then press :
//  button :         will switch to Skill :                                   
//  D-pad UP    => 7               
//  D-pad RIGHT => 14               
//  D-pad DOWN  => 20               
//  D-pad LEFT  => 32               
//                   will switch to default Skill :                 
// hold button :PS4_L1 + (PS4 SHARE / XB1 VIEW) => 0.   None     
//                                                                       
//   ACTIVATE SKILLS                                                     
//  Skills with Left and Right exit ( direction )                         
//  Double tap : PS4_L1 Modifier Button to activate skill to the Left
//  Double tap : PS4_R1 Modifier Button to activate skill to the Right
//                                                                       
//   Skills with one direction ( no exit )                               
//                                                                       
//    = 0.   None
//-----------------------------------------------------------------------
//--------------------------------------------------------------
// DECLARATIONS                                                 
//--------------------------------------------------------------
define DOnotUSE      =   1;
define DelayNormal   =  80;
define DelayRnbwHOLD = 160;
define DelayRest     = 200;
define DelayLeft_move= 500;
define timelimit     = 300; // Time to Double click     
//////////////////////////////////////////////////////////////////
// YOUR BUTTON LAYOUT
define PaceCtrol     = PS4_L2; // Pace Control
define FinesseShot   = PS4_R1; // Finesse Shot
define PlayerRun     = PS4_L1; // Player Run 
define ShotBtn       = PS4_SQUARE; // Shot Btn 
define SprintBtn     = PS4_R2; // Sprint Btn
define PassBtn       = PS4_CROSS; // Pass Btn
define MOVE_X        = PS4_LX;       
define MOVE_Y        = PS4_LY;       
define SKILL_STICK_X = PS4_RX;       
define SKILL_STICK_Y = PS4_RY;       
define holdBtnA      = PS4_L1;    //  hold btn for choice A SKill         
define Lbtn          = PS4_L1;// Modifier Button to activate skill to the Left   
define Rbtn          = PS4_R1;// Modifier Button to activate skill to the Right 
define OneDirectBtn  = PS4_R3;// Modifier Button to activate Skill with One Direction   
define DopBTN        = PS4_L2;// Modifier Button to activate Aditional Skill
define SPRINT        = PS4_L3;// Modifier Button to activate Aditional Skill
define time_to_dblclick  = 300; // Time to Double click     
//-----------------------------
define LeftUp    = 1;   
define LeftDown  = 2
define RightUp   = 3
define RightDown = 4
define AdvUp     = 5
define AdvLeft   = 6
define AdvRight  = 7
 
 
// VARIABLES           
//--------------------------------------------------------------
//  ******    IMPORTANT    *******                   
// ****** PENALTY shot power *******                 
// adjust shot power to your player                   
//*************************************************   
define uper_corner  = 399;// power for uper corner   
define lower_corner = 195;// power for lower corner   
define adv_power    = 396;// power for advance panalty
int UP_DOWN;                                         
int LEFT_RIGHT                                       
int Advance;                                         
int onoff_penalty;                                   
int direction;                                     
//---------------------------                       
//  PENALTY variables                               
int adv_x   = 45;//  x axis for advance panalty   
int X       = 68;//  x axis for normal penalty     
//---------------------------                     
int x;                                             
int shot_power  = 195;                             
int timer;                                         
int modifier = 1;                                 
 
 
define defaultSkill  = 0;// 0. None.
 
define Best_SKILL               = 1// BestFIFAmove           
define StepOver_SKILL           = 2// STEPOVER_DIRECTION     
define ReversStepOver_SKILL     = 3// REVERS_STEPOVER         
define DoubleTouch_EXIT_SKILL   = 4// REVERS_STEPOVER and EXIT 
define Advanced_Elastico_SKILL  = 5// dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO 
define Elastico_SKILL           = 6// dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO 
define Turn_AND_Spin_SKILL      = 7//                       
define HocusPocus_SKILL         = 8// HOCUS_POCUS                                 
define Spin_NEW_SKILL           = 9// Elastico=0;dob=100;combo_run(TURNandSPIN_ELASTICO);
define Feint_L_R_SKILL          =10// FEINT_SKILL                                   
define Roulette_SKILL           =11// ROULETTE                                     
define Ball_Roll_Flick          =12// BalRollFlick                                 
define OP_Skill                 =13// OP Skill                     
define Ball_Roll_Rock_and_Roll  =14// Ball Roll Rock and Roll                     
define Bolasie_Flick_SKILL      =15// Bolasie Flick   dob=97; Elastico=FALSE;         
define Fake_Shot_SKILL          =16// Fake Shot                                   
 
define HeelFlickTurn_SKILL      =17// Heel Flick Turn                             
define Heel_to_Heel_SKILL       =18// HEELtoHEEL                                   
define Rainbow_SKILL            =19// RAINBOW                                     
define RonaldoHeelChop          =20// Ronaldo Heel Chop                           
define Fake_Pass_SKILL          =21// Fake Pass                                   
define In_Air_Rainbow           =22// standing = InAirRainbow / running = RAINBOW 
define In_Air_Elastico          =23// InAirElastico                               
define Sombrero_Flick           =24// standing =Sombrero Flick / running = Heel to Heel
define Juggling_Ball            =25// Juggling Ball                               
define Chest_Flick_Skill        =26// Juggling Ball + Chest Flick                 
define V_DragBack_Skill         =27// V Drag Back                                 
define Body_Feint_Universal     =28//               
define Ball_Roll                =29//                   
define Ball_Roll_SpeedBoost     =30//                   
define Cruyff_Turn              =31//                         
//--------------------------------------------------------------                     
// DATA SEGMENT                                                                       
//--------------------------------------------------------------                     
data(DOnotUSE,
//  1   2   3   4    5   6   7   8    9 10  11   12   13  14  15  16  17  18  19   20  21   22  23   24  25  26    27   28    29    30   31    32
    0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,1000,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 33   34 35   36  37   38  39  40  41 42   43  44   45  46  47  48  49  50   51  52   53  54   55  56   57 58    59   60    61    62   63    64   
    0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,1000,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 65   66 67   68  69   70  71  72  73 74   75  76   77  78  79  80  81  82   83  84   85  86   87  88   89 90    91   92    93    94   95    96
    0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,1000,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 97  98  99  100                       
    4, 126, 10   //                   
 
);// end of data                         
//--------------------------------------------------------------   
//--------------------------------------------------------------   
// VARIABLES                                                       
//--------------------------------------------------------------   
int b_tap;     
int DpadUP  = 7;// Skill for D-UP    7. Turn and Spin 4*-5*
int DpadR   = 14;// Skill for D-RIGHT 14.Ball Roll Rock & Roll
int DpadD   = 20;// Skill for D-DOWN  20.Ronaldo heel chop
int DpadL   = 32;// Skill for D-LEFT  32. Ronaldo Bolasie Turn
 
int ZX, ZY;                                     
int LX, LY;          // Direction of Left Stick         
int RightON           =FALSE;                           
int Elastico          =FALSE;                           
int IndL=0;         // IndL for LEFT ANALOG we use with dbyte(Ind+ ..);
int IndR_L=0;       // IndR_L for LEFT ANALOG we use with dbyte(Ind+ ..);
int Ind=0;          // Ind we use with dbyte(Ind+ ..);                 
int Zone;           //
int temp_Zone;                                               
int mX,mY;                                     
int OnOff =TRUE;                               
int OneDirectSkill;                           
int Ronaldo_Bolasie ;   
int Points             =0;                                 
int OnOffMods          =TRUE;                           
int dob;                                       
int w_AdvancedElastico =10;                   
int SKill              = defaultSkill;     
int b_Standing;                                     
int w_delay1;                                       
int w_delay2;                                       
int Finesse  = FALSE;
int PassPower    = 180; // Shot Power 
int ShootPower    = 220; // Shot Power   
init { 
    ShootPower = 220 ;
    colorled(0,0,2,0);    //  clLime
}
 
 
//--------------------------------------------------------------
// MAIN BLOCK                                                   
//--------------------------------------------------------------
main {                                         
 
 
         //--------------------------------------------------------------
       if(get_val(PS4_L1)){                     
        if(event_press(PS4_OPTIONS)){             
            onoff_penalty = TRUE;                 
            UP_DOWN    = 0;                     
            LEFT_RIGHT = 0;                     
            Advance    = 0;                       
        }                                         
       set_val(PS4_OPTIONS,0);                   
    }                                             
    if(onoff_penalty){                             
//-----------------------------------------------------------
        if(event_press(PS4_R1))                   
            Advance = TRUE;                       
       if(event_press(PS4_LEFT))                 
            LEFT_RIGHT = 15;                       
        if(event_press(PS4_RIGHT))                 
            LEFT_RIGHT = 16;                       
        if(event_press(PS4_UP))                   
            UP_DOWN = 13;                         
        if(event_press(PS4_DOWN))                 
            UP_DOWN = 14;                         
 
        //------------------------------------------
        if(UP_DOWN == 13  && LEFT_RIGHT == 15)       
            direction  = LeftUp;                     
        else if(UP_DOWN == 13  && LEFT_RIGHT == 16){ 
            direction  = RightUp;                     
       }                                             
        else if(UP_DOWN == 14  && LEFT_RIGHT == 16){ 
            direction  = RightDown;                   
        }                                             
        else if(UP_DOWN == 14  && LEFT_RIGHT == 15){ 
            direction  = LeftDown;                   
       }                                             
        else if(UP_DOWN == 0  && LEFT_RIGHT == 15){   
            direction  = AdvLeft;                     
        }                                             
        else if(UP_DOWN == 0  && LEFT_RIGHT == 16){   
            direction  = AdvRight;                   
        }                                             
        //------------------------------------------   
        if(event_press(PS4_R3)){                       
            combo_run(PENALTY);                       
            timer = 2500;                             
        }                                             
 
        if(timer > 0 ){                             
            timer = timer - get_rtime();             
 
            if(event_press(PaceCtrol)){               
                if(modifier ) modifier = -1;           
                else modifier = 1;                   
                x = x * modifier;                     
            }                                       
 
            if(event_release(PaceCtrol)){             
                if(modifier ) modifier = -1;         
                else modifier = 1;                   
                x = x * modifier;                     
            }                                         
            //---------------------                   
            set_val(PS4_LY,-100);                     
            set_val(PS4_LX, x);                       
        }                                             
 
        set_val(PS4_R3,0);                           
        set_val(13,0);                               
        set_val(14,0);                               
        set_val(15,0);                               
        set_val(16,0);                               
    }                                                 
//-----------------------------------------------------------------------
   //-------------------------------------------------------------- 
    /////////////////////////////////////////////////////////////////////
    //   Low Driven Shot                                               
    if(event_press(PS4_R3)) combo_run(DRIVEN_SHOT);                     
 
 
 
    /////////////////////////////////////////////////////////////////////
    //   Shot Power Switch                                                           
    if ( get_val(PS4_L2)) {                                                               
          if(event_press(XB1_UP))    {ShootPower = 220;  colorled(0,0,2,0); }   //  clLime
          if(event_press(XB1_RIGHT)) {ShootPower = 270;  colorled(0,0,0,2); }   //  clFuchsia
          if(event_press(XB1_DOWN))  {ShootPower = 300;  colorled(2,0,2,0);}   //  clYellow
          if(event_press(XB1_LEFT))  {ShootPower = 350;  colorled(0,2,0,0); }   //  clRed
          Null_Directional_btns ();                                                     
 
      }                                                                                 
 
    ////////////////////////////////////////////////                                 
    //                                                                               
    if(get_val(ShotBtn) && get_ptime(ShotBtn)>= ShootPower) {  // Shot Power       
              set_val(ShotBtn,  0);                                               
      }                                                                         
    if(get_val(ShotBtn)) set_val(SprintBtn,0);         
       /////////////  PASS POWER   /////////////////////////
       if(event_press(PassBtn)) combo_run(PASS)  // Pass 
 
 
    // ON / OFF All Skills         
    if(get_val(1)){                 
         if(event_press(19))OnOffMods=!OnOffMods;
         set_val(19,0);                       
    }                                       
 
 
   if(OnOff){//-------------------------------------------------
      if(abs(get_val(MOVE_X))< 60 && abs(get_val(MOVE_Y))< 60){           
            b_Standing = TRUE;                                     
      }else{                                                     
            LX = get_val(MOVE_X);                                     
            LY = get_val(MOVE_Y);                                     
            b_Standing = FALSE;                                   
            get_Zone(LX,LY);                                     
 
 
      }                                                         
    }//--------------------------------------------------------
 
 
       // CHANGE SKILLS  Bank 1                 
       if(get_val(holdBtnA)) // hold button : PS4_L1
         {//-----------------------------------------------------------
         if(get_val(13))  { SKill=DpadUP;}//7. Turn and Spin 4*-5*
         if(get_val(16))  { SKill=DpadR ;}//14.Ball Roll Rock & Roll
         if(get_val(14))  { SKill=DpadD ;}//20.Ronaldo heel chop
         if(get_val(15))  { SKill=DpadL ;}//32. Ronaldo Bolasie Turn
         if(get_val( 1))  { SKill=defaultSkill ;} // set Skill to default1 Skill =>  NONE
           Null_Directional_btns ();                       
           set_val( 1,0);                       
         }//-----------------------------------------------------------
 
   if(OnOffMods) { // all Skills mode           
 
 
 
      // Bank 1 run to the LEFT                 
      //--------------------------------------------------------------
      /////////////////////////////////////////////////////////
      //   double click : PS4_L1
       if (event_press(Lbtn) && !b_tap) {     
                   combo_run(ONE_TAP);                 
       // Second tap                                   
       }else if (event_press(Lbtn) && b_tap ){
                  b_tap=FALSE;                         
                  RightON= 0;combo_run(DIRECTION_OF_L_ANALOG);
       }                                               
      //--------------------------------------------------------------
      // Bank 1 run to the RIGHT               
      //--------------------------------------------------------------
      //////////////////////////////////////////////////////////
      //  double click :PS4_R1
       if (event_press(Rbtn) && !b_tap) {     
                   combo_run(ONE_TAP);                 
       // Second tap                                   
       }else if (event_press(Rbtn) && b_tap ){
                  b_tap=FALSE;                         
                  RightON= 1;combo_run(DIRECTION_OF_L_ANALOG);
       }                                               
 
 
 
 
     }// ON / OFF mods                         
     //--------------------------------------------------------------
 
   //--------------------------------------------------------------
} // end of main block                         
 
////////////////////////////////////////////////////////////////
// COMBO BLOCKS   //////////////////////////////////////////////
////////////////////////////////////////////////////////////////
combo ONE_TAP {                                   
    b_tap=TRUE;                                   
    wait(time_to_dblclick); // wait for second tap
    b_tap=FALSE;                                 
}                                             
// DIRECTION OF LEFT ANALOG                                     
//--------------------------------------------------------------
combo DIRECTION_OF_L_ANALOG {                                   
 
   OnOff = FALSE;                                                 
 
   if(RightON){                                               
      ZX = inv(LY); ZY = LX; // Zone 3                               
    }else {                                                     
      ZX =      LY; ZY = inv(LX); // Zone 7                               
    }                                                           
 
   block(SprintBtn,500);                                       
   block(MOVE_X,1000);block(MOVE_Y,1000)
   if(Zone>0) 
   {//------------------------------------------------           
 
      if( SKill== 7) {dob=97; Elastico=FALSE;combo_run(TURNandSPIN_ELASTICO);}//7. Turn and Spin
      if( SKill==14) {combo_run(BALL_ROLL_ROCKandROLL);} // 14. Ball Roll Rock and Roll                     
      if( SKill==20) {OneDirectSkill=20;combo_run( FAKE_SHOT ); }  //20. Ronaldo Heel Chop
      if( SKill==32){ Ronaldo_Bolasie = TRUE; combo_run(RONALDO_BOLASIE_TURN); }
     // Default Skill
    }//------------------------------------------------   
 
}       
//--------------------------------------------------------------
// end of DIRECTIONS                                           
//--------------------------------------------------------------
 
combo PASS {         
set_val(PassBtn,100) 
wait(PassPower);     
}                     
combo PENALTY {                                       
    if(!direction) {                                 
        direction = LeftUp;                           
        shot_power = uper_corner;                     
    }                                               
    else if(direction == LeftUp){                     
        shot_power = uper_corner;                     
        x  =  X * -1;                                 
    }                                                 
 
    else if(direction == RightUp){                   
        shot_power = uper_corner;                   
        x  =   X ;                                   
    }                                                 
 
    else if(direction == RightDown){                 
        shot_power = lower_corner;                   
        x  =   X ;                                   
    }                                                 
 
    else if(direction == LeftDown){                   
        shot_power = lower_corner;                     
        x  =  X * -1;                                 
    }                                                 
    else if(Advance){                                   
        shot_power = adv_power;                       
        //  left                                       
        if(LEFT_RIGHT == 15)      x  =  adv_x * -1;   
        else if(LEFT_RIGHT == 16) x  =  adv_x;         
        else x  =   20;                                 
    }                                                   
    set_val(PS4_LY,-100);                             
    set_val(PS4_LX, x  );                             
    set_val(ShotBtn,100);                             
    wait(shot_power);                                 
    onoff_penalty = FALSE;                             
}                                                     
combo DRIVEN_SHOT  {     
   set_val(ShotBtn,100);
   if( Finesse ) set_val(FinesseShot,100);
   wait(215);           
   if( Finesse ) set_val(FinesseShot,100);
   set_val(ShotBtn,  0);
   wait(60);             
   if( Finesse ) set_val(FinesseShot,100);
   set_val(ShotBtn,100);
   wait(220);           
   }                     
// 7. Turn and Spin 
///////////////////////////////////////////////////////////////////
// 14. Ball Roll Rock and Roll ////////////////////////////////////
///////////////////////////////////////////////////////////////////
 
// BALL ROLL ROCK and ROLL                   
//------------------------------------------ 
combo BALL_ROLL_ROCKandROLL {                 
    RA_CW(ZX,ZY);                             
    wait(200);//                             
    RA_CW(0,0);                               
    wait(500);//                             
    RA_CW(ZX,ZY);                             
    wait(200);                               
    OnOff = TRUE;                               
}                                             
 
 
///////////////////////////////////////////////////////////////////
// 16. Fake Shot           ////////////////////////////////////////
///////////////////////////////////////////////////////////////////
combo FAKE_SHOT {                                             
    if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
    else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass / V Drag Back
    wait(40); //                               
    if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
    else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1); // Fake Pass
    set_val(ShotBtn,100);                           
    wait(40); //                               
    if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
    else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass
    if(OneDirectSkill == 27 )  LA_CW(LX,LY); // V DRag Back     
    set_val(ShotBtn,100);                           
    set_val(19,100);                           
    wait(100); //                               
    if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
    else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass / V DRag Back
    if(OneDirectSkill == 27 )  LA_CW(ZX,ZY);     // V DRag Back
    wait(40);                                 
    OnOff = TRUE;                               
}                                             
///////////////////////////////////////////////////////////////////
/// Turn & Spin OR Elastico  //////////////////////////////////////
//dob=97 /if Elastico=FALSE => Turn and Spin / if Elastico=TRUE => Elastico Chop
// NEW SPIN  dob=100; Elastico=FALSE; 
// 97  98  99  100
//  4, 12,  6, 10   //           
 
combo TURNandSPIN_ELASTICO {         
 
   if(SKill==Bolasie_Flick_SKILL){// 16 
     f_RB_LT_RT(1,0,0);                 
      w_AdvancedElastico=100;           
   }else if(SKill==Advanced_Elastico_SKILL){
     f_RB_LT_RT(0,1,0);             
      w_AdvancedElastico=400;           
   }else{                             
      w_AdvancedElastico=10;         
   }                                 
   wait(w_AdvancedElastico);         
   if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16 
   if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
   if (RightON){Ind=((Zone + dbyte(dob))*2)- 1;}         
    else{Ind=((Zone + dbyte(dob + 1))*2)- 1;}               
    if(dob==97){//-------------------------------------------
                if (Elastico){ RA_CW(inv(mX), inv(mY));}     
                else {RA_CW( mX , mY);}      // RS go forvard
               }//-------------------------------------------
    if(dob==99){                                             
    RA_CW(dbyte(Ind),dbyte(Ind + 1));                 
    }                                                 
    wait(40);                                         
    if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16 
    if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
    RA_CW(0,0);                                       
    wait(40);                                         
    if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16 
    if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
    RA_CW(dbyte(Ind),dbyte(Ind + 1));                 
    wait(40);   
    OnOff = TRUE;                         
}     
combo RONALDO_BOLASIE_TURN {
    if(Ronaldo_Bolasie)RA_CW(LX,LY);   
    else RA_CW(inv(LX),inv(LY))
    wait(40);//           
    RA_CW(0,0);           
    wait(30);//         
    RA_CW(ZX,ZY);       
    wait(40);         
}                   
 
function get_Zone (X,Y) {                                                     
 
        if ((Y < -80        )&& (X>= -20 && X<   20 ))    {Zone= 1;} // LS==>1
   else if ((Y < -80        )&& (X>=  20 && X<=  70 ))    {Zone= 2;} // LS==>2
   else if ( Y<  -70         &&  X>   70             )    {Zone= 3;} // LS==>2
   else if ((X >  80        )&& (Y>= -70 && Y<= -20 ))    {Zone= 4;} // LS==>2
   else if ((X >  80        )&& (Y>  -20 && Y<   20 ))    {Zone= 5;} // LS==>2
   else if ((X >  80        )&& (Y>=  20 && Y<=  70 ))    {Zone= 6;} // LS==>2
   else if ((X >  70        )&& (           Y>   70 ))    {Zone= 7;} // LS==>2
   else if ((X <  70 && X>20)&& (          Y== 100 ))    {Zone= 8;} // LS==>2
   else if ((Y >  80        )&& (X>= -20 && X<=  20 ))    {Zone= 9;} // LS==>2
   else if ((Y >  80        )&& (X<  -20 && X>  -70 ))    {Zone=10;} // LS==>2
   else if ((Y >  70        )&& (           X<  -70 ))    {Zone=11;} // LS==>2
   else if ((X < -80        )&& (Y>=  20 && Y<=  70 ))    {Zone=12;} // LS==>2
   else if ((X < -80        )&& (Y>  -20 && Y<   20 ))    {Zone=13;} // LS==>2
   else if ((X < -80        )&& (Y<  -20 && Y>  -70 ))    {Zone=14;} // LS==>2
   else if ((X < -70        )&& (           Y<  -70 ))    {Zone=15;} // LS==>2
   else if ((Y < -80        )&& (X<  -20 && X>  -70 ))    {Zone=16;} // LS==>2
   temp_Zone = Zone;                                                     
     IndL = (Zone * 2)- 1;                 
 
     mX = dbyte(IndL);                       
     mY = dbyte(IndL + 1);                   
}// func end                                             
//--------------------------------------------------------------
//Right Analog Functions                                       
//--------------------------------------------------------------
function RA_CW(X,Y) {   
    set_val(SKILL_STICK_X,X );     
    set_val(SKILL_STICK_Y,Y);     
}                       
function RA_CCW(Y,X) { 
    set_val(SKILL_STICK_Y,Y );     
    set_val(SKILL_STICK_X,X);       
}                       
function LA_CW(X,Y) {   
    set_val(MOVE_X,X );     
    set_val(MOVE_Y,Y);     
}// func end                       
//--------------------------------------------------------------
//SKILLS LED INDICATION                                         
//--------------------------------------------------------------
function colorled(a,b,c,d) {
set_led(LED_1,a);           
set_led(LED_2,b);           
set_led(LED_3,c);           
set_led(LED_4,d);           
}// func end                             
function f_RB_LT_RT (a,b,c){   
     if(a) set_val(FinesseShot,100); //RB
     if(b) set_val(PaceCtrol,100); //LT
     if(c) set_val(SprintBtn,100); //RT
}// func end                   
function Null_Directional_btns (){
   set_val(13,0);               
   set_val(16,0);           
   set_val(14,0);       
   set_val(15,0);     
}
User avatar
filoogaroo
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Thu Aug 30, 2018 2:47 am

Re: Script Errors

Postby Sillyasskid » Tue Oct 23, 2018 6:21 am

Code: Select all
#include <titanone.gph>
 
// Script was generated with < FIFA Series Skills Generator > ver. 6.15 Date :10-22-18 Time: 21:55:42
//------------------------------------------------------------------------
/**********************************************************************************************/
//-----------------------------------------------------------------------
 
///\ 7. Turn and Spin 4*-5*//\14.Ball Roll Rock & Roll//\20.Ronaldo heel chop//\32. Ronaldo Bolasie Turn//\
///\ default Skill : 0. None.

 
// DESCRIPTIONS - INSTRUCTION
// Switch Skills
//
// hold button : PS4_L1 and then press :
// button : will switch to Skill :
// D-pad UP => 7
// D-pad RIGHT => 14
// D-pad DOWN => 20
// D-pad LEFT => 32
// will switch to default Skill :
// hold button :PS4_L1 + (PS4 SHARE / XB1 VIEW) => 0. None
//
// ACTIVATE SKILLS
// Skills with Left and Right exit ( direction )
// Double tap : PS4_L1 Modifier Button to activate skill to the Left
// Double tap : PS4_R1 Modifier Button to activate skill to the Right
//
// Skills with one direction ( no exit )
//
// = 0. None
//-----------------------------------------------------------------------
//--------------------------------------------------------------
// DECLARATIONS
//--------------------------------------------------------------
define DOnotUSE = 1;
define DelayNormal = 80;
define DelayRnbwHOLD = 160;
define DelayRest = 200;
define DelayLeft_move= 500;
define timelimit = 300; // Time to Double click
//////////////////////////////////////////////////////////////////
// YOUR BUTTON LAYOUT
define PaceCtrol = PS4_L2; // Pace Control
define FinesseShot = PS4_R1; // Finesse Shot
define PlayerRun = PS4_L1; // Player Run
define ShotBtn = PS4_SQUARE; // Shot Btn
define SprintBtn = PS4_R2; // Sprint Btn
define PassBtn = PS4_CROSS; // Pass Btn
define MOVE_X = PS4_LX;
define MOVE_Y = PS4_LY;
define SKILL_STICK_X = PS4_RX;
define SKILL_STICK_Y = PS4_RY;
define holdBtnA = PS4_L1; // hold btn for choice A SKill
define Lbtn = PS4_L1;// Modifier Button to activate skill to the Left
define Rbtn = PS4_R1;// Modifier Button to activate skill to the Right
define OneDirectBtn = PS4_R3;// Modifier Button to activate Skill with One Direction
define DopBTN = PS4_L2;// Modifier Button to activate Aditional Skill
define SPRINT = PS4_L3;// Modifier Button to activate Aditional Skill
define time_to_dblclick = 300; // Time to Double click
//-----------------------------
define LeftUp = 1;
define LeftDown = 2;
define RightUp = 3;
define RightDown = 4;
define AdvUp = 5;
define AdvLeft = 6;
define AdvRight = 7;
 
 
// VARIABLES
//--------------------------------------------------------------
// ****** IMPORTANT *******
// ****** PENALTY shot power *******
// adjust shot power to your player
//*************************************************
define uper_corner = 399;// power for uper corner
define lower_corner = 195;// power for lower corner
define adv_power = 396;// power for advance panalty
int UP_DOWN;
int LEFT_RIGHT;
int Advance;
int onoff_penalty;
int direction;
//---------------------------
// PENALTY variables
int adv_x = 45;// x axis for advance panalty
int X = 68;// x axis for normal penalty
//---------------------------
int x;
int shot_power = 195;
int timer;
int modifier = 1;
 
 
define defaultSkill = 0;// 0. None.
 
define Best_SKILL = 1; // BestFIFAmove
define StepOver_SKILL = 2; // STEPOVER_DIRECTION
define ReversStepOver_SKILL = 3; // REVERS_STEPOVER
define DoubleTouch_EXIT_SKILL = 4; // REVERS_STEPOVER and EXIT
define Advanced_Elastico_SKILL = 5; // dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO
define Elastico_SKILL = 6; // dob=97; Elastico=TRUE; TURNandSPIN_ELASTICO
define Turn_AND_Spin_SKILL = 7; //
define HocusPocus_SKILL = 8; // HOCUS_POCUS
define Spin_NEW_SKILL = 9; // Elastico=0;dob=100;combo_run(TURNandSPIN_ELASTICO);
define Feint_L_R_SKILL =10; // FEINT_SKILL
define Roulette_SKILL =11; // ROULETTE
define Ball_Roll_Flick =12; // BalRollFlick
define OP_Skill =13; // OP Skill
define Ball_Roll_Rock_and_Roll =14; // Ball Roll Rock and Roll
define Bolasie_Flick_SKILL =15; // Bolasie Flick dob=97; Elastico=FALSE;
define Fake_Shot_SKILL =16; // Fake Shot
 
define HeelFlickTurn_SKILL =17; // Heel Flick Turn
define Heel_to_Heel_SKILL =18; // HEELtoHEEL
define Rainbow_SKILL =19; // RAINBOW
define RonaldoHeelChop =20; // Ronaldo Heel Chop
define Fake_Pass_SKILL =21; // Fake Pass
define In_Air_Rainbow =22; // standing = InAirRainbow / running = RAINBOW
define In_Air_Elastico =23; // InAirElastico
define Sombrero_Flick =24; // standing =Sombrero Flick / running = Heel to Heel
define Juggling_Ball =25; // Juggling Ball
define Chest_Flick_Skill =26; // Juggling Ball + Chest Flick
define V_DragBack_Skill =27; // V Drag Back
define Body_Feint_Universal =28; //
define Ball_Roll =29; //
define Ball_Roll_SpeedBoost =30; //
define Cruyff_Turn =31; //
//--------------------------------------------------------------
// DATA SEGMENT
//--------------------------------------------------------------
data(DOnotUSE,
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
0,-100,50,-100,100,-100,100,-50,100, 0, 100, 50, 100,100, 50,100, 0,100, -50,100,-100,100,-100, 50,-100, 0, -100, -50, -100, -100, -50, -100,
// 97 98 99 100
4, 12, 6, 10 //
 
);// end of data
//--------------------------------------------------------------
//--------------------------------------------------------------
// VARIABLES
//--------------------------------------------------------------
int b_tap;
int DpadUP = 7;// Skill for D-UP 7. Turn and Spin 4*-5*
int DpadR = 14;// Skill for D-RIGHT 14.Ball Roll Rock & Roll
int DpadD = 20;// Skill for D-DOWN 20.Ronaldo heel chop
int DpadL = 32;// Skill for D-LEFT 32. Ronaldo Bolasie Turn
 
int ZX, ZY;
int LX, LY; // Direction of Left Stick
int RightON =FALSE;
int Elastico =FALSE;
int IndL=0; // IndL for LEFT ANALOG we use with dbyte(Ind+ ..);
int IndR_L=0; // IndR_L for LEFT ANALOG we use with dbyte(Ind+ ..);
int Ind=0; // Ind we use with dbyte(Ind+ ..);
int Zone; //
int temp_Zone;
int mX,mY;
int OnOff =TRUE;
int OneDirectSkill;
int Ronaldo_Bolasie ;
int Points =0;
int OnOffMods =TRUE;
int dob;
int w_AdvancedElastico =10;
int SKill = defaultSkill;
int b_Standing;
int w_delay1;
int w_delay2;
int Finesse = FALSE;
int PassPower = 180; // Shot Power
int ShootPower = 220; // Shot Power
init {
ShootPower = 220 ;
colorled(0,0,2,0); // clLime
}
 
 
//--------------------------------------------------------------
// MAIN BLOCK
//--------------------------------------------------------------
main {
 
 
//--------------------------------------------------------------
if(get_val(PS4_L1)){
if(event_press(PS4_OPTIONS)){
onoff_penalty = TRUE;
UP_DOWN = 0;
LEFT_RIGHT = 0;
Advance = 0;
}
set_val(PS4_OPTIONS,0);
}
if(onoff_penalty){
//-----------------------------------------------------------
if(event_press(PS4_R1))
Advance = TRUE;
if(event_press(PS4_LEFT))
LEFT_RIGHT = 15;
if(event_press(PS4_RIGHT))
LEFT_RIGHT = 16;
if(event_press(PS4_UP))
UP_DOWN = 13;
if(event_press(PS4_DOWN))
UP_DOWN = 14;
 
//------------------------------------------
if(UP_DOWN == 13 && LEFT_RIGHT == 15)
direction = LeftUp;
else if(UP_DOWN == 13 && LEFT_RIGHT == 16){
direction = RightUp;
}
else if(UP_DOWN == 14 && LEFT_RIGHT == 16){
direction = RightDown;
}
else if(UP_DOWN == 14 && LEFT_RIGHT == 15){
direction = LeftDown;
}
else if(UP_DOWN == 0 && LEFT_RIGHT == 15){
direction = AdvLeft;
}
else if(UP_DOWN == 0 && LEFT_RIGHT == 16){
direction = AdvRight;
}
//------------------------------------------
if(event_press(PS4_R3)){
combo_run(PENALTY);
timer = 2500;
}
 
if(timer > 0 ){
timer = timer - get_rtime();
 
if(event_press(PaceCtrol)){
if(modifier ) modifier = -1;
else modifier = 1;
x = x * modifier;
}
 
if(event_release(PaceCtrol)){
if(modifier ) modifier = -1;
else modifier = 1;
x = x * modifier;
}
//---------------------
set_val(PS4_LY,-100);
set_val(PS4_LX, x);
}
 
set_val(PS4_R3,0);
set_val(13,0);
set_val(14,0);
set_val(15,0);
set_val(16,0);
}
//-----------------------------------------------------------------------
//--------------------------------------------------------------
/////////////////////////////////////////////////////////////////////
// Low Driven Shot
if(event_press(PS4_R3)) combo_run(DRIVEN_SHOT);
 
 
 
/////////////////////////////////////////////////////////////////////
// Shot Power Switch
if ( get_val(PS4_L2)) {
if(event_press(XB1_UP)) {ShootPower = 220; colorled(0,0,2,0); } // clLime
if(event_press(XB1_RIGHT)) {ShootPower = 270; colorled(0,0,0,2); } // clFuchsia
if(event_press(XB1_DOWN)) {ShootPower = 300; colorled(2,0,2,0);} // clYellow
if(event_press(XB1_LEFT)) {ShootPower = 350; colorled(0,2,0,0); } // clRed
Null_Directional_btns ();
 
}
 
////////////////////////////////////////////////
//
if(get_val(ShotBtn) && get_ptime(ShotBtn)>= ShootPower) { // Shot Power
set_val(ShotBtn, 0);
}
if(get_val(ShotBtn)) set_val(SprintBtn,0);
///////////// PASS POWER /////////////////////////
if(event_press(PassBtn)) combo_run(PASS); // Pass
 
 
// ON / OFF All Skills
if(get_val(1)){
if(event_press(19))OnOffMods=!OnOffMods;
set_val(19,0);
}
 
 
if(OnOff){//-------------------------------------------------
if(abs(get_val(MOVE_X))< 60 && abs(get_val(MOVE_Y))< 60){
b_Standing = TRUE;
}else{
LX = get_val(MOVE_X);
LY = get_val(MOVE_Y);
b_Standing = FALSE;
get_Zone(LX,LY);
 
 
}
}//--------------------------------------------------------
 
 
// CHANGE SKILLS Bank 1
if(get_val(holdBtnA)) // hold button : PS4_L1
{//-----------------------------------------------------------
if(get_val(13)) { SKill=DpadUP;}//7. Turn and Spin 4*-5*
if(get_val(16)) { SKill=DpadR ;}//14.Ball Roll Rock & Roll
if(get_val(14)) { SKill=DpadD ;}//20.Ronaldo heel chop
if(get_val(15)) { SKill=DpadL ;}//32. Ronaldo Bolasie Turn
if(get_val( 1)) { SKill=defaultSkill ;} // set Skill to default1 Skill => NONE
Null_Directional_btns ();
set_val( 1,0);
}//-----------------------------------------------------------
 
if(OnOffMods) { // all Skills mode
 
 
 
// Bank 1 run to the LEFT
//--------------------------------------------------------------
/////////////////////////////////////////////////////////
// double click : PS4_L1
if (event_press(Lbtn) && !b_tap) {
combo_run(ONE_TAP);
// Second tap
}else if (event_press(Lbtn) && b_tap ){
b_tap=FALSE;
RightON= 0;combo_run(DIRECTION_OF_L_ANALOG);
}
//--------------------------------------------------------------
// Bank 1 run to the RIGHT
//--------------------------------------------------------------
//////////////////////////////////////////////////////////
// double click :PS4_R1
if (event_press(Rbtn) && !b_tap) {
combo_run(ONE_TAP);
// Second tap
}else if (event_press(Rbtn) && b_tap ){
b_tap=FALSE;
RightON= 1;combo_run(DIRECTION_OF_L_ANALOG);
}
 
 
 
 
}// ON / OFF mods
//--------------------------------------------------------------
 
//--------------------------------------------------------------
} // end of main block
 
////////////////////////////////////////////////////////////////
// COMBO BLOCKS //////////////////////////////////////////////
////////////////////////////////////////////////////////////////
combo ONE_TAP {
b_tap=TRUE;
wait(time_to_dblclick); // wait for second tap
b_tap=FALSE;
}
// DIRECTION OF LEFT ANALOG
//--------------------------------------------------------------
combo DIRECTION_OF_L_ANALOG {
 
OnOff = FALSE;
 
if(RightON){
ZX = inv(LY); ZY = LX; // Zone 3
}else {
ZX = LY; ZY = inv(LX); // Zone 7
}
 
block(SprintBtn,500);
block(MOVE_X,1000);block(MOVE_Y,1000);
if(Zone>0)
{//------------------------------------------------
 
if( SKill== 7) {dob=97; Elastico=FALSE;combo_run(TURNandSPIN_ELASTICO);}//7. Turn and Spin
if( SKill==14) {combo_run(BALL_ROLL_ROCKandROLL);} // 14. Ball Roll Rock and Roll
if( SKill==20) {OneDirectSkill=20;combo_run( FAKE_SHOT ); } //20. Ronaldo Heel Chop
if( SKill==32){ Ronaldo_Bolasie = TRUE; combo_run(RONALDO_BOLASIE_TURN); }
// Default Skill
}//------------------------------------------------
 
}
//--------------------------------------------------------------
// end of DIRECTIONS
//--------------------------------------------------------------
 
combo PASS {
set_val(PassBtn,100);
wait(PassPower);
}
combo PENALTY {
if(!direction) {
direction = LeftUp;
shot_power = uper_corner;
}
else if(direction == LeftUp){
shot_power = uper_corner;
x = X * -1;
}
 
else if(direction == RightUp){
shot_power = uper_corner;
x = X ;
}
 
else if(direction == RightDown){
shot_power = lower_corner;
x = X ;
}
 
else if(direction == LeftDown){
shot_power = lower_corner;
x = X * -1;
}
else if(Advance){
shot_power = adv_power;
// left
if(LEFT_RIGHT == 15) x = adv_x * -1;
else if(LEFT_RIGHT == 16) x = adv_x;
else x = 20;
}
set_val(PS4_LY,-100);
set_val(PS4_LX, x );
set_val(ShotBtn,100);
wait(shot_power);
onoff_penalty = FALSE;
}
combo DRIVEN_SHOT {
set_val(ShotBtn,100);
if( Finesse ) set_val(FinesseShot,100);
wait(215);
if( Finesse ) set_val(FinesseShot,100);
set_val(ShotBtn, 0);
wait(60);
if( Finesse ) set_val(FinesseShot,100);
set_val(ShotBtn,100);
wait(220);
}
// 7. Turn and Spin
///////////////////////////////////////////////////////////////////
// 14. Ball Roll Rock and Roll ////////////////////////////////////
///////////////////////////////////////////////////////////////////
 
// BALL ROLL ROCK and ROLL
//------------------------------------------
combo BALL_ROLL_ROCKandROLL {
RA_CW(ZX,ZY);
wait(200);//
RA_CW(0,0);
wait(500);//
RA_CW(ZX,ZY);
wait(200);
OnOff = TRUE;
}
 
 
///////////////////////////////////////////////////////////////////
// 16. Fake Shot ////////////////////////////////////////
///////////////////////////////////////////////////////////////////
combo FAKE_SHOT {
if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass / V Drag Back
wait(40); //
if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1); // Fake Pass
set_val(ShotBtn,100);
wait(40); //
if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass
if(OneDirectSkill == 27 ) LA_CW(LX,LY); // V DRag Back
set_val(ShotBtn,100);
set_val(19,100);
wait(100); //
if(OneDirectSkill==20)f_RB_LT_RT(0,1,0); // Ronaldo Chop
else if(OneDirectSkill > 20)f_RB_LT_RT(0,0,1);// Fake Pass / V DRag Back
if(OneDirectSkill == 27 ) LA_CW(ZX,ZY); // V DRag Back
wait(40);
OnOff = TRUE;
}
///////////////////////////////////////////////////////////////////
/// Turn & Spin OR Elastico //////////////////////////////////////
//dob=97 /if Elastico=FALSE => Turn and Spin / if Elastico=TRUE => Elastico Chop
// NEW SPIN dob=100; Elastico=FALSE;
// 97 98 99 100
// 4, 12, 6, 10 //
 
combo TURNandSPIN_ELASTICO {
 
if(SKill==Bolasie_Flick_SKILL){// 16
f_RB_LT_RT(1,0,0);
w_AdvancedElastico=100;
}else if(SKill==Advanced_Elastico_SKILL){
f_RB_LT_RT(0,1,0);
w_AdvancedElastico=400;
}else{
w_AdvancedElastico=10;
}
wait(w_AdvancedElastico);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
if (RightON){Ind=((Zone + dbyte(dob))*2)- 1;}
else{Ind=((Zone + dbyte(dob + 1))*2)- 1;}
if(dob==97){//-------------------------------------------
if (Elastico){ RA_CW(inv(mX), inv(mY));}
else {RA_CW( mX , mY);} // RS go forvard
}//-------------------------------------------
if(dob==99){
RA_CW(dbyte(Ind),dbyte(Ind + 1));
}
wait(40);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
RA_CW(0,0);
wait(40);
if(SKill==Bolasie_Flick_SKILL){f_RB_LT_RT(1,0,0);}// 16
if(SKill==Advanced_Elastico_SKILL){f_RB_LT_RT(0,1,0);}
RA_CW(dbyte(Ind),dbyte(Ind + 1));
wait(40);
OnOff = TRUE;
}
combo RONALDO_BOLASIE_TURN {
if(Ronaldo_Bolasie)RA_CW(LX,LY);
else RA_CW(inv(LX),inv(LY));
wait(40);//
RA_CW(0,0);
wait(30);//
RA_CW(ZX,ZY);
wait(40);
}
 
function get_Zone (X,Y) {
 
if ((Y < -80 )&& (X>= -20 && X< 20 )) {Zone= 1;} // LS==>1
else if ((Y < -80 )&& (X>= 20 && X<= 70 )) {Zone= 2;} // LS==>2
else if ( Y< -70 && X> 70 ) {Zone= 3;} // LS==>2
else if ((X > 80 )&& (Y>= -70 && Y<= -20 )) {Zone= 4;} // LS==>2
else if ((X > 80 )&& (Y> -20 && Y< 20 )) {Zone= 5;} // LS==>2
else if ((X > 80 )&& (Y>= 20 && Y<= 70 )) {Zone= 6;} // LS==>2
else if ((X > 70 )&& ( Y> 70 )) {Zone= 7;} // LS==>2
else if ((X < 70 && X>20)&& ( Y== 100 )) {Zone= 8;} // LS==>2
else if ((Y > 80 )&& (X>= -20 && X<= 20 )) {Zone= 9;} // LS==>2
else if ((Y > 80 )&& (X< -20 && X> -70 )) {Zone=10;} // LS==>2
else if ((Y > 70 )&& ( X< -70 )) {Zone=11;} // LS==>2
else if ((X < -80 )&& (Y>= 20 && Y<= 70 )) {Zone=12;} // LS==>2
else if ((X < -80 )&& (Y> -20 && Y< 20 )) {Zone=13;} // LS==>2
else if ((X < -80 )&& (Y< -20 && Y> -70 )) {Zone=14;} // LS==>2
else if ((X < -70 )&& ( Y< -70 )) {Zone=15;} // LS==>2
else if ((Y < -80 )&& (X< -20 && X> -70 )) {Zone=16;} // LS==>2
temp_Zone = Zone;
IndL = (Zone * 2)- 1;
 
mX = dbyte(IndL);
mY = dbyte(IndL + 1);
}// func end
//--------------------------------------------------------------
//Right Analog Functions
//--------------------------------------------------------------
function RA_CW(X,Y) {
set_val(SKILL_STICK_X,X );
set_val(SKILL_STICK_Y,Y);
}
function RA_CCW(Y,X) {
set_val(SKILL_STICK_Y,Y );
set_val(SKILL_STICK_X,X);
}
function LA_CW(X,Y) {
set_val(MOVE_X,X );
set_val(MOVE_Y,Y);
}// func end
//--------------------------------------------------------------
//SKILLS LED INDICATION
//--------------------------------------------------------------
function colorled(a,b,c,d) {
set_led(LED_1,a);
set_led(LED_2,b);
set_led(LED_3,c);
set_led(LED_4,d);
}// func end
function f_RB_LT_RT (a,b,c){
if(a) set_val(FinesseShot,100); //RB
if(b) set_val(PaceCtrol,100); //LT
if(c) set_val(SprintBtn,100); //RT
}// func end
function Null_Directional_btns (){
set_val(13,0);
set_val(16,0);
set_val(14,0);
set_val(15,0);
}
User avatar
Sillyasskid
Captain
Captain
 
Posts: 574
Joined: Sat May 14, 2016 3:07 am

Re: Script Errors

Postby filoogaroo » Tue Oct 23, 2018 12:03 pm

Thks mate for the fast answer - i will try that tonight
User avatar
filoogaroo
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Thu Aug 30, 2018 2:47 am

Re: Script Errors

Postby filoogaroo » Thu Oct 25, 2018 10:34 pm

Total;y working thks Sillyasskid !
User avatar
filoogaroo
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Thu Aug 30, 2018 2:47 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: trezor and 162 guests