Author Topic: how do I make addons?????  (Read 1263 times)

Im not very experienced so I need to know how to bild the easyest addons for a start
can somone help me with this?

Im not very experienced so I need to know how to bild the easyest addons for a start
can somone help me with this?
Well, I could probably help you tomorrow with the basics of making add-ons. PM me your MSN, we can talk there.

You don't "bild" add ons, you code them.

You don't "bild" add ons, you code them.
I think he mean't to compile it. I wouldn't be surprised if he mean't to build them ingame though

I did not mean bild them in the game             


 so if you
 code them how do code them I gusts want to know the basics

« Last Edit: May 01, 2009, 07:34:30 AM by sam345e »

Well first you should learn to use proper spelling; you'll need that when you code. A blockland script file uses the .cs extension.  Extract an add-on you have downloaded from the add-ons section, not from other servers, then open the folder and look for server.cs. Open it up with a plain text editor (Notepad for windows) and check it out. This is TorqueScript, google it and you might find some information, otherwise the best way is to teach yourself; the syntax is rather easy.

I'm slowly starting to learn how to script. Just look at the codes for other add-ons.

I'm slowly starting to learn how to script. Just look at the codes for other add-ons.
That.

There are thousands of these topics, the search button is our friend.

Let's start you off with a simple /die command.

Step 1: Start the function.
Code: [Select]
function serverCmdDie(%client)
{

Step 2: Make your code.
Code: [Select]
%client.player.kill();
Step 3: End your function.
Code: [Select]
}
Which is this out of all the steps.
Code: [Select]
function serverCmdDie(%client)
{
%client.player.kill();
}

And you can say /die in-game and your player will die.

But what does that mean? He needs to know what everything actually does or he won't understand anything any more.


It might also be easier to start with prints or decals. Then after you get the hang of that you can start on bigger stuff.

I started with sounds. Prints are more making the prints than actually scripting...

Let's start you off with a simple /die command.

Step 1: Start the function.
Code: [Select]
function serverCmdDie(%client)
{

Step 2: Make your code.
Code: [Select]
%client.player.kill();
Step 3: End your function.
Code: [Select]
}
Which is this out of all the steps.
Code: [Select]
function serverCmdDie(%client)
{
%client.player.kill();
}

And you can say /die in-game and your player will die.
well can you post on how to make different commands i get part of it but not much so plz help

Code: [Select]
functionStarts the function
Code: [Select]
function serverCmdTell the function it's going to be a serverCmd
Code: [Select]
function serverCmddieTells the function to trigger when you type /die
Code: [Select]
function serverCmddie(%client)Records the client (computer) that entered the command for use in the actions section
Code: [Select]
function serverCmddie(%client)
{
Opens up the actions section, where the main part of the script is.
Let's go to the next part now.
Code: [Select]
   %clientTargets the client of who entered /die.
Code: [Select]
   %client.playerTargets the player of the client who entered /die.
Code: [Select]
   %client.player.kill();Tells the player of the client who entered /die to, well, die.
Code: [Select]
   %client.player.kill();
}
Closes the function.
So we have...
Code: [Select]
function serverCmddie(%client)
{
   %client.player.kill();
}
When you type /die, you die. It's pretty simple.