Blockland Forums > Modification Help
[BETA OUT] Scratch for Blockland
<< < (6/24) > >>
Conan:

--- Quote from: cblock360 on December 31, 2017, 02:26:17 AM ---Give me an example of what a script is.

--- End quote ---
ctrl-k, the wrench menu, how the brick tool places bricks (from clicking to place a ghost, pressing keys to move it, changing the color with paintcan, and planting it), code that runs literally everything in the game.
Platypi:
Great work!


--- Quote from: cblock360 on December 31, 2017, 02:26:17 AM ---Give me an example of what a script is.

--- End quote ---
Not exactly sure what you mean by example, but here's this:


--- Code: ---%client = findClientByName("PLAYER_NAME");
%client.player.setScale("0.5 0.5 0.5);

--- End code ---

This is a two line script that (1) finds a client based on their name, and then (2) changes the scale of their player, such that they are smaller than normal.

Conan's examples are also good. Blockland is built on scripts.
Conan:
maybe a better way to answer your question is what default or addon functionality or content do you want to see the script to?
Platypi:

--- Quote from: RTBARCHIVE on December 30, 2017, 10:36:17 PM ---I'm considering implementing a preference that switches between showing torquescript syntax and showing text -- Something like this:


--- End quote ---
I support this.


--- Quote from: Gytyyhgfffff on December 31, 2017, 01:45:24 AM ---ditch terms like "call". to message a client it should be "send x to y" or something similar. also, dont have a field accessor. instead of doing something like findClientByName(%x).player, have findPlayerByName. maybe even rename findClientByName(%x) to "find/get client/player x". just look at scratch and think about how easy this stuff would be to a 5 year old so you make it as easy as possible to pick up, like the default events are

--- End quote ---
Yes, this. "Call" should be an option. But there should be separate blocks for a bunch of the main functions beginners will be using. Basically: more abstraction is good.
RTBARCHIVE:
Good question here:

--- Quote from: Conan on December 31, 2017, 03:26:14 AM ---maybe a better way to answer your question is what default or addon functionality or content do you want to see the script to?

--- End quote ---

I know of a few useful functions that could use their own block, but I would appreciate it if someone compiled a complete list of useful functions. If you wanted to help out even more, you could make your own descriptions for them and even categorize them. It would save me a lot of time.


--- Quote from: Gytyyhgfffff on December 31, 2017, 01:45:24 AM ---ditch terms like "call" ... also, dont have a field accessor

--- End quote ---
After thinking a bit on function-specific blocks, I've decided that the 'Common Functions' menu will be transformed into a sort of 'spawning menu'. Click an item in the list once to see a description, and click it again to spawn a block of it.

I believe that keeping the call block and a field accessor would provide convenience for users who need to use functions that are not specified in the 'Common Functions' list.

I agree with everything else in your post, and can't wait to see what ideas you have for this.
Navigation
Message Index
Next page
Previous page

Go to full version