Blockland Forums > Modification Help
Guide to Scripting/Chatbot Tutorial 2.0 -For the inexperienced.
<< < (7/12) > >>
alex dude:

--- Quote from: otto-san on February 05, 2011, 12:34:29 AM ---congratulations

--- End quote ---
It would be good if the OP put the full example code after explaining, i just edited the code and lost the fixes :c
alex dude:
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?
Bauklotz:

--- Quote from: ThinkInvisible on February 01, 2011, 10:22:16 PM ---Arrays are your best friend while exporting. Remember that for later.

--- End quote ---

--- Code: ---==> $array["death cookies"] = true;
==> $array["this isn't an array"] = true;
==> $array["stupid and", "this"] = false;
==> export("$array*", "config/file.cs");

--- End code ---

--- Quote from: config/file.cs ---$arraydeath cookies = 1;
$arraythis isn't an array = 1;
$arraystupid and_this = 0;

--- End quote ---

--- Code: ---==> exec("config/file.cs");
syntax error syntax error

--- End code ---
Bauklotz:

--- Quote from: ThinkInvisible on February 01, 2011, 10:22:44 PM ---^ This is normally 'to the power of', but it doesn't work here. This usually functions as add.

--- End quote ---

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

--- Quote from: Bauklotz on February 07, 2011, 07:34:39 AM ---mPow(1, 2) => 1 to the power of 2

--- End quote ---

Ooh. Thanks for the m___ command, i was trying to think of that but i just couldn't find it.
Navigation
Message Index
Next page
Previous page

Go to full version