Author Topic: ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT  (Read 615 times)

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« on: September 12, 2010, 06:14:58 am »


               Why am I getting this error on a bunch of scripts I have not edited recently?
I edited some other scritps but not the ones giving that error.  Is there an external script compiler I should use to make debuging easier?
               
               

               
            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #1 on: September 12, 2010, 06:33:15 am »


               I found the bug causing it, my variable voff was spelled voffff.  an extra f.  But still there must be a better compiler, which is the best?
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #2 on: September 12, 2010, 01:54:39 pm »


               The PRC group did create an external compiler.  Whether it's better or not is probably a personal preference. '<img'>

You can find it here:

http://nwvault.ign.c...r.Detail&id=708
               
               

               
            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #3 on: September 14, 2010, 12:32:54 am »


               thanks
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #4 on: September 14, 2010, 01:14:27 am »


               When you try to compile a normal script in the TextAppearsWhen box, by opening the script editor from the Edit button for that box, and you try to compile a normal script it will kick out this error, for the startingconditional() is much like void main() except it belongs in a conversations' TextAppearsWhen event, and it is not a normal script which uses void main().
               
               

               
            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #5 on: September 14, 2010, 03:39:47 am »


               I was getting the error when i built the module - in a bunch of scripts.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #6 on: September 14, 2010, 04:16:59 am »


               you will also get errors for all include files when you build the module.   They have no main viod or starting condition.   as far as the build function is concerned it is a script so it trys to compile it.   It was not meant to be compiled so the compiler kicks out an error.    It is more of a problem with the build function then the compiler.    



The build function is not that great on the feed back it gives.  it does not take long to figure out what you can ingnore.  



And no I don't thinker there is a replacement  toolset out there.   There are external compilers that i have never seen a reason to use.  the internal one has never given me a problem.
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #7 on: September 14, 2010, 06:27:24 am »


               I also prefer using the toolset compiler, as it hasn't given me any reason to look at another. '<img'>
               
               

               
            

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #8 on: November 24, 2012, 02:44:15 pm »


               Hello everybody. I have been tinkering around for some time, trying to come up with a script that is a random starting conditional. The intended use is that an npc's response could be random rather than fixed. I've been using the d2 case scripts and having no success with the compiler. I've been getting around the problem by using d2 ActionStartConversation. The random script is  just something I can't let go of. I wonder if it is even possible. Any help here would be appreciated.
               
               

               
            

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #9 on: February 07, 2013, 01:29:59 am »


               I love the compiler. I realy do. If anyone is interested, I got it. It's funny how you can over complicate scripts. I was trying switch and case statements along with every thing else I could think of. Turns out, it was quite simple. Silly Noob.

int StartingConditional ()
{
int iResult = d2();
 if(iResult > 1)
  return FALSE;
  return TRUE;
}
That's it. Only took me 3 months. Now what do I do with my life ?           Ed
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #10 on: February 07, 2013, 01:49:41 am »


               You can pare this down even more.

int StartingConditional()
{
    return (d2() == 1);
}

'<img'>
               
               

               


                     Modifié par Squatting Monk, 07 février 2013 - 01:49 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #11 on: February 07, 2013, 01:58:42 am »


               

Ed Venture wrote...

I love the compiler. I realy do. If anyone is interested, I got it. It's funny how you can over complicate scripts. I was trying switch and case statements along with every thing else I could think of. Turns out, it was quite simple. Silly Noob.

int StartingConditional ()
{
int iResult = d2();
if(iResult > 1)
return FALSE;
return TRUE;
}
That's it. Only took me 3 months. Now what do I do with my life ? Ed


You can simplify that to: 

 
int StartingConditional ()
{
return  d2()==1;
 }

EDIT:  lol beat to the punch
               
               

               


                     Modifié par Lightfoot8, 07 février 2013 - 01:59 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
ERROR: NO FUNCTION STARTINGCONDITIONAL() IN SCRIPT
« Reply #12 on: February 07, 2013, 02:00:38 pm »


               or:
int StartingConditional ()
{
return  Random(2);
}