help with line error script ERROR line 94: syntax error near
3 posts
• Page 1 of 1
help with line error script ERROR line 94: syntax error near
- Code: Select all
/**********************************************************************
______ _____ _____ _______ _ _ _______ _______ ______
(______)(_____) (_____)(__ _ __)(_) (_)(_______)(__ _ __)(______)
(_)__ (_) (_)(_)__(_) (_) (__)_ (_) (_) (_) (_)__
(____) (_) (_)(_____) (_) (_)(_)(_) (_) (_) (____)
(_) (_)___(_)( ) ( ) (_) (_) (__) __(_)__ (_) (_)____
(_) (_____) (_) (_) (_) (_) (_)(_______) (_) (______)
***********************************************************************//*********************************************************************
FORTNITE BATTLE ROYALE
Game : FORTNITE
Authors : Excalibur & WalterHMartinez
***********************************************************************////////////////////////////////////////////////////////////////////////
//
// BUTTON LAYOUT : STANDARD
//
// CONSOLE : PS4
//
// Bumpers/Triggers : DEFAULT
//
///////////////////////////////////////////////////////////////////////
//
//---------------------------------------------------------------------
// TOGGLE SWITCHES
// Turn Rapid Fire OFF/ON
// ---------------------------------
//
// hold : PS4_SHARE and then press : PS4_PS
//
// Turn AIM ASSIST OFF/ON
// ---------------------------------
//
// in X-AIM plugin bind button EXTRA_INPU3 to some of your keyboard button
//
// Turn ANTI RECOIL OFF/ON
// ---------------------------------
//
// hold : PS4_SHARE and then press : PS4_PS
//
//
//---------------------------------------------------------------------
//
//auto-spot modifier
//tap RB to turn on/off AutoSpot
//_____________________________________________________________________|
//########## VARIABLES BELOW USED BY SCRIPT (DO NOT TOUCH) #############|
//----------------------------------------------------------------------|
//--------------------------------------
// use the name of the color
//1. Blue
//2. Red
//3. Green
//4. Pink
//5. SkyBlue
//6. Yellow
//7. White
// end of data segment--------------
///////////////////////////////////////
// variables
//--------------------------------------------------------------------------------------
// MAIN BLOCK BEGIN
/////////////////////////////////////////////////////////////////////////////////
// HAIR TRIGGER
//////////////////////////////////////////////////////////////////////
// DEAD ZONE CORECTION : RIGHT STICK
// AUTOSPOT
/////////////////////////////////////////////////////////////////////////////////
//Rapid Fire
/////////////////////////////////////////////////////////////////////////////////
//Aim Assist V 2
//-------------------------------------------------------------------------------
//-----------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////
// ANTI RECOIL
// MAIN BLOCK END
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
// COMBO BLOCK
//Autospot
//begin
//end
//1
//1
//1
//1
// This combo must be the last one
// COLOR LED function
//--------------------------------------------------------------
define FIRE_BTN = PS4_R2;
define ADS_BTN = PS4_L2;
define CROUCH_BTN = PS4_CIRCLE;
define SPRINT_BTN = PS4_L3;
define JUMP_BTN = PS4_CROSS;
define NEXT_PIECE = PS4_R1;
define LEFT_BUMP = PS4_L1;
define SWAP_BTN = PS4_SHARE;
define BUILD_BTN = PS4_PS;
define RELOAD_BTN = PS4_SQUARE;
define SPOT = 900;
define SPOT_BUTTON = PS4_R3;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
data( 1,
2, 0, 0, 0 ,
0, 2, 0, 0 ,
0, 0, 2, 0 ,
0, 0, 0, 2 ,
2, 0, 2, 0 ,
0, 2, 2, 0 ,
2, 2, 2, 2
);
int RF_onoff = FALSE;
int AimAssist_onoff = TRUE;
int shake = 38;
int AntiRecoil_onoff = TRUE;
int ANTI_RECOIL = 5;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;
main {
if (RF_onoff) f_LED_CM(Red);
else f_LED_CM(Blue);
if (get_val(ADS_BTN)) set_val(ADS_BTN, 100);
if (get_val(FIRE_BTN)) set_val(FIRE_BTN, 100);
if (abs(get_val(PS4_RY)) < 0 && abs(get_val(PS4_RX)) < 0) {
set_val(PS4_RY, 0);
set_val(PS4_RX, 0);
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
RF_onoff =! RF_onoff;
}
set_val(PS4_PS, 0);
}
if (get_val(PS4_L3)) {
set_val(PS4_CIRCLE, 100);
}
if (get_val(7)) combo_run(c_AutoSpot);
if (event_press(BUILD_BTN) || event_press(SWAP_BTN)) {
RF_onoff =! RF_onoff;
}
if (RF_onoff) {
if (get_val(FIRE_BTN) && get_val(ADS_BTN)) {
combo_run(c_RAPID_FIRE);
}
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
AimAssist_onoff =! AimAssist_onoff;
}
set_val(PS4_PS, 0);
}
if (AimAssist_onoff) {
if (get_val(ADS_BTN)) combo_run(c_Auto_Aimm);
else combo_stop(c_Auto_Aimm);
if (get_val(ADS_BTN)) {
if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21) {
combo_stop(c_Auto_Aimm);
}
}
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
AntiRecoil_onoff =! AntiRecoil_onoff;
}
set_val(PS4_SHARE, 0);
}
if (AntiRecoil_onoff) {
if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
combo_run(c_AntiRecoil);
}
}
}
combo c_RAPID_FIRE {
set_val(FIRE_BTN, 100);
wait(18);
set_val(FIRE_BTN, 0);
wait(12);
}
combo c_AutoSpot {
set_val(SPOT_BUTTON, 100);
wait(50);
set_val(SPOT_BUTTON, 0);
wait(SPOT);
}
combo c_Auto_Aimm {
set_val(10, shake *- 1);
wait(20);
set_val(9, shake);
wait(20);
set_val(10, shake);
wait(20);
set_val(9, shake *- 1);
wait(20);
}
combo c_AntiRecoil {
anti_recoil = get_val(10) + ANTI_RECOIL;
if (anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if (anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
function f_LED_CM(Colour) {
set_led(LED_1, dbyte((Colour * 4) - 3));
set_led(LED_2, dbyte(((Colour * 4) - 3) + 1));
set_led(LED_3, dbyte(((Colour * 4) - 3) + 2));
set_led(LED_4, dbyte(((Colour * 4) - 3) + 3));
}
-
sebascu - Sergeant Major
- Posts: 68
- Joined: Sat Aug 03, 2019 5:32 pm
Re: help with line error script ERROR line 94: syntax error
- Code: Select all
data( 1,
2, 0, 0, 0 ,
0, 2, 0, 0 ,
0, 0, 2, 0 ,
0, 0, 0, 2 ,
2, 0, 2, 0 ,
0, 2, 2, 0 ,
2, 2, 2, 2
);
define FIRE_BTN = PS4_R2;
define ADS_BTN = PS4_L2;
define CROUCH_BTN = PS4_CIRCLE;
define SPRINT_BTN = PS4_L3;
define JUMP_BTN = PS4_CROSS;
define NEXT_PIECE = PS4_R1;
define LEFT_BUMP = PS4_L1;
define SWAP_BTN = PS4_SHARE;
define BUILD_BTN = PS4_PS;
define RELOAD_BTN = PS4_SQUARE;
define SPOT = 900;
define SPOT_BUTTON = PS4_R3;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
int RF_onoff = FALSE;
int AimAssist_onoff = TRUE;
int shake = 38;
int AntiRecoil_onoff = TRUE;
int ANTI_RECOIL = 5;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;
main {
if (RF_onoff) f_LED_CM(Red);
else f_LED_CM(Blue);
if (get_val(ADS_BTN)) set_val(ADS_BTN, 100);
if (get_val(FIRE_BTN)) set_val(FIRE_BTN, 100);
if (abs(get_val(PS4_RY)) < 0 && abs(get_val(PS4_RX)) < 0) {
set_val(PS4_RY, 0);
set_val(PS4_RX, 0);
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
RF_onoff =! RF_onoff;
}
set_val(PS4_PS, 0);
}
if (get_val(PS4_L3)) {
set_val(PS4_CIRCLE, 100);
}
if (get_val(7)) combo_run(c_AutoSpot);
if (event_press(BUILD_BTN) || event_press(SWAP_BTN)) {
RF_onoff =! RF_onoff;
}
if (RF_onoff) {
if (get_val(FIRE_BTN) && get_val(ADS_BTN)) {
combo_run(c_RAPID_FIRE);
}
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
AimAssist_onoff =! AimAssist_onoff;
}
set_val(PS4_PS, 0);
}
if (AimAssist_onoff) {
if (get_val(ADS_BTN)) combo_run(c_Auto_Aimm);
else combo_stop(c_Auto_Aimm);
if (get_val(ADS_BTN)) {
if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21) {
combo_stop(c_Auto_Aimm);
}
}
}
if (get_val(PS4_SHARE)) {
if (event_press(PS4_PS)) {
AntiRecoil_onoff =! AntiRecoil_onoff;
}
set_val(PS4_SHARE, 0);
}
if (AntiRecoil_onoff) {
if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
combo_run(c_AntiRecoil);
}
}
}
combo c_RAPID_FIRE {
set_val(FIRE_BTN, 100);
wait(18);
set_val(FIRE_BTN, 0);
wait(12);
}
combo c_AutoSpot {
set_val(SPOT_BUTTON, 100);
wait(50);
set_val(SPOT_BUTTON, 0);
wait(SPOT);
}
combo c_Auto_Aimm {
set_val(10, shake *- 1);
wait(20);
set_val(9, shake);
wait(20);
set_val(10, shake);
wait(20);
set_val(9, shake *- 1);
wait(20);
}
combo c_AntiRecoil {
anti_recoil = get_val(10) + ANTI_RECOIL;
if (anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if (anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
function f_LED_CM(Colour) {
set_led(LED_1, dbyte((Colour * 4) - 3));
set_led(LED_2, dbyte(((Colour * 4) - 3) + 1));
set_led(LED_3, dbyte(((Colour * 4) - 3) + 2));
set_led(LED_4, dbyte(((Colour * 4) - 3) + 3));
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
3 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 75 guests