Connor H-J Posted June 23, 2005 Share Posted June 23, 2005 I tried to do scripting for dummies guide I made a script half done it came up with a message so I deleted the script but now it came up with enother error message so I changed the script toBegin my_first_script end and now it says script is now compiled what does that mean? Link to comment Share on other sites More sharing options...
Arturun Posted June 25, 2005 Share Posted June 25, 2005 When it says the script is compiled, it means that it's saved and free of errors that the TES can find. Just know that it might have a logic error (human error) somewhere in it that causes it to not work right. Usually, whether or not a script compiles or not is the first clue as to whether or not it works. -Arturun Link to comment Share on other sites More sharing options...
Raven7669 Posted June 27, 2005 Share Posted June 27, 2005 Basically arturun has it right but here is a more detailed breakdown of how it works.when you write a script it has to follow certian rules if you don't TES won't let you save it. For example if you start and IF statement and dont have an ENDIF associated with it. Once it is compiled it means that the script should run with out any computer errors. Now logic or conflict errors are another story for example below Begin my_first_script short numberreturn if (number ==2) messagebox "number equals 2"else ifset number to 2endif endin this example you are testing to see if number is equal to 2. if it is not you want to set it to 2.the problem is the script will never get to the if statement becasue of the return after you declare you variable. This is the kind of error that compiling the script will not catch. there are also ways to get the computer stuck in a loopThe best way to fix these errors is to logically work through the script before you try it (by that I mean pretend you are the computer and you have to execute the script). there is always trial and error though. Hope this explains things. if I am wrong on any of this feel free to correct me. Link to comment Share on other sites More sharing options...
Connor H-J Posted July 2, 2005 Author Share Posted July 2, 2005 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.