Toribash
Original Post
How to use the worldbuilder (with pictures)
Hello.
This is a thread for answering to question

How to use the worldbuilder.lua?

Firstly, just something about the worldbuilder first. There isn't too much about it, so don't worry.

Worldbuilder.lua was made by NewbLuck and released in Toribash version 3.0. Before that admins and MrPoptart had the beta of 3.0 and made a few mods for start.
In the very first version of worldbuilder, you could do objects and adjust their mass, length, width, rotation, is it static, instagib or can you grab it, plus color.
Well, eh, you could do the most with it except the movement stuff. Got it?
I don't really know why did I type this, but anyways. I don't care, let's just continue.

worldbuilder.lua


As you can tell by the name of the file, worldbuilder is a .lua feature.
So, to start with worldbuilder.lua, select Options from the menu, then choose Scripts. In the bottom of the .lua script list (might not if you have done/downloaded scripts), there is worldbuilder.lua. Click it.
Congratulations, you have now opened worldbuilder.lua. It should look like this.



Objects

From the picture, you probably noticed that the ground has turned gray.
This is the area where you have to fit your objects in.
It shouldn't be too hard.
And, remember that you can have only 12 objects with the normal version of worldbuilder.
Brain112 made a new version of worldbuilder which can hold up to 16 objects.
So, thank him too.

Firstly, you may want to check the controls by pressing h.



If you have a laptop without Numpad, you may want to press K first to change the keys to the keyboard keyboard instead of Numpad keyboard.
The keys for keyboard keyboard will be shown in brackets.

So, let's start exploring the worldbuilder by creating an object by pressing *. (~) (Notice that if you have a different keyboard (like Finnish or Swedish), you have to press the § button to create an object.)
There should appear between Tori and Uke a blue box, which is half inside the ground. To the left, there will appear the info about your object.

Object Shape - What shape your object is (box, cylinder or sphere)
Position X - In what position your object is on x plane
Position Y - In what position your object is on y plane
Position Z - In what position your object is on z plane
Size X - How big your object is on x plane
Size Y - How big your object is on y plane
Size Z - How big your object is on z plane
Rotation X - Your object's rotation on x plane
Rotation Y - Your object's rotation on y plane
Rotation Z - Your object's rotation on z plane
Mass - How heavy your object is
Flags - More information below... Much below.

If you don't want to use the info, press I to hide it.
This is the Object. You can have fun with this. A lot.

Moving and modifying the object

You can move the object on the x/y plane by using the Numpad arrows (W,A,D,X).
For moving the object z axis AKA higher or lower, you have to press Numpad 7 for higher (Q) and 1 for lower (Z).
To stretch the on x/y plane, hold Numpad 0 (E) and use the Numpad arrow keys (W,A,D,X) to stretch it.
From the angle of the first picture, press Right (D) to stretch it and Left (A) to shorten it. Remember, this is the angle of the first picture, in the opposite angle you have to press Left to stretch the object and Right to shorten it. To make the object higher, you have to do the same thing except that you press 7 for higher (Q) and 1 for lower (Z).
Rotating the object goes the same scheme as stretching the object, except that you hold Numpad . (R). From the angle of the first picture, hold . and press Up (W) to make the object bend left on x/y plane and press Down (X) to bend the object right.
Using the 7 (Q) and 1 (Z) buttons makes it rotate on z axis.
Change the shape of the object by pressing 5 (S). You can change them between box, cylinder and sphere.



Now that you have played with one object enough now, let's make another one by pressing Numpad * (~, §) and play with it.
Sometimes it might be annoying to do the same move for your every object over and over. To make this easier, the genius NewbLuck has added an option to add an object to a group.
While you're on the new object, press Numpad - (1) to remove it from the group. You can see which objects are in group by that they are solid. The objects which aren't in a group are transparent. When an item isn't in a group, you can't do anything with it, except copy and delete it. You have to add it in a group if you want to play with it.
To make the object back in group, press Numpad + (3)
WARNING!!!
If you want to modify only one object, make sure it's the only one which is in the group! It happens to many modders that they forget other objects in the group and your changes modifies all the other objects.

To swap the object, press Numpad Enter (2).
You may have noticed that the movement of the objects is pretty coarse. To make it fine, press Caps Lock. Much smoother movement!

Mass, color and flags


Now that you master forming the object, now that it's time to... I don't know, but it includes mass, color and flags. It's actually pretty easy.

Let's start off with mass.
Press M to bring up the mass modifying panel.

Mass 0.1 might sound light, but it isn't. If you are going to plan to make a weapon mod, don't use this weight. If you want a weapon weight, you have to modify the mass from the Notepad. Don't worry, the mod file isn't confusing and you can edit the Notepad file easily. You should be able to discover the Mass in there.
But yeah, the max mass is 20, which is pretty heavy.
To change the color, press C.

This is simple to use, too.
You probably noticed that all objects start off with the blue color.
You probably first want to make the color black before you get on the color what you want. To change the color to black, just press the blue - button some times enough it's pure black.
To add red, press the red + button.
To add green, press the green + button.
To add blue, press the blue + button.
The white buttons are actually transparency buttons. To make the object transparent, press white -. To make the object solid, press white +.
Open the flags modifying panel by pressing F.

Static means that the object flows on air and can't be moved. The flag number for this is 8.
Instagib makes the object instagib. The flag number for this is 6.
No grab makes the object ungrabbable. The flag number for this is 16.
Last edited by Tonakai; Sep 21, 2008 at 08:44 AM.