Author Topic: Return of the Mr. Wallet's Blockland Scripting Class  (Read 21822 times)

Thanks for sharing your notes Heedical, I don't have any because I'm kinda winging it using the syllabus and half-remembered things from last year.  :cookieMonster:

I should clarify that I was trying to stress that while using the console is not usually considered scripting, it basically is. Anything you put in the console is essentially a one-line script; if you know how to do anything in the console, you can put the same thing in a script file and it works.

Are you using the same Google docs thing as last time? Because I'm already in that one. Will I need to give you my email address again?

The old docs are being preserved for posterity and to prevent bad things from ruining them forever; copies have been made for the new class, so you'll need the new docs to follow any edits I might make from last year.

What we learned in a nutshell:
Open console by pressing ~
Type in echo("Hello World");

He said that even typing one command into the console is considered scripting

We made a folder in our add-ons folder called Class_work, it doesn't matter the name though except it should have a _ in it.

We opened up Crimson Editor, notepad (any editor of your choice) and typed in
echo("Hello World"); then saved it as echo.cs and saved it in Class_work

Then we typed exec("add-ons/Class_Work/echo.cs"); to get the script to work.

You should also give him you email address so you can use the google docs he made.



Thanks for this. Without it I would be pondering in tonight's class.

The old docs are being preserved for posterity and to prevent bad things from ruining them forever; copies have been made for the new class, so you'll need the new docs to follow any edits I might make from last year.
Ok. Do you want me to pm you my email address or wait until class?

PM me along with the name of your workspace, if you still have it. Never hurts to get me info early.  :iceCream:

Class in 30 minutes, correct?

stuff, big storm, I hope I can make it tonight. I'm on my Zune because I turned my computer off for safety.What are we going over tonight?

EDIT: Functions and datablocks.   Kalphiter, if you're still taking notes, lemme see em afterwards. I don't think I'll be makining it. :(
« Last Edit: June 27, 2010, 09:29:02 PM by tapemaster21 »

Class in 30 minutes, correct?


-snipcompletelywrong-
« Last Edit: June 27, 2010, 10:27:30 PM by Blastdown »

It's time, and where is he?

No, no time change, I'm just late by 8 minutes like a jerk.  :cookieMonster: streaming now though

Day 2 was fun, though I was freaking out thinking I missed half-an-hour.
I feel I am learning, and I am enjoying the classes very much.

Day 2 was fun, though I was freaking out thinking I missed half-an-hour.
I feel I am learning, and I am enjoying the classes very much.
Same.

Day 2 is probably the most boring part because it doesn't have a ton of real-world examples, but we did learn how to kill someone that enters a slash command, so the day wasn't a total waste.  :cookieMonster:

Day 2 is probably the most boring part because it doesn't have a ton of real-world examples, but we did learn how to kill someone that enters a slash command, so the day wasn't a total waste.  :cookieMonster:
and you answered all of my tons of questions, though I still need to find out a proper way to word my variable in a variable question, I think I got it.

function servercmdAddresource(%client, %resource, %amount)

and you would type /Addresource gold 5 and it would make

%client.%resource += %amount;

which would turn into

%client.gold += %amount;

and you could do stuff like /Addresource Iron 7 and such?