noob needs help script wont load

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

noob needs help script wont load

Postby asilver » Thu Jul 11, 2019 9:59 am

hi there thankyou for reading im new to programming I enjoy eso but due to accident have less fingers then most and cant do a proper dps rotation even with light weave pack. so am trying to get a basic rotation on to one button.
I keep getting ERROR line 0: syntax error near unexpected token ''. when i try to run it, please could someone have a look at my code so far and show me whats wrong . thankyou for reading

Code: Select all
 
int combo_toggle = FALSE;
 
main {
    if(event_press(XB1_RS)) {
        combo_toggle = !combo_toggle;
    }
 
    if(combo_toggle) {
        combo_run(sorkdps);
    }   
 }   
combo sorkdps {
//back bar ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // press X
    set_val(XB1_X, 100);
    wait(40);
 
    wait(40);
 
    // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press Y
     set_val(XB1_Y, 100);
    wait(40);
 
    wait(40);
 
      // press Left Dpad swap to bar 1
     set_val(XB1_LEFT, 100);
    wait(40);
 
    wait(40);
//front bar ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 // press RT
    set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    // press X
     set_val(XB1_X, 100);
    wait(40);
 
    wait(40);
 
    //press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
     //press Y
    set_val(XB1_Y, 100);
    wait(40);
 
    wait(40);
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // Light attack weave 5 rt and rb
 
 
 
    // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press RB
     set_val(XB1_RB, 100);
    wait(40);
 
    wait(40);
   //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~2~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press RB
     set_val(XB1_RB, 100);
    wait(40);
 
    wait(40);
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press RB
     set_val(XB1_RB, 100);
    wait(40);
 
    wait(40);
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~4~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press RB
     set_val(XB1_RB, 100);
    wait(40);
 
    wait(40);
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     // press RT
     set_val(XB1_RT, 100);
    wait(40);
 
    wait(40);
 
    //press RB
     set_val(XB1_RB, 100);
    wait(40);
 
    wait(40);
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
      // press Left Dpad swap to bar 2 restart
     set_val(XB1_LEFT, 100);
    wait(40);
 
    wait(40);
 
 
 
 
 
 
 
User avatar
asilver
Sergeant
Sergeant
 
Posts: 6
Joined: Wed Jul 10, 2019 10:13 am

Re: noob needs help script wont load

Postby Scachi » Thu Jul 11, 2019 12:48 pm

You are missing a } to close the combo section.
To close the combo add } to the line after the last wait(40); of your script.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: noob needs help script wont load

Postby asilver » Wed Jul 17, 2019 12:43 pm

thankyou for the help very much appreciated
User avatar
asilver
Sergeant
Sergeant
 
Posts: 6
Joined: Wed Jul 10, 2019 10:13 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 131 guests