Blockland Forums > Modification Help

Wallet's Scripting Class episode III: Revenge of the Script

Pages: << < (16/23) > >>

Uxie:


--- Quote from: PVC Potato Gun on July 18, 2011, 02:27:53 PM ---Yes there is.

--- End quote ---
No there isn't.

lordician:


--- Quote from: Uxie on July 18, 2011, 02:28:35 PM ---No there isn't.

--- End quote ---
To clear the confusion:
No semicolon where you make the function.
Yes semicolon where you call a function.

Datablocks you create should also end with a semicolon. ;)

dUMBELLS:


--- Quote from: lordician on July 18, 2011, 04:00:23 PM ---To clear the confusion:
No semicolon where you make the function.
Yes semicolon where you call a function.

Datablocks you create should also end with a semicolon. ;)

--- End quote ---
Packages should end with a semicolon too. That caused me some errors recently.

Uxie:

Hey Mr Wallet, can we go over advanced brick coding?

Mr. Wallet:

WARNING WHILE YOU WERE READING UXIE ASKED ABOUT SOMETHING

Also function calls don't all need semicolons. You should think of the semicolon as "instruction over". When you get to Return Values (day 6) you'll start using function calls without semicolons.
Specifically, for those who already know what I'm talking about: if you're calling a function to get a return value from within some other function call or an IF statement, that kind of inner function call should not have a semicolon, and in fact telling BL, "this line of the script is over" would be Not A Good Idea.

Anyway I have to start writing today's doc and today we're doing  :cookieMonster: TRANSFORMS AND VECTORS YAAAAAY :cookieMonster:  :iceCream: :nes:

OK not that exciting but we should really talk about it. We're kind of trailing off on "must-know" stuff now, with the official schedule ending tomorrow (and I'm not sure it will fill an entire day as I've planned it), so there's ample opportunity to do student requests. Probably not today because we're going to do a lot of stuff already, but maybe tomorrow.

However you'll need to be a little more specific about what you mean by "advanced brick coding".

Pages: << < (16/23) > >>

Go to full version