Poll

How did i do on this thing?

Great! I'd like another tutorial.
Good.
A little lengthy. Can you tone it down?
Too loud! Be more to the point.
Too soft! Make the statements more solid.
Too short. Can you go more in-depth?
Horrible! Why would i need to know any of this?
The worst tutorial i've seen yet. You must work on this.
Too show-offy. Use better words.
Too boring. Needs more fun to it.
I don't really know...
The current options cannot describe my opinion.

Author Topic: Guide to Scripting/Chatbot Tutorial 2.0 -For the inexperienced.  (Read 22742 times)

congratulations
It would be good if the OP put the full example code after explaining, i just edited the code and lost the fixes :c

Also, how do you make it so you don't need anyones name for it to say something, so anyone could say hi and the bot would respond?

Arrays are your best friend while exporting. Remember that for later.
Code: [Select]
==> $array["death cookies"] = true;
==> $array["this isn't an array"] = true;
==> $array["stupid and", "this"] = false;
==> export("$array*", "config/file.cs");
Quote from: config/file.cs
$arraydeath cookies = 1;
$arraythis isn't an array = 1;
$arraystupid and_this = 0;
Code: [Select]
==> exec("config/file.cs");
syntax error syntax error

^ This is normally 'to the power of', but it doesn't work here. This usually functions as add.

mPow(1, 2) => 1 to the power of 2

mPow(1, 2) => 1 to the power of 2

Ooh. Thanks for the m___ command, i was trying to think of that but i just couldn't find it.

Finally got a foothold in scripting.
Now if I can only get this annoying homework out of my way...


EDIT-Did I mention I have this printed?
Who else does?
« Last Edit: February 07, 2011, 11:11:53 PM by The Corporation »

Also, how do you make it so you don't need anyones name for it to say something, so anyone could say hi and the bot would respond?
Remove the if(%name) statement.

Remove the if(%name) statement.
Does ANYONE pay attention to the technical details telling you how to make your own modifications, or are you all too lazy to figure stuff out? =_=

Not directed at you, directed at the original poster of the quote you quoted.
Lern2chainquote.

Not directed at you, directed at the original poster of the quote you quoted.
Lern2chainquote.
ok.



Hmmm...
cool...
Is there a way to tell a bot to tell others something?
Like somebody says "Help!"
And then the bot says "Specify on what help you need please"'
Or something like that.

Hmmm...
cool...
Is there a way to tell a bot to tell others something?
Like somebody says "Help!"
And then the bot says "Specify on what help you need please"'
Or something like that.
Of course there is. It would take some variables and If structures, but yeah.

Quote
STEP 8 : Reload the add-on by saying in your console (`):
exec("add-ons/client_scripttutor/client.cs");

You can DO THAT? @_@

I would have been nice to know that before. XD

You can DO THAT? @_@

I would have been nice to know that before. XD
It doesn't work for everything.