anlashok Posted June 4, 2009 Share Posted June 4, 2009 If ( GetCurrentTime >= 10 && GetCurrentTime < 22 ) set init to 1Else set init to 0EndIf That would be perfectly fine. There is no "Vague" in programming. If you programmed every logical step you wanted to make for every statement, you would end up with twice the code you needed to write. It's either true or it isn't. There is no room for a "Paradox" in mine or Analashok's work. Also, I don't think learning Fallout 3 scripting is a thing for beginners. Alot of functions do not work how they are suppose to. GECK isn't a very stable or suitable work atmosphere for scripting, either. Translating code is a GOOD technique...Have you ever heard of Pseudocode? I think the vague part he meant was when I said the if-elseif with overlapping conditions would work. I wrote a long chapter about mathematical beauty of complementary sets in condition space and why doesn't he understand that, and then I figured he probably didn't have a problem with the else after all :/ Link to comment Share on other sites More sharing options...
BadPenney Posted June 5, 2009 Share Posted June 5, 2009 First I want to emphasize the word "debugging". If the program is not working and you can't see the error, then it means your fluency in the programming language is not strong enough and so you need some other way of solving the problem.The script was working perfectly fine. Agnot merely wanted to change the period of activation from 10 am to midnight to 10 am to 10 pm. He contacted me by pm to tell me that your posts were confusing him rather than enlightening him. If he had plugged your "spoiler" into the radio script, he would have gotten an error message for an unreferenced variable - "autoOn". Though he did not say whether or not he tried it, that may have led to his confusion. If-then-else logic is an absolute requirement for any kind of scripting and Agnot2006 really needs to learn it, the faster the better.I believe it is for him to decide whether he wants to learn it, how he wants to learn it, and at what pace. Unless of course it is a matter of national security. If ( GetCurrentTime >= 10 && GetCurrentTime < 22 )set init to 1Elseset init to 0EndIf That would be perfectly fine. There is no "Vague" in programming. If you programmed every logical step you wanted to make for every statement, you would end up with twice the code you needed to write. It's either true or it isn't. There is no room for a "Paradox" in mine or Analashok's work. Also, I don't think learning Fallout 3 scripting is a thing for beginners. Alot of functions do not work how they are suppose to. GECK isn't a very stable or suitable work atmosphere for scripting, either. Translating code is a GOOD technique...Have you ever heard of Pseudocode?The "vague" that I was talking about was in Agnot's code, not in the above quoted variation of mine. "Vague" was maybe not the most precise term for my statement, but writing a script that states that 2 opposites are the same is a paradox, and that should be avoided. Machines do not make intuitive leaps. I don't believe that the script that I wrote was unnecessarily flowery, although this bit above is a little more sparse and still serves the purpose. Points for elegance. This portion of the script could only stand alone and keep the radio on the desired play schedule if a player did not activate the radio manually, which could cause the schedule to flip-flop. The remainder of the script was intended to maintain the desired play schedule while allowing a player to interact with the radio. As I said earlier "Translating code is a GOOD technique" and translating a Mandarin question mentally into English, formulating a reply in English and translating that into a Mandarin spoken reply is a good technique. But thinking in Mandarin while speaking is better and more fluent. I use this forum to help learn things that I wish to learn, and if possible to help another learn or accomplish something with what little I may have learned. I am not invested in proving myself to be right or more knowledeable than anyone. It would be a pointless pursuit. It is inevitable that others will know things that I do not, and if they take the time to show me an error in my processes, or a more efficient way, then I count myself fortunate. Since this forum is about making modifications for a game, then I think the main focus should be enjoyment. Link to comment Share on other sites More sharing options...
Alundaio Posted June 5, 2009 Share Posted June 5, 2009 I apologize. but it seemed like you were pushing that you ARE more knowledgeable than anyone, and that Anashok didn't know what he was talking about. He's was just trying to help the fellow out. Maybe you could have stated that Anashok's code was confusing the poster. Link to comment Share on other sites More sharing options...
BadPenney Posted June 5, 2009 Share Posted June 5, 2009 it seemed like you were pushing that you ARE more knowledgeable than anyoneNot by a long shot. I am a relative novice. Two frequent posters that I recognize as much more knowledgeable at FO3 scripting are TGBlank and Cipsis, though I am sure that there are many more. The reason that I took up writing a script to Agnot's specs wasn't because I knew how to do it, but because I didn't. It gave me practice. My first introduction to logic was though philosophy, not programming. That's why I fall back on phrases like "argument" and "premise" and other boring pre-pseudocode jargon. It is often difficult to read a person while reading his posts. I just try to keep in mind the Joker: "Why so serious?" Link to comment Share on other sites More sharing options...
Agnot2006 Posted June 5, 2009 Author Share Posted June 5, 2009 This has all got very heavy.I would like to thank Badpenney for yet another perfectly working piece of script which I have successfully modified to fit into my mod. This is really making my mod area seem occupied. I prefer to work form a perfect example which I can make changes to, but can always go back to when things don’t go right. I am slowly picking up some of the scripting but don’t do it often enough for a lot of it to stick, maybe I’m thick or maybe I’m just like a lot of modders and only have time to dabble in these things. I did have some other questions and suggestions, but maybe another time.I thank you all for caring enough to participate. Link to comment Share on other sites More sharing options...
anlashok Posted June 5, 2009 Share Posted June 5, 2009 Well, even though I still think my post was absolutely clear, the fact is that I totally failed in what I tried to do, which was helping Agnot2006. I made some false assumptions and hopefully learned something from this. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.