Author Topic: I have some question. What Programming Language you used here in BlockLand?  (Read 2353 times)



I've never heard of that, will you give me an example? If you touch a Brick you'll die? Just an example.

Code: [Select]
function CTFmeleegripImage::onFire(%this, %obj, %slot)
{
   %obj.setImageTrigger(1,2);
}

probably not the best example available BUT

@Bushido

May I ask? What does that do?

i think i'm using it wrong, so i'm not sure, but it's SUPPOSED to pull the trigger in the second mount point

I can't give that specific example because I don't have the game installed to test that out.

Instead I'll give you a hello world example.

Code: [Select]
function serverCmdHelloWorld(%client)
{
messageClient(%client,'',"Hello World!");
}
serverCmd is a command that a client can call, either with commandToServer, or by typing /helloWorld
The first arg (as I labeled %client) in a serverCmd will always be the client who called it no matter what you label it.

This would print a red Hellow World! in the client's chat when they type /helloworld


i think i'm using it wrong, so i'm not sure, but it's SUPPOSED to pull the trigger in the second mount point
They would both be 1s.

@Chrono

Oh I've seen some example too, echo("ZOMG HAX!")

There are some guides around in the "Coding Help" forum if you feel like reading.

If you want to learn from other mods, just download one, pop open the zip, and open the .cs file in notepad.

Is BlockLand available in stores?

Is BlockLand available in stores?
No or else we would have annoying kids everywhere so online only.


Sorry, you can only buy it online. But it's easy and that's where the market is heading anyways. Might as well get used to it now.

Even consoles are moving to buying online.

If you touch a Brick you'll die? Just an example.
You can't really do stuff with bricks with the Programming Language.
TorqueScript, can be implemented in Add-Ons, so the Add-Ons do what the code tells them.

If you're looking to make bricks do things, you can use the wrench tool to click the brick, touch the button at the bottom of the pop-up, labelled Events and there are lists of things you can do to bricks, including Triggers for when they go off, Outputs for what they do and even controlling other bricks through a different one. They can also be used to edit characteristics of the players, like, making the player bigger or smaller.

Quote from: Badspot
Q: How do I make my own add-ons?
A: If you can't figure this out on your own you will never be able to do it.