Page 1 of 1

Scripting Megathread!

PostPosted: Tue Sep 11, 2012 1:20 am
by supatails
Here you can ask for help about problems you're stuck on, give and get advice by others about your script, or just show off chunks of code you're proud of!
I think it'd be highly appropriate to have a thread like this for many reasons:
Alot of threads created by those looking for help are often overlooked.
Sometimes people will stop visiting a thread even if that person still needs help.
With a thread like this, everyone would be able to congregate in one spot to talk about specific problems, increasing forum activity.
I feel like beginners like myself who follow this thread will be able to pick up on alot about scripting and logic by simply looking at solutions to others problems.

To start off, I'll show off a block of code I just made for fun:
Code: Select all
int Birth=0;
double Death=Year*78.06
if (YourLifespan>=Birth && <=Death){Live=1;}
if (YourLifespan<Birth){CreateActor("Body", "Perpetual_Growth", "Spirit", "(none)", 0, 0, false);}
if (YourLifespan>Death){DestroyActor("Event Actor");ChangeParent("Spirit", "(none)");}

Re: Scripting Megathread!

PostPosted: Tue Sep 11, 2012 3:01 am
by NightOfHorror
No offense or anything, but this has been done numerous times and never worked. It is best to ask specific questions on the thread. I never have felt anybody be overlooked. If someone stops visiting a help thread, it is usually that they have no experience in what you are asking, have felt you got an answer that is good enough, or they can not understand what you are asking based off of the information given. Also, most questions have been asked before and you can simply look for the answer on other topics. Also, if you reply on your topic that you need help, people that are usually here and can help, like skydereign, will answer what you asked in the best way possible based on the information you gave and the knowledge they have of that type of coding. This will confuse people as they will be having to look around pages of it just to find an answer, and a lot of useless code will be put in that nobody needs. Also, a tutorial page is on the Game Editor website that you can find the link to in the home page. Game Editor also has its own tutorial that I have learned a bit from, but most of all, as said before, the forum has plenty of questions answered that may be yours. Also, various tutorials on simple and advanced coding has been put on this forum. :D

Re: Scripting Megathread!

PostPosted: Tue Sep 11, 2012 3:53 am
by supatails
I've seen this kinda thing work really well especially on FacePunch and PolyCount, but I suppose if it's been tried before on this forum and hasn't worked then it'd be best for me to close this thread. I guess I'll get another opinion or two on it but if people don't like the idea I'll just remove the thread to avoid confusion.

Re: Scripting Megathread!

PostPosted: Tue Sep 11, 2012 6:02 am
by skydereign
supatails wrote:Alot of threads created by those looking for help are often overlooked.

This isn't really true here on gE. Users usually will get a response within a days time, which is quite acceptable, and hardly any questions are unanswered.

supatails wrote:Sometimes people will stop visiting a thread even if that person still needs help.

Again not a big concern, since if people continue to post their questions, we will still try to answer it. If ever someone feels their question wasn't answered properly, or was forgotten about, all they would need to do is bump the topic while reiterating what the problem is. For instance, you posted this. http://game-editor.com/forum/viewtopic.php?f=1&t=12313&start=15#p87444
By your response, it wasn't clear if you figured out what was wrong, but since I mentioned what part of the code wasn't doing what you wanted, you might have figured it. But, if you were still having trouble on that, all you need to do is post again.

supatails wrote:To start off, I'll show off a block of code I just made for fun:
Code: Select all
int Birth=0;
double Death=Year*78.06
if (YourLifespan>=Birth && <=Death){Live=1;}
if (YourLifespan<Birth){CreateActor("Body", "Perpetual_Growth", "Spirit", "(none)", 0, 0, false);}
if (YourLifespan>Death){DestroyActor("Event Actor");ChangeParent("Spirit", "(none)");}

For the record, this code won't work. There are two main problems, assuming all undeclared variables are meant to be declared elsewhere. First is the missing semicolon on the second line, and the second is the if statement on the third line. If you want to use multiple conditions you'll have to restate the variable, like this.
Code: Select all
if(YourLifeSpan>=Birth && YourLifeSpan<=Death)


supatails wrote:I guess I'll get another opinion or two on it but if people don't like the idea I'll just remove the thread to avoid confusion.

makslane has voiced against this kind of topic, as like NightOfHorror says, it makes it harder for users to find the answers they are looking for. So while this kind of topic is okay for teaching, it shouldn't be used for answering questions like the forums are. This topic was used to teach new things to users, and is sort of like what you are suggesting. http://game-editor.com/forum/viewtopic.php?f=5&t=6854

Re: Scripting Megathread!

PostPosted: Tue Sep 11, 2012 5:26 pm
by supatails
Alright guys, sorry about the confusion and junk. Also that code I posted was more of a joke, I wasn't using it for anything I just thought the concept of scripting the human life was cool lol.